I need help with outfit choices

If anyone could help, please do! I cannot figure out how to make it so that the character wears the same outfit they previously wore. For example, the reader picks an outfit for the MC in episode 1 then in episode 2 there’s a flashback, but after the flashback I want the MC to wear the same outfit the reader had chosen.
This is what I had in episode 1:
label choice_outfit

    AZA (talk_shrug)
What outfit would be the most suitable for a school?

choice (aza_outfit)
“Option 1” {

@AZA is dustoff_loop
@AZA changes into AZA_1

}
“Option 2” {

@AZA is dustoff_loop
@AZA changes into AZA_2

}
“Option 3” {

@AZA is dustoff_loop
@AZA changes into AZA_3

}
“Option 4” {

@AZA is dustoff_loop
@AZA changes into AZA_4

}

And then so on.
The next episode there is a flashback so I had to change the outfit, however I am trying to make it so the MC’s outfit goes back to the one the reader had chosen.
This is what I wrote:

if (aza outfit is “outfit_1”){
@AZA changes into AZA_1
}
if (aza outfit is “outfit_2”){
@AZA changes into AZA_2
}
if (aza_outfit is “outfit_3”){
@AZA changes into AZA_3
}
if (aza_outfit is “outfit_4”){
@AZA changes into AZA_4
}

I am not getting an error, but when I go to either preview it or play it on my phone the MC’s outfit doesn’t change.
I’d really appreciate it if someone could help. I’m not really the best with choices.

Use if/elif/else instead of all if

You will need to use gains, ifs and elifs.
AZA (talk_shrug)
What outfit would be the most suitable for a school?
choice (aza_outfit)
“Option 1” {

@AZA is dustoff_loop
@AZA changes into AZA_1
gain outfit_1
}
“Option 2” {

@AZA is dustoff_loop
@AZA changes into AZA_2
gain outfit_2
}
“Option 3” {

@AZA is dustoff_loop
@AZA changes into AZA_3
gain outfit_3
}
“Option 4” {

@AZA is dustoff_loop
@AZA changes into AZA_4
gain outfit_4
}
This is correct . I changed your script adding gains!! Just copy and paste this in your script.

if (aza outfit is “outfit_1”){
@AZA changes into AZA_1
}
if (aza outfit is “outfit_2”){
@AZA changes into AZA_2
}
if (aza_outfit is “outfit_3”){
@AZA changes into AZA_3

}
if (aza_outfit is “outfit_4”){
@AZA changes into AZA_4
}

Thank you so much!

I’m always here to help! Any questions, PM me!!

Thank you, I didn’t even think of using gains. :purple_heart:

1 Like

You need to use if/elif/else. You’re using all if’s. And if you’re going to use gains, you need to change the way you did the if part. Only the gain name should be inside the parentheses.

HOW TO: Remember Past Choices (if/elif/else)

Hi :blush: I just wanted to comment on why your code wasn’t working.

When you try to change back into the outfit for the flashback, the labels and the choices do not match.

For the flashback script, this should be able to fix it, if you want to code it the same way.

if (aza_outfit is “Option 1”){
@AZA changes into AZA_1
} elif (aza_outfit is “Option 2”){
@AZA changes into AZA_2
} elif (aza_outfit is “Option 3”){
@AZA changes into AZA_3
} elif (aza_outfit is “Option 4”){
@AZA changes into AZA_4
}

The label for some of the if statements was for “aza outfit” (without the underscore), and it was being checked for “outfit_#” rather than “Option #”. I also added elifs to clean it a bit more!

But as others stated above, gains are also wonderful to use! :smile:

Happy writing! :heart:

Get the help you were looking for @izzyj? :slight_smile:

Closing due to one month of inactivity :slight_smile: