My if else statement isn't working

I used an if else statement to reference back to when the character chose an outfit.
I have 3 outfits, and when it gets to the point of the if else statement, outfit 1 and 2 change into the correct fits, but outfit 3 changes into what outfit 2 is coded to change into.
Not sure if I explained this well enough, but if anyone can help I’m happy to show you my script!!

I can help! I think i’ll have a better understanding of what you mean if you show me your script. :blush:

1 Like

Here’s the dressing game part :

label dressing_game1

@speechbubble is 161 168 to 96%

    NARRATOR
What would you like to wear to the party?

choice (dressing_game1)
“Cute Little Dress”{
@MC changes into MC Party 1
@pause for 2

    NARRATOR
Do you want to wear this?

choice
“Yes, I love it!”{
gain outfit_1

goto hair_and_lip_and_fit

}“No, I wanna try the others.”{

goto dressing_game1
}
}“Pink Jumpsuit” {
@MC changes into MC Party 2
@pause for 2

    NARRATOR
Do you want to wear this?

choice
“Yes, I love it!”{
gain outfit_2

goto hair_and_lip_and_fit

}“No, I wanna try the others.”{

goto dressing_game1
}
} “Maroon Baby” {
@MC changes into MC Party 3
@pause for 2

    NARRATOR
Do you want to wear this?

choice
“Yes, I love it!”{
gain outfit_3

goto hair_and_lip_and_fit

}“No, I wanna try the others.”{

goto dressing_game1
}
}

Then here’s the statement :

if (outfit_1) {

@MC changes into MC Party 1 Coat

} elif (outfit_2) {

@MC changes into MC Party 2 Coat

} else {

@MC changes into MC Party 3 Coat

}

Sometimes when you preview your story, you need to press the reset button, because every time you preview it without resetting, it’ll just automatically keep gaining and you won’t get the outfit you want. You can reset by clicking preview -> Navigation -> Restart Episode.

And if that still doesn’t work…maybe try putting <dressing_game1> into a label? not in the choice? Like

label dressing_game1
choice “Cute Little Dress” {

Something like this… :blush:

It worked, thank you!

Please close this thread :grin: @Sydney_H

1 Like

Np! :blush:

1 Like

Closed by OP request. :smiley: