My remembering clothing choice isn't working

hey. so I have a few clothing options I want to have for remembering because I have one scene where they change into a cheerleading outfit but then I want the code to remember what they had on before. this is what happens though when I chose one of the outfits. it goes to the second option again and not stays on the third option. same with the first choice. if I pick the first chose when she leaves the room it goes to the second choice

This is what I have for a code.

label dressing_game_1

    TAYLOR (think_rubchin)
What do I want to wear?

choice (TAYLOR_SCHOOL 1)
“TAYLOR_SCHOOL 1” {
@TAYLOR changes into TAYLOR_SCHOOL 1

@speechbubble is 156 362 to 100% with tail_top_left
TAYLOR (talk_think_neutral)
(Is this what I want to wear?)
@speechbubble reset

@TAYLOR is idle_handsonhips_neutral_loop

@pause for a beat

} “TAYLOR_SCHOOL2” {
@TAYLOR changes into TAYLOR_SCHOOL2

@speechbubble is 156 362 to 100% with tail_top_left
TAYLOR (talk_think_neutral)
(I like this one.)
@speechbubble reset

@TAYLOR is idle_handsonhips_neutral_loop

@pause for a beat

} “TAYLOR_SCHOOL 3” {
@TAYLOR changes into TAYLOR_SCHOOL 3

@speechbubble is 156 362 to 100% with tail_top_left
TAYLOR (talk_think_neutral)
(This is cute.)
@speechbubble reset

@TAYLOR is idle_handsonhips_neutral_loop

@pause for a beat
}

@speechbubble is 156 362 to 100% with tail_top_left
TAYLOR (think_rubchin)
Do I want to wear this one?

choice
“It’s perfect!” {

    TAYLOR (selfie_phone)
I look amazing

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

if (TAYLOR_SCHOOL 1 is “TAYLOR_SCHOOL 1”) {
@TAYLOR changes into TAYLOR_SCHOOL 1
} elif (TAYLOR_SCHOOL2 is “TAYLOR_SCHOOL2”) {
@TAYLOR changes into TAYLOR_SCHOOL2
}else {
@TAYLOR changes into TAYLOR_SCHOOL 3
}
@zoom on 0 0 to 100% in 0

@TAYLOR exits left

If that is what the choice is named, that’s what the if/else has to be.
if (TAYLOR_SCHOOL 1 is “TAYLOR_SCHOOL 1”) {
@TAYLOR changes into TAYLOR_SCHOOL 1
} elif (TAYLOR_SCHOOL 1 is “TAYLOR_SCHOOL2”) {
@TAYLOR changes into TAYLOR_SCHOOL2
}else {
@TAYLOR changes into TAYLOR_SCHOOL 3
}

Also, unless she changes clothes between the choice and leaving the room there is no need for a if/else.

OK. Thanks. When she changes into say the cheerleading outfit later in the story, how do I have it where the script remembers this what she had on before?

1 Like

or do i just need to put the code in again and ask the readers what she had on before

1 Like

@CHARACTER previews cheerleading_outfit

@CHARACTER unpreviews cheerleading_outfit

When she unpreviews it, it will go back to whatever the last “@character changes into” command was.

Ok I think I get it. So instead of saying @CHARACTER changes into cheerleading outfit
Do the preview command.

1 Like

it says that the preview and unpreview is an invalid command

1 Like

never mind figured it out why it wasn’t working.

2 Likes

Solved & Closed :v: