Remembering Outfit Choices (help)

So my friend helped me with if/elif/else code to remember the outfit choices. But when I test it on the app, and choose a specific outfit choice, it automatically chooses the first outfit choice not the one that I chose.
Here is the code that is not working. Please give me tips to fix this! Thank you.

if (Beige Stylish is “Outfit 1”) {
@NOELLA changes into Beige Stylish

} elif (Red Chic is “Outfit 2”) {
@NOELLA changes into Red Chic

} else {
@NOELLA changes into Puffy Cream
}

The outfit template.

     NOELLA (flirt_liftchin_receive_shy)
    What do I want to wear?

choice (OUTFIT_1)
"Beige Stylish" {
@NOELLA changes into Beige Stylish
#add your own dialogue and flirt_liftchin_receive_shys

} "Red Chic" {
@NOELLA changes into Red Chic
#add your own dialogue and flirt_liftchin_receive_shys

} "Puffy Cream" {
@NOELLA changes into Puffy Cream
#add your own dialogue and flirt_liftchin_receive_shys
}
        NOELLA (flirt_liftchin_receive_shy)
    Do I want to wear this one?
choice
"It's perfect!" {
#add your own dialogue and flirt_liftchin_receive_shys

} "No, I want to try on the others!" {
goto dressing_game_1
}

For the first part, it should be if (CHOICE_NAME is "option1"){.

So the entire thing would be:

if (OUTFIT_1 is “Beige Stylish”) {
@NOELLA changes into Beige Stylish

} elif (OUTFIT_1  is “Red Chic”) {
@NOELLA changes into Red Chic

} else {
@NOELLA changes into Puffy Cream
}
2 Likes

Thank you for helping me!

1 Like

When I put this in my script, it still chooses the first option (beige stylish) even though I chose Red Chic in the app previewer?

1 Like

I made a mistake, apologies. Recopy and paste it into your script, I accidentally misnamed the choice in the branching. I’ve edited it now.

1 Like

It worked! Thank you again!

1 Like

You’re welcome :blush:

1 Like

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