Remembering outfit choices! {HELP}

How do we remember an outfit choice in different episodes, and how can we know if it is working?

Well, you can use choice names, but honestly I prefer to use gains everytime.
Basically, whenver you want to remember a choice just insert into every option the gain command, like that:

choice “option1” {

gain gain_name_1

} “option2” {

gain gain_name_2

}

What it does is marking the reader as the gain name, and you can use the if commend to determine what happens if you have that gain if the reader has gained that gain, like that:

if (gain_name_1) {

} elif (gain_name_2) {

} else {

}

Here’s a better tutorial for gains:

1 Like
2 Likes

Thank you so much! gotta try out now nd let you know!

1 Like

Imma try this one real quick too!

1 Like

okay so I have tried that ‘choice name’ option and ik it won’t work on laptop so I previewed on my phone. On the phone the character is wearing the ‘swimsuit’ which she is supposed to wear before choosing and confirming the outfit choice.

This was the code I used in chapter 1

NARRATOR
Is this the outfit you want to wear?
choice (CEL_WEAR1)
“Definitely.” {
if (OUTFIT = 1) {
@CELESTE changes into OP_1
} elif (OUTFIT = 2) {
@CELESTE changes into OP_2
} elif (OUTFIT = 3) {
@CELESTE changes into OP_3
} elif (OUTFIT = 4) {
@CELESTE changes into VIBES
} elif (OUTFIT = 5) {
@CELESTE changes into JULIA_default
}
} “Pick another outfit.” {
@CELESTE previews outfit BIKINI
@pause for 0
goto outfit_closet_0x
}

**And this is the code I copied in chapter 2 **

if (CEL_WEAR1 is “OUTFIT = 1”) {
@CELESTE changes into OP_1
} elif (CEL_WEAR1 is “OUTFIT = 2”) {
@CELESTE changes into OP_2
} elif (CEL_WEAR1 is “OUTFIT = 3”) {
@CELESTE changes into OP_3
} elif (CEL_WEAR1 is “OUTFIT = 4”) {
@CELESTE changes into VIBES
} elif (CEL_WEAR1 is “OUTFIT = 5”) {
@CELESTE changes into JULIA_default
}

This happens on the app. Anytime a character changes into an outfit they stay in that outfit even if you restart the chapter or replay. It’s just an app thing, but it doesn’t affect your story once it’s published. Only you as the author see this issue.

As for your code, I’m a bit confused on your formatting? It looks like you are mixing up points with the choice name method. You need to name the outfit choice, not the choice after confirming the outfit.

OHHH yeahhh I see it now! TYSM <33

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