DARA’S GUIDE: Remember Choices with if/elif/else

Use the if/elif/else code

1 Like

Like this?

    DANI (talk_think_neutral)
What sould dress should i wear?

choice “Dress that alysson bought me” {

if (Satin Pink Dress) {
@DANI is dustoff_neutral_loop
@DANI changes into STYLE1

} elif (Emerald Mermaid Dress) {
@DANI is dustoff_neutral_loop
@DANI changes into STYLE2

} else {
@DANI is dustoff_neutral_loop
@DANI changes into STYLE3
}

} “My Father’s Gift” {
@DANI is dustoff_neutral_loop
@DANI changes into DANI_FG

i used the if/elif/else, i pick the second dress which is the emerald dress [which is in elif] but when i go to my next episode and make a choice on what my character will wear, the Nude dress [which is in else] is the one that shows up

Are these the gain names or the choice options?

1 Like

oh that’s supposed to be the gains name okay okay i’ll try it. THANK YOU SO MUCH!!!

Thanks :slight_smile:

Bump :blob_sun:

1 Like

Will the Gains and Flags work with Tappable Gender Choice?

Yep!

1 Like

It worked! Tysm :heart:

Bump :lollipop:

heyy @Dara.Amarie i have a question that might soud stupid but i´m a new writer and i suck at coding :joy:
if i let reader´s write their character´s name how can i do it so that later on in some dialogue it need to appear their name depending on which one the reader wrote

sorry if i sound confusing :sweat_smile:

Thank you so much for this! It’s helped a lot!

I’mm having an issue with my outfit choices in my story.

I have 4 outfit choices and I used the if/eif/eif/else but instead it just choses the last dress for my readers it doesn’t remember their choice.

are you still having problems? pm me your script if you still need help!

Bump :pizza:

I don’t understand what’s wrong here

Don’t capitalize “else”.

i tired, it doesn’t work

still not working…