What am I doing wrong?
I need to lock my story next 3 chapters to proofread I mean to fix grammatical and directing errors
Try this one.
Summary
label unlock_code
input What is the passcode? | What is the passcode? | Unlock(CODE)
if (CODE is “Apple”) {
NARRATOR
Correct! You’ve unlocked the door!
} else {
NARRATOR
Code incorrect.
Please try again.
goto unlock_code
}
after “2544” and before ) on line 5 there is a symbol that should be deleted
ok let me check
okay let me try
input What’s the password? |What’s the password?| Done (PASSWORD)
You should write “PASSWORD” inside the brackets, not 2544
then where will i put the password suppose this number is my password
The line you have below “if (PASSWORD is “2544”)” is where you put the password. So if someone writes the right code, they get access to the story
okay done when I test in the app it won’t let me get through the story it remains stuck
That’s weird Could you copy-paste your script here?
Well the code is really big I mean 6k lines total chapter so it won’t let me post here
I meant the part with the password
label name_input
input What’s The Password?|What’s The Password|Done(PASSWORD)
if (PASSWORD is “Apple”) {
NARR
Access granted.
goto label story
} else {
NARRATOR
Code incorrect.
Please try again.
goto label name_input
}
label story
Try this?
label name_input
input What’s The Password?|What’s The Password|Done(PASSWORD)
if (PASSWORD is “Apple”) {
NARR
Access granted.
goto story
} else {
NARRATOR
Code incorrect.
Please try again.
goto name_input
}
label story
It worked.Thank you I owe you one
no problem!