Remembering choices with outfits isn't working?

For some reason in my story, even though it is working fine in the other parts of the episode, when it gets to these lines she doesn’t change. I’m not sure why, seeing that I have used this code with different outfits in this episode. Here is the script:

@HAZEL walks to spot 0.713 16 197 in 2 AND HAZEL does it while walk_neutral_loop_rear AND HAZEL faces right THEN HAZEL is tinker_stand_neutral_loop_rear AND HAZEL faces right
@pause for .5
@HAZEL walks to spot 0.776 143 159 in 2

@HAZEL is dustoff_neutral_loop
@pause for .5
if (what_to_wear2 is “Outfit #1”){
@HAZEL changes into JCCloset_1
}
elif (what_to_wear2 is “Outfit #2”){
@HAZEL changes into JCCloset_2
}
elif (what_to_wear2 is “Outfit #3”){
@HAZEL changes into JCCloset_3
}
elif (what_to_wear2 is “Outfit #4”){
@HAZEL changes into JCCloset_4
}
@HAZEL is dustoff_neutral_loop
@pause for .5

@HAZEL is think_rubchin

I have even tried putting the dustoff_loop into the if/elif section, but she still doesn’t change.

Can anyone help? :joy:

Thanks in advance.

The last option should be else, by itself - not elif.

Do you mean like this?

else (what_to_wear2 is “Outfit #4”){
@HAZEL changes into JCCloset_4
}

It comes out with an error message? I think I wrote it wrong:joy:

(Thank you for helping me by the way:grin:)

Aaaaand I did the emojis wrong

No babes, just else!

else{
@HAZEL changes into JCCloset_4
}

Here’s a great example by Dara

You do not need the if/elif/else choice remembering option unless they changed out of their clothes and need to change back into them, btw. (Idk your story so I’m just letting you know :slight_smile: <3 )

1 Like

Ah-ha! Thank you so much for your help. :grin:
I really appreciate it.

1 Like

Huge help.

1 Like

Of course, darling :heart::heart::heart:

1 Like

Omg, I’m so sorry to keep bothering you, but now she automatically changes into the fourth outfit…

if (what_to_wear2 is “Outfit #1”){
@HAZEL changes into JCCloset_1
}
elif (what_to_wear2 is “Outfit #2”){
@HAZEL changes into JCCloset_2
}
elif (what_to_wear2 is “Outfit #3”){
@HAZEL changes into JCCloset_3
}
else{
@HAZEL changes into JCCloset_4
}

Maybe I wrote something wrong?

Can I see your full script from when you start your dressing game to when you end it?

label JCloset_choices

    HAZEL (idle_shiftweight_neutral_loop)
(What should I wear?)

choice (what_to_wear2)
“Outfit #1” {
@HAZEL is dustoff_neutral_loop
@pause for .5
@HAZEL changes into JCloset_1
@HAZEL is dustoff_neutral_loop
@pause for a beat
goto label JCloset_choices
}
“Outfit #2” {
@HAZEL is dustoff_neutral_loop
@pause for .5
@HAZEL changes into JCloset_2
@HAZEL is dustoff_neutral_loop
@pause for a beat
goto label JCloset_choices
}
“Outfit #3” {
@HAZEL is dustoff_neutral_loop
@pause for .5
@HAZEL changes into JCloset_3
@HAZEL is dustoff_neutral_loop
@pause for a beat
goto label JCloset_choices
}
“Outfit #4” {
@HAZEL is dustoff_neutral_loop
@pause for .5
@HAZEL changes into JCloset_4
@HAZEL is dustoff_neutral_loop
@pause for a beat
goto label JCloset_choices
}
“All done!” {
goto label hair_and_lips_3
}
(There is just a bunch of dialogue here)

HAZEL (talk_shrug_neutral)
Ok…

@HAZEL walks to spot 0.713 16 197 in 2 AND HAZEL does it while walk_neutral_loop_rear AND HAZEL faces right THEN HAZEL is tinker_stand_neutral_loop_rear AND HAZEL faces right
@pause for .5
@HAZEL walks to spot 0.776 143 159 in 2

@HAZEL is dustoff_neutral_loop
@pause for .5
if (what_to_wear2 is “Outfit #1”){
@HAZEL changes into JCCloset_1
}
elif (what_to_wear2 is “Outfit #2”){
@HAZEL changes into JCCloset_2
}
elif (what_to_wear2 is “Outfit #3”){
@HAZEL changes into JCCloset_3
}
else{
@HAZEL changes into JCCloset_4
}
@HAZEL is dustoff_neutral_loop
@pause for .5

&zoom on 447 217 to 248% in 2
@HAZEL is think_rubchin

The whole idea is that she was putting a cloak on and I needed the MC to change into the outfit with the cloak.

At first I actually didn’t have the elif and else, but it didn’t work at all.

Your coding is fine from what I see. Is she automatically changing into that outfit in the portal preview?

That happens all the time w/ coding if you preview from there and aren’t specifically in the if or elif, or if you don’t choose anything in the mobile for it to carry over.

It’ll always play the else first.

Reset your story progress on your app and test out all the options there from the if/elif to make sure the choice is remembered.

No, it’s doing it on the app too. I have no idea why.

Are you resetting the story progress?

OK, let me try that, I did that wrong

Ok, so I reset it and it still automatically goes to the 4th option.

Even if you choose Outfit 1, 2, or 3 first?