Trouble With Remembering Choices If Elif Else :(

Oh my gosh! I am having so much trouble with the if elif else command. I have used it before with no problem, but now it is skipping over the scene I create. I will attach the code below.

label outfits
ELI (talk_shrug_neutral)
What should I wear?
choice (OUTFIT)
“Preppy”{
@ELI changes into Eli_Double_Date_1
@ELI is dustoff_neutral_loop
@ELI is idle
}
“Comfy”{
@ELI changes into Eli_Double_Date_2
@ELI is dustoff_neutral_loop
}
“Nice Casual”{
@ELI changes into Eli_Double_Date_3
@ELI is dustoff_neutral_loop
@ELI is idle
}
“Patrick Swayze”{
@ELI changes into Eli_Double_Date_4
@ELI is dustoff_neutral_loop
&ELI is dustoff_neutral_loop
@ELI is idle
}

    ELI (talk_shrug_concerned)
Do I like this?

choice
“Yes”{
ELI (talk_agree_happy)
Yeah! This will do.

@ELI is idle
}
“No”{
goto outfits
}

@overlay YORKIE create
@overlay 4622478262796288_YORKIE shifts to 37 10 in zone 2
@overlay 4622478262796288_YORKIE scales to 0.749 0.749
@overlay YORKIE opacity 1 in 0

sound dog_bark

@pan to zone 2

@pause for a beat

@cut to zone 1

    ELI (talk_squat_wave)
Hey Brandy!

    ELI (talk_handraised_happy_loop)
Come here girl.

@pause for a beat

@overlay YORKIEDOWN create
@overlay 4622478262796288_YORKIEDOWN shifts to 15 5 in zone 2
@overlay 4622478262796288_YORKIEDOWN scales to 0.550 0.550
@overlay YORKIEDOWN opacity 1 in 0
@overlay YORKIEDOWN moves to layer -1

@cut to zone 2

@overlay YORKIE clear

@pause for 3

@cut to zone 1

@ELI moves to layer 2

    ELI (talk_armscrossed_angry_loop)
Oh, I see how it is. Your gonna make me come to you.

@ELI walks to spot 1.280 -17 50 in zone 2
&pan to zone 2

@ELI is pet_kneel_happy_loop

@pause for a beat

@ELI is transition_squat_to_stand_neutral

    ELI (talk_shrug_concerned)
So Brandy, do I look good?

if (OUTFIT is Preppy){
@zoom on 375 0 to 327% in 2

@pause for a beat

@zoom on 0 0 to 119% in 0

@ELI is eyeroll_sarcastic

    ELI (talk_doubtful)
Your a dog. What do you know?

@pause for 4
}
elif (OUTFIT is Comfy){
@zoom on 375 0 to 327% in 2

@pause for a beat

@zoom on 0 0 to 119% in 0

@ELI is eyeroll_sarcastic

    ELI (talk_doubtful)
Your a dog. What do you know?

@pause for 4
}
elif (OUTFIT is Patrick Swayze){
@zoom on 375 0 to 327% in 2

@pause for a beat

@zoom on 0 0 to 119% in 0

@ELI is eyeroll_sarcastic

    ELI (talk_doubtful)
Your a dog. What do you know?

@pause for 4
}
elif (OUTIFT is Nice Casual){
@zoom on 375 0 to 327% in 2

@pause for a beat

@zoom on 0 0 to 119% in 0

@ELI is eyeroll_sarcastic

    ELI (talk_doubtful)
Your a dog. What do you know?

@pause for 4
}
else {
continue
}

sound doorbell

    ELI (talk_shrug_neutral)

That must be Andrea.

It should be:

} elif (OUTFIT is Nice Casual) {

1 Like

So should I just backspace it?

1 Like

Oh, I just realized you had another bracket. No, it’s fine. Sorry for the misunderstanding :slightly_smiling_face:

1 Like

You forgot to add the quotation marks,

—> if (OUTFIT is “Preppy”){
} elif (OUTFIT is “Comfy”){
}

And so on! (:

1 Like

Tysm! I’ll give it a try!

1 Like

Also for this one, since it’s the last outfit, you don’t need the “elif,” replace it with “else”

—> if (OUTFIT is “Preppy”){
} elif (OUTFIT is “Comfy”){
} elif (OUTFIT is “Nice Casual”){
} else {

1 Like

Oh ok! Thanks @Jenaco. you are amazing at this!! I believe you helped with my other story too! lol

1 Like

Aha no problem!

1 Like

Hi!
If you could please look at my script and tell me what I’m doing wrong? x_x
I want my character to choose an outfit and then wear it later on in the next episode.
I’m writing in Limelight if that makes a difference…
My script looks like this:

-In the first episode:-

label dressing_game_1

    RAVEN (talk_handsonhips_neutral)
What do I want to wear for my date with Lucas?

choice (OUTFIT_1)
“Give him the blues” {
@RAVEN changes into Give him the blues
@RAVEN is idle_handsonhips_neutral_loop

} “Knock his socks off” {
@RAVEN changes into Knock his socks off
@RAVEN is idle_handsonhips_neutral_loop

} “Like putty in your hands” {
@RAVEN changes into Like putty in your hands
@RAVEN is idle_handsonhips_neutral_loop

}

    RAVEN (talk_primp_neutral)
Do I want to wear this one?

choice
“It’s perfect!” {
@RAVEN is talk_exclaim_yes_happy
@RAVEN is idle_handsonhips_neutral_loop
@RAVEN walks to spot 0.947 236 167 in 1 AND RAVEN faces left
@STACEY spot 0.920 124 184 in zone 3 AND STACEY faces right THEN STACEY is flirt_fingerbite_sexy
@JULIE spot 0.947 54 179 in zone 3 AND JULIE faces right THEN JULIE is react_holdface_happy
JULIE (talk_exclaim_yes_happy)
Omg yes Raven!
&STACEY is react_claphands_happy
@RAVEN is flirt_wink_happy
@transition fade out white 2
} “No, I want to try on the others!” {
goto dressing_game_1
}

-LATER ON IN THE NEXT EPISODE-

if (OUTFIT_1 is “Give him the blues”) {
@RAVEN changes into Give him the blues

} elif (OUTFIT_1 is “Knock his socks off”) {
@RAVEN changes into Knock his socks off

} else {
@RAVEN changes into Like putty in your hands
}

When I preview it, the choice is not remembered and the character automatically changes into else (Like putty in your hands)

Please please help
:smiley:

Hey there! If you’re talking about the NEXT episode, the web previewer won’t remember the choice, if you play your story on the app, it’ll remember and show on there!

Ohhhhhh… Hahaha I feel stupid now.:rofl:
Thank you so much for your quick reply.
I’m writing my first story so I learn something new every day!:star_struck:

2 Likes

No problem & good luck with your story! (:

2 Likes

@Jenaco I swear you should make a thread on how to do this!

1 Like