And its my intention to make so that you have the correct password that opens the safe, some specific wrong passwords that result in special dialogues, and a generic wrong password dialogue (else).
I found a similar old to what I wanted and tried to do it but it didnt worked. This is what I did:
Code: Select all
label start:
"Okay, lets do it!"
jump safe
label safe:
menu:
"Try again.":
jump code
"No":
return
label code:
$ pass1 = "3401"
$ pass2 = ("shit" "fuck")
$ pass3 = ("1234", "123456", "0000", "000000", "654321")
$ pass4 = "IA´S NAME"
$ code = renpy.input ("Input your answer.")
if code == pass1:
"Correct Answer!"
return
if code == pass2:
"Wrong Answer. Try again!"
jump safe
if code == pass3:
"Language! Try again!"
jump safe
if code == pass4:
"Wrong Answer! But Im flattered! Try again!"
jump safe
else:
"Wrong Answer."
jump safe
Thats it. I have tried to change some stuff around but the result is the same, the only option that works like it should is the "pass4", any of the other passwords always get me the dialogue of "else" variable. Not sure why