Having a password protect page
Cdog0292
25 Jan 2019, 22:30Hello again,
I tried searching for it but don't know exactly how to look for it. But I'm trying to create a page to where the person playing has to type a phrase to unlock the page. So example:
Character gets on a password protected computer.
the player (you) has to type in the correct phrase to unlock computer
if phrase is typed correctly then unlock
if not then stays locked
any clues on how to go about doing this?

Io
25 Jan 2019, 22:46The code you're looking for is Get Input. You call Get Input, and then the player has to type something in. The game will create the 'result' variable to store it briefly, which you can use in an if-then-else. Like so:
get input {
if (result="Whatever Password"){
msg("That's the password! Insert other unlocking stuff in this part of the code.")
}
else{
msg("That's not the password! Insert other wrong-password stuff in this part of the code.")
}
}
Hope this helps!
Cdog0292
25 Jan 2019, 22:55Yes this did the trick!! Thank you