Domanda [SCRIPT]Mp3!In Game come NPC,Vi Farà sentire le Propie canzoni a Scelta..

Stato
Discussione chiusa ad ulteriori risposte.

D o c e T

Utente Electrum
28 Dicembre 2010
317
31
37
156
PHP:
tit = "Mp3"
say_title (tit)
say ("Posso Farti Sentire delle Canzoni,Vuoi Provare?")
local song = ("Si","No")
if song == 2 then
return
end
elseif song == 1 then
say_reward ("Scegli la Canzone!")
local scelta = ("Nome Canzone","Nome Canzone2",Nome Canzone3","Nome Canzone4","Nome Canzone5")
if scelta == 5 then
if pc.get_empire () == 1 then
add_bgm_info(Value Villo1 Rosso, "Nome Song", 0.5)
if pc.get_empire () == 2 then
add_bgm_info(Value Villo1 Giallo, "Nome Song", 0.5)
if pc.get_empire () == 3 then
add_bgm_info(Value Villo1 Giallo, "Nome Song", 0.5)
return
end
end
end
end
end
if scelta == 4 then
if pc.get_empire () == 1 then
add_bgm_info(Value Villo1 Rosso, "Nome Song", 0.5)
if pc.get_empire () == 2 then
add_bgm_info(Value Villo1 Giallo, "Nome Song", 0.5)
if pc.get_empire () == 3 then
add_bgm_info(Value Villo1 Giallo, "Nome Song", 0.5)
return
end
end
end
end
end
if scelta == 3 then
if pc.get_empire () == 1 then
add_bgm_info(Value Villo1 Rosso, "Nome Song", 0.5)
if pc.get_empire () == 2 then
add_bgm_info(Value Villo1 Giallo, "Nome Song", 0.5)
if pc.get_empire () == 3 then
add_bgm_info(Value Villo1 Giallo, "Nome Song", 0.5)
return
end
end
end
end
end
if scelta == 2 then
if pc.get_empire () == 1 then
add_bgm_info(Value Villo1 Rosso, "Nome Song", 0.5)
if pc.get_empire () == 2 then
add_bgm_info(Value Villo1 Giallo, "Nome Song", 0.5)
if pc.get_empire () == 3 then
add_bgm_info(Value Villo1 Giallo, "Nome Song", 0.5)
return
end
end
end
end
end
end
if scelta == 1 then
if pc.get_empire () == 1 then
add_bgm_info(Value Villo1 Rosso, "Nome Song", 0.5)
if pc.get_empire () == 2 then
add_bgm_info(Value Villo1 Giallo, "Nome Song", 0.5)
if pc.get_empire () == 3 then
add_bgm_info(Value Villo1 Giallo, "Nome Song", 0.5)
return
end
end
end
end
end

Non Mi Prolungo,dico che è da Moddare.
 
ErLibano è un incapace non lo sapevi?
LOL non lo so se sia un incapace ma in questo script si è rivelato tale, comunque eccovi lo script un po' corretto, la funzione per la musica ho dato per scontato che sia giusta o.o

PHP:
tit = "Mp3" 
say_title (tit) 
say ("Posso Farti Sentire delle Canzoni,Vuoi Provare?") 
local song = ("Si","No") 
if song == 2 then 
return 
 -- end Non ci vuole xkè dopo ci sta elseif
elseif song == 1 then 
say_reward ("Scegli la Canzone!") 
local scelta = ("Nome Canzone","Nome Canzone2","Nome Canzone3","Nome Canzone4","Nome Canzone5") --Qui manda un ''
if scelta == 5 then 
	if pc.get_empire () == 1 then 
	add_bgm_info(Value Villo1 Rosso, "Nome Song", 0.5) 
	end --Qui ci vuole End e non dopo
	if pc.get_empire () == 2 then 
	add_bgm_info(Value Villo1 Giallo, "Nome Song", 0.5) 
	end --Qui ci vuole End e non dopo
	if pc.get_empire () == 3 then 
	add_bgm_info(Value Villo1 Giallo, "Nome Song", 0.5) 
	end --Qui ci vuole End e non dopo
end --Qui ci vuole per chiudere scelta==5
-- end Qui non ci vuole xkè l'ho messo prima
-- end Qui non ci vuole xkè l'ho messo prima
-- end Qui non ci vuole xkè l'ho messo prima
-- end Qui non ci vuole xkè l'ho messo prima
if scelta == 4 then --Qui correggo senza commenti che tanto sono uguali gli errori
if pc.get_empire () == 1 then 
add_bgm_info(Value Villo1 Rosso, "Nome Song", 0.5) 
end
if pc.get_empire () == 2 then 
add_bgm_info(Value Villo1 Giallo, "Nome Song", 0.5) 
end 
if pc.get_empire () == 3 then 
add_bgm_info(Value Villo1 Giallo, "Nome Song", 0.5) 
end 
end 
if scelta == 3 then --Qui correggo senza commenti che tanto sono uguali gli errori
if pc.get_empire () == 1 then 
add_bgm_info(Value Villo1 Rosso, "Nome Song", 0.5) 
end
if pc.get_empire () == 2 then 
add_bgm_info(Value Villo1 Giallo, "Nome Song", 0.5) 
end
if pc.get_empire () == 3 then 
add_bgm_info(Value Villo1 Giallo, "Nome Song", 0.5) 
end
end 
if scelta == 2 then --Qui correggo senza commenti che tanto sono uguali gli errori
if pc.get_empire () == 1 then 
add_bgm_info(Value Villo1 Rosso, "Nome Song", 0.5) 
end
if pc.get_empire () == 2 then 
add_bgm_info(Value Villo1 Giallo, "Nome Song", 0.5) 
end
if pc.get_empire () == 3 then 
add_bgm_info(Value Villo1 Giallo, "Nome Song", 0.5) 
end
end 
if scelta == 1 then --Qui correggo senza commenti che tanto sono uguali gli errori
if pc.get_empire () == 1 then 
add_bgm_info(Value Villo1 Rosso, "Nome Song", 0.5) 
end
if pc.get_empire () == 2 then 
add_bgm_info(Value Villo1 Giallo, "Nome Song", 0.5) 
end
if pc.get_empire () == 3 then 
add_bgm_info(Value Villo1 Giallo, "Nome Song", 0.5) 
end
end 
end
 
Stato
Discussione chiusa ad ulteriori risposte.
Indietro
Top Bottom