Error in locking story code for proofread please help asap


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

}

1 Like

after “2544” and before ) on line 5 there is a symbol that should be deleted

1 Like

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 :slight_smile:

1 Like

then where will i put the password :thinking: 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

1 Like

okay done when I test in the app it won’t let me get through the story it remains stuck

That’s weird :thinking: Could you copy-paste your script here?

1 Like

Well the code is really big I mean 6k lines total chapter so it won’t let me post here :sweat_smile:

I meant the part with the password :stuck_out_tongue_closed_eyes:

1 Like

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

2 Likes

It worked.Thank you I owe you one :smiling_face_with_three_hearts:

2 Likes

no problem!

1 Like