Croqueta Posted January 29, 2013 Report Share Posted January 29, 2013 esta quest controlla si el escrito en el input esta correcto si no etonses te obliga a escribir tantas veses asta que el jugador ja tenga las 3 veses o el pw sea correcto. quest test begin state start begin when 9009.chat."Test input" begin erg= "2" --el pw say("Pone tu pw") say() inp = input() local i = 0 if erg == inp then return end do while erg ~= inp do say("No es correcto, pruebalo de nuevo") say(i.." de 3 veses") say() inp = input() if i == 3 then say("ja tu probastes las 3 veses") say() return end i=i+1 end end end end end Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.