Help with gain / flags?

Hey! So I’m fairly new to writing on Episode, but have already published a story called Nameless! In the next chapter that I plan to publish, I’ve decided that I want what someone chooses to wear to bed to affect a reaction from someone else later on. However, if I use the gain method, by the user simply trying on all outfits, they gain everything and then when they get to that choice later on, they end up with just the first outcome which may not be accurate with the outfit they chose.

It’s not a huge issue, I could always reword it. Although I did want it to come into play later on in the story in a more significant way. Here’s the current scripting:

label choosing_outfit

    SADIE
(So what do I want to wear to bed?)

choice
“Peach night gown” {

@SADIE walks to screen center in zone 3

gain night_gown

@SADIE changes into SADIE_royal_sleep

}
“Heart sweater”{

@SADIE walks to screen center in zone 3

gain sweater

@SADIE changes into SADIE_royal_sleep2

}
“Leapord print tank”{

@SADIE walks to screen center in zone 3

gain leapord

@SADIE changes into SADIE_royal_sleep3

}
“Bra and shorts”{

@SADIE walks to screen center in zone 3

gain bra_shorts

@SADIE changes into SADIE_royal_sleep4

}
“Periwinkle set”{

@SADIE walks to screen center in zone 3

gain peri_set

@SADIE changes into SADIE_royal_sleep5

}

@SADIE walks to screen center in zone 2

@pause for a beat

@pause for a beat

    SADIE
(Will I be comfortable in this?)

choice
“This will work.” {

    SADIE (applaud_loop)
(Yep, this is high quality fabric. It's also kind of cute...)

}
“Let’s try on another outfit.” {

    SADIE (idle_awkward)
(I'm not quite sure I like this. I suppose I'll try something else on...)

goto choosing_outfit

}

And then a bit later in the chapter:

if (night_gown){

@speechbubble is 173 272 to 100% with tail_top_left

    SADIE (talk_handsonhips)
Time to explore!

@pause for a beat

&SADIE faces left AND SADIE starts startled_surprised

@speechbubble is 173 272 to 100% with tail_top_right

    MAID2
Goodness, child!

@MAID2 walks to spot 1.280 252 18 AND MAID2 is run_jog

&SADIE starts idle_awkward AND SADIE faces right

    MAID2 (talk_confused_mind_blown)
What is wrong with you?!

    MAID2 (talk_contend)
This night gown leaves nothing to the imagination!

}elif (sweater){

@speechbubble is 173 272 to 100% with tail_top_left

    SADIE (talk_handsonhips)
Time to explore!

@pause for a beat

&SADIE faces left AND SADIE starts startled_surprised

@speechbubble is 173 272 to 100% with tail_top_right

    MAID2
Goodness, child!

@MAID2 walks to spot 1.280 252 18 AND MAID2 is run_jog

&SADIE starts idle_awkward AND SADIE faces right

    MAID2 (talk_confused_mind_blown)
What is wrong with you?!

    MAID2 (talk_angry_accuse)
Your legs and underwear are exposed!

    MAID2 (talk_exhausted)
At least you wore a sweater...

}elif (leapord){

@speechbubble is 173 272 to 100% with tail_top_left

    SADIE (talk_handsonhips)
Time to explore!

@pause for a beat

&SADIE faces left AND SADIE starts startled_surprised

@speechbubble is 173 272 to 100% with tail_top_right

    MAID2
Goodness, child!

@MAID2 walks to spot 1.280 252 18 AND MAID2 is run_jog

&SADIE starts idle_awkward AND SADIE faces right

    MAID2 (talk_confused_mind_blown)
What is wrong with you?!

    MAID2 (talk_angry_stubborn)
Are you trying to have the king and queen kick you out?!

    MAID2 (talk_exhausted)
No one wants to see you in your leapord print under garments, I assure you.

}elif (bra_shorts){

@speechbubble is 173 272 to 100% with tail_top_left

    SADIE (talk_handsonhips)
Time to explore!

@pause for a beat

&SADIE faces left AND SADIE starts startled_surprised

@speechbubble is 173 272 to 100% with tail_top_right

    MAID2
Goodness, child!

@MAID2 walks to spot 1.280 252 18 AND MAID2 is run_jog

&SADIE starts idle_awkward AND SADIE faces right

    MAID2 (talk_confused_mind_blown)
What is wrong with you?!

    MAID2 (talk_angry_accuse)
What if someone else had seen you so...

    MAID2 (talk_repulsed)
So exposed...?!

    MAID2 (talk_exhausted)
I can't believe the prince is making me deal with this.

}elif (peri_set){

@speechbubble is 173 272 to 100% with tail_top_left

    SADIE (talk_handsonhips)
Time to explore!

@pause for a beat

&SADIE faces left AND SADIE starts startled_surprised

@speechbubble is 173 272 to 100% with tail_top_right

    MAID2
Goodness, child!

@MAID2 walks to spot 1.280 252 18 AND MAID2 is run_jog

&SADIE starts idle_awkward AND SADIE faces right

    MAID2 (talk_confused_mind_blown)
What is wrong with you?!

    MAID2 (talk_arms_crossed_angry)
What made you think it was a good idea to wear these pajamas out of your room?

    MAID2 (talk_exhausted)
At least you're not exposing yourself...

}

Done! So if anyone by any chance knows how I could do this is differently, that would be nice! I suppose I can figure something out with the point system, but if there’s an easier way, I would love to know! Thank you to anyone who decides to read (:

1 Like

The best way to remember outfit choices is the “choice name and option” method as shown in this guide here: HOW TO: Remember Past Choices (if/elif/else)

The way your dressing game is set up, readers will gain all those flags resulting in the if/elif/else not working correctly.

1 Like

Thank you so much!! I hadn’t seen this method before (:

1 Like

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