Remembering choices? Can't make her change into the outfit she chose

Pleeease someone help. I can’t seem to make her change into the outfit that she chose previously.
Need someone to view it through their eyes, I’ve been sat here for an hour scratching my head at this.

This is the script so far -

label outfit_1

@pause for a beat

    NARRATOR
Which one do you like best?

@zoom on 640 3 to 200% in 1.5
@zoom on 640 299 to 200% in 1.5

    NARRATOR
This one?

choice (outfit)
“Next outfit -->”{
@zoom on 794 175 to 200% in 1.5
@zoom on 783 463 to 200% in 1.5

goto outfit_2

}
“Choose outfit 1”{
NARRATOR (HAZEL)
This is my favourite.
goto chose_dress
}

label outfit_2

@pause for a beat

    NARRATOR
This one?

choice (outfit)
“Next outfit -->”{
@zoom on 958 4 to 200% in 1.5
@zoom on 960 230 to 200% in 1.5

goto outfit_3
}
“<-- Previous outfit”{
@zoom on 783 463 to 200% in 1.5

goto outfit_1
}
“Choose outfit 2”{
NARRATOR (HAZEL)
This is my favourite.

goto chose_dress
}

label outfit_3

@pause for a beat

    NARRATOR
This one?

choice (outfit)
“<-- Previous outfit”{
@zoom on 783 463 to 200% in 1.5

goto outfit_2
}
“Choose outfit 3”{
NARRATOR (HAZEL)
This is my favourite.

goto chose_dress
}

label chose_dress

@zoom reset

INT. WALKINCLOSET - DAY

@transition fade in black

@HAZEL stands upscreen left in zone 2 AND NATHAN stands back right in zone 2 AND NATHAN is idle_sit_anklescrossed_neutral_loop AND NATHAN spot 0.840 190 199 in zone 2

if (outfit1){

@HAZEL changes into HAZEL_OUTFIT1

}
if (outfit2){

@HAZEL changes into HAZEL_OUTFIT2

}
if (outfit3){

@HAZEL changes into HAZEL_OUTFIT3

}

@pan to zone 2

@pause for a beat

@zoom on HAZEL to 200% in 0.5

You didn’t used gains in your dressing game, so you need to use naming choice method to bring it up, also you used if three times.

Try:

if (outfit is “Choose outfit 1”) {
@HAZEL changes into HAZEL_OUTFIT1

} elif (outfit is “Choose outfit 2”) {
@HAZEL changes into HAZEL_OUTFIT2

} else {
@HAZEL changes into HAZEL_OUTFIT3
}

And read Dara’s guide :slight_smile:
HOW TO: Remember Past Choices (if/elif/else)

1 Like

Like this?

}
“Choose outfit 1”{
NARRATOR (HAZEL)
This is my favourite.

gain outfit_1

goto chose_dress


Or would I put the character outfit, so HAZEL_OUTFIT1?

Yes, you can add gains, but then your coding would look like this:

if (outfit1){

@HAZEL changes into HAZEL_OUTFIT1

}
elif (outfit2){

@HAZEL changes into HAZEL_OUTFIT2

}
else {

@HAZEL changes into HAZEL_OUTFIT3

}

1 Like

Thank you! Big help.
P.s.

I’m wanting her to go to a party in the next scene… Would I add the if/elif stuff again regarding the outfit change or will it stay like it until I make her change again manually?

if it’s a next scene you don’t need to use if/elif/else unless you’re changing her to different clothing

Kinda got it working. But it’s only working for the first outfit, so outfit 1 is working but when I press choose outfit 2 it automatically makes her change into outfit 1.

did you reset your story progress before testing different outfits?

By resetting, do you mean saving it? Or actually refreshing the page?

By resetting I mean clicking on Navigation then on Reset Your Story Progress

or

Click on Story Modifiers and then Flags, the gold one means that are gained so you need to click on them to ungain them

Wow, did not know that! But I do now. :joy:

Oh my, that works! I’m a pleb.
Thank you so much for all your help aha!

No problem :relaxed:

1 Like

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