Â
@>Text: Enter Password
@>Input Number:[0001: password], 5 digit(s)
@>Conditional Branch: Variable [0001: password] == 12345
 @>Text: You log into the computer
 @>
 : Else
 @>Text: Invalid Password.
  :  :You get Nothing. You lose.
  :  :Good day, Sir!
 @>
 : Branch End
@>
Â
Unka Josh":3utjteou said:There's another way to do it, if you want the password to be a word.
Create one more Actor slot than you need. Go on and name it something memorable, like "Password Input."
Now use Name Input Processing to get the password.
You can set a Conditional Branch to check whether a name is equal to, say, a password, the answer to a riddle, whatever...
Brewmeister":k1fw7u2r said:Code: @>Text: Enter Password @>Input Number:[0001: password], 5 digit(s) @>Conditional Branch: Variable [0001: password] == 12345  @>Text: You log into the computer  @>  : Else  @>Text: Invalid Password.   :  :You get Nothing. You lose.   :  :Good day, Sir!  @>  : Branch End @> Â
memyselforwho":2i2tr1ba said:How do I make it so I can add the "name change" password thing in with the conditional branch?
$data_actors[1].name == "Aluxes"
Glitchfinder":m8hw8327 said:memyselforwho":m8hw8327 said:How do I make it so I can add the "name change" password thing in with the conditional branch?
Go to the bottom of page four of the Condition branch, and add this code:
Code:$data_actors[1].name == "Aluxes"
Just change the number to the number of the character whose name is a password, and the text in quotes to the password. Just leave the qoutes there, though. Currently, it will activate the conditional branch if Actor 1 is named Aluxes. (The default name)