If/Elif/Else code not working

Hi! So, I use choice naming for outfit choices. In episode 4 of my story, I have this:

choice (OUTFIT_3)
“Best in Red”{
@YOU is dustoff_neutral_loop
@YOU changes into YOU_9
@pause for a beat
}“Strawberries and Cream”{
@YOU is dustoff_neutral_loop
@YOU changes into YOU_10
@pause for a beat
}“Plaid’s in Fashion, Right?”{
@YOU is dustoff_neutral_loop
@YOU changes into YOU_11
@pause for a beat
}“I <3 Olive”{
@YOU is dustoff_neutral_loop
@YOU changes into YOU_12
@pause for a beat
}

However, in episode 6, I’m trying to use the if/elif/else to make the character change into the previous outfit. Here’s the code:
if (OUTFIT_3 is “Best in Red”){
@YOU changes into YOU_9
}elif (OUTFIT_3 is “Strawberries and Cream”){
@YOU changes into YOU_10
}elif (OUTFIT_3 is “Plaid’s in Fashion, Right?”){
@YOU changes into YOU_11
}else{
@YOU changes into YOU_12
}

Whenever I use this, though, it keeps defaulting my character to the “else” option. Everything looks right, and I’ve used this method previously. Help?

1 Like

Are you previewing your story on the app… or in the portal?!

I did both. It did the same thing in the app. I even went back to Episode 4 and made sure I didn’t select the last option.

I honestly have no idea why this could be happening, then. It’s never happened to me. Maybe you’d be better using gains, then?! :thinking:

I guess so. I just lowkey HATE the flags for dressing games lol. I really wish I could figure out why this isn’t working :((

Thank you for helping, though <3

If you need help with how to operate gains, without it screwing up… just let me know. :smiling_face_with_three_hearts:

This is because you have no gains or points so your script won’t remember the outfit you chose by simply changing into them unfortunately:(.

You could try points if you don’t like gains like so

choice (OUTFIT_3)
“Best in Red”{
@YOU is dustoff_neutral_loop
@YOU changes into YOU_9
@OUTFIT =9
@pause for a beat
}“Strawberries and Cream”{
@YOU is dustoff_neutral_loop
@YOU changes into YOU_10
@OUTFIT =10
@pause for a beat
}“Plaid’s in Fashion, Right?”{
@YOU is dustoff_neutral_loop
@YOU changes into YOU_11
@OUTFIT =11
@pause for a beat
}“I <3 Olive”{
@YOU is dustoff_neutral_loop
@YOU changes into YOU_12
@OUTFIT =12
@pause for a beat
}

if (OUTFIT =9){
@YOU changes into YOU_9
}elif (OUTFIT =10){
@YOU changes into YOU_10
}elif (OUTFIT =11){
@YOU changes into YOU_11
}else{
@YOU changes into YOU_12
}

1 Like

Thank you!! This is a great suggestion.

Choice naming should work perfectly fine though :(( Oh well, thank you again for your help :slight_smile:

Oh right hmm :thinking: I wonder why it doesn’t work

Also just to add on it will ask you to make new characters its really important you don’t correct them to other characters :+1:

1 Like