Jump to content

controll quest


Croqueta

Recommended Posts

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 
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...