Choice Not Being Remembered

community

#1

I don’t know what’s wrong but the choices aren’t being remembered and the character only keeps changing into the first sleepwear.

Script:
label sleepwear_outfits

    SERENA
(What should I wear?)

choice
“Sleepwear 1” {

@SERENA is dustoff_loop
@pause for 1

@SERENA changes into Serena Sleepwear 1
@pause for 1

@SERENA is think

gain sleepwear_1

} “Sleepwear 2” {

@SERENA is dustoff_loop
@pause for 1

@SERENA changes into Serena Sleepwear 2
@pause for 1

@SERENA is think

gain sleepwear_2

} “Sleepwear 3” {

@SERENA is dustoff_loop
@pause for 1

@SERENA changes into Serena Sleepwear 3
@pause for 1

@SERENA is think

gain sleepwear_3

}
SERENA
(This one?)

choice
“This will do” {

    SERENA (dustoff_loop)
(This will do.)

@pause for 1

@SERENA is text_phone_neutral_loop

} “Nah” {

    SERENA (eyeroll)
(I'll try another one.)

@SERENA is think

goto sleepwear_outfits

}

If Statements/Conditions:

if (sleepwear_1) {

@SERENA changes into Serena Sleepwear 1

} elif (sleepwear_2) {

@SERENA changes into Serena Sleepwear 2

} elif (sleepwear_3) {

@SERENA changes into Serena Sleepwear 3

}

Can someone please help me out here. I don’t see what’s the problem and why my character only changes into the first one when I clearly put the “gain” flag.


#2

The last one should be “else”


#3

Thanks. Hopefully it works.


#4

With the way you set up your dressing game, your readers will gain all of the outfits if they try them all on. Thus the if/elif/else will not work because they have gained all 3 flags.

You will have to put a yes/no choice inside each choice option and put the gain inside the yes choices.

Also FYI when you test out gains you have to reset story progress.


#5

How would you do the yes/no choice in each? :thinking:


#6

If you go to my remembering choices guide and scroll down to the end, I give an example of how to remember dressing games.

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


#7

Thanks :slight_smile:


#8

You’re welcome :blush:

If it gets confusing for you or the original poster (or anyone who reads this thread) there’s a template for a simple dressing game in the link in my bio with the yes/no choices inside each option.


#9

Thank you😊 I’ll try that


#10

Closing due to one month of inactivity :slight_smile:


#11