Does anyone know how to put a password into their story?


#1

I want to implement a code in order for the reader to choose a new password. How would I do that.


#2

label password

input Enter password| Enter password| Done (PASSWORD)

if (PASSWORD is “passwordword”) {

NARRATOR
That’s correct!

} else {

NARRATOR
Wrong password, try again.

goto password

}

passwordword is an example for a password, write whatever you want, that’s what the readers or you need to type to continue.


#3

thank you for your response. I’m still a little confused. If i want the password to be 02487 how would I input that into the brackets? Can you help with that


#4

#5

Where I wrote:

if (PASSWORD is “passwordword”) {

write:

if (PASSWORD is “02487”) {

Helps?


#6

Closing due to one month of inactivity :slight_smile:


#7