Typed in choice code error

I have a typed in choice code in my story, but when I check to see if it works in the app, it keeps saying “code incorrect” like I’m putting the code in wrong.
Can someone help me figure out what I’m doing wrong please!
Thank you!

label unlock_code
readerMessage The code is on my instagram page :wink: @mannathomp.episode
input What is the passcode? | What is the passcode? | Unlock(LUNA)

if (CODE is “LUNA”) {
gain right_code
NARRATOR
Correct! You get a bonus scene! Good job!
@transition fade out black
} else {

    NARRATOR
Code incorrect.

}
NARRATOR
Would you like to see the code again?
choice
“Yes” {
goto unlock_code
} “No” {
@speechbubble is 158 254 to 100% with tail_top_right
CASPIAN (talk_sheepish_rubneck)
Sorry, I can’t remember.
@speechbubble is 158 254 to 100% with tail_top_left
STORM (talk_neutral)
That’s okay, we just need to wait for my parents to get here and they can open it.
@transition fade out black
}

1 Like

It should be like this:

input What is the passcode? | What is the passcode? | Unlock(LUNA)

if (LUNA is “Code”) {

“Code” should be your actual code. So if your code is 1234, then it should look like this:

if (LUNA is “1234”) {

I feel like such an idiot. I totally see what I did wrong now.
You’re the best! Thank you so much!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.