If/elif/else choice help!

Okay, so I’m making my character remember a choice, but it’s a tappable overlay choice. I used the if/elif/else tactic but it’s not working. I don’t know if you can do this but I wanted my character to remmber a choice into the next episode, so between 2&3. Here’s my script:
tappable
“H1” {
&overlay H1 opacity 0 in 1
&overlay H2 opacity 0 in 1
&overlay H3 opacity 0 in 1
&overlay H4 opacity 0 in 1
&overlay H5 opacity 0 in 1
@add Hairbrush Microphone Wooden Black to EMILY
@EMILY is primp_brushhair_happy
@EMILY changes hair into Messy Sock Bun
@remove Hairbrush Microphone Wooden Black from EMILY
@pause for .5
@zoom on 320 338 to 149% in 1 using easeout
EMILY (talk_shrug_neutral)
What do you think?
GEORGIA (react_claphands_happy)
It’s beautiful!
GEORGIA (talk_handsonhips_neutral)
But it’s your choice.
choice “Yes!” {
EMILY (talk_handsonhips_neutral)
I love it!
gain chose_H1
goto done
} “Let’s try again.” {
EMILY (talk_shrug_neutral)
Let’s try another.
@add Hairbrush Microphone Wooden Black to EMILY
goto choosing_hair
}
} “H2” {
&overlay H1 opacity 0 in 1
&overlay H2 opacity 0 in 1
&overlay H3 opacity 0 in 1
&overlay H4 opacity 0 in 1
&overlay H5 opacity 0 in 1
@add Hairbrush Microphone Wooden Black to EMILY
@EMILY is primp_brushhair_happy
@EMILY changes hair into Sleek Ponytail
@remove Hairbrush Microphone Wooden Black from EMILY
@pause for .5
@zoom on 320 338 to 149% in 1 using easeout
EMILY (talk_shrug_neutral)
What do you think?
GEORGIA (react_claphands_happy)
It’s stunning!
GEORGIA (talk_handsonhips_neutral)
But it’s your choice.
choice “Yes!” {
EMILY (talk_handsonhips_neutral)
I love it!
gain chose_H2
goto done
} “Let’s try again.” {
EMILY (talk_shrug_neutral)
Let’s try another.
@add Hairbrush Microphone Wooden Black to EMILY
goto choosing_hair
}
} “H3” {
&overlay H1 opacity 0 in 1
&overlay H2 opacity 0 in 1
&overlay H3 opacity 0 in 1
&overlay H4 opacity 0 in 1
&overlay H5 opacity 0 in 1
@add Hairbrush Microphone Wooden Black to EMILY
@EMILY is primp_brushhair_happy
@EMILY changes hair into Updo
@remove Hairbrush Microphone Wooden Black from EMILY
@pause for .5
@zoom on 320 338 to 149% in 1 using easeout
EMILY (talk_shrug_neutral)
What do you think?
GEORGIA (react_claphands_happy)
It’s perfect!
GEORGIA (talk_handsonhips_neutral)
But it’s your choice.
choice “Yes!” {
EMILY (talk_handsonhips_neutral)
I love it!
gain chose_H3
goto done
} “Let’s try again.” {
EMILY (talk_shrug_neutral)
Let’s try another.
@add Hairbrush Microphone Wooden Black to EMILY
goto choosing_hair
}
} “H4” {
&overlay H1 opacity 0 in 1
&overlay H2 opacity 0 in 1
&overlay H3 opacity 0 in 1
&overlay H4 opacity 0 in 1
&overlay H5 opacity 0 in 1
@add Hairbrush Microphone Wooden Black to EMILY
@EMILY is primp_brushhair_happy
@EMILY changes hair into Side Swept Updo Long
@remove Hairbrush Microphone Wooden Black from EMILY
@pause for .5
@zoom on 320 338 to 149% in 1 using easeout
EMILY (talk_shrug_neutral)
What do you think?
GEORGIA (react_claphands_happy)
It’s fabulous!
GEORGIA (talk_handsonhips_neutral)
But it’s your choice.
choice “Yes!” {
EMILY (talk_handsonhips_neutral)
I love it!
gain chose_H4
goto done
} “Let’s try again.” {
EMILY (talk_shrug_neutral)
Let’s try another.
@add Hairbrush Microphone Wooden Black to EMILY
goto choosing_hair
}
} “H5” {
&overlay H1 opacity 0 in 1
&overlay H2 opacity 0 in 1
&overlay H3 opacity 0 in 1
&overlay H4 opacity 0 in 1
&overlay H5 opacity 0 in 1
@add Hairbrush Microphone Wooden Black to EMILY
@EMILY is primp_brushhair_happy
@EMILY changes hair into Bouffant Long Wavy
@remove Hairbrush Microphone Wooden Black from EMILY
@pause for .5
@zoom on 320 338 to 149% in 1 using easeout
EMILY (talk_shrug_neutral)
What do you think?
GEORGIA (react_claphands_happy)
It’s superb!
GEORGIA (talk_handsonhips_neutral)
But it’s your choice.
choice “Yes!” {
EMILY (talk_handsonhips_neutral)
I love it!
gain chose_H5
goto done
} “Let’s try again.” {
EMILY (talk_shrug_neutral)
Let’s try another.
@add Hairbrush Microphone Wooden Black to EMILY
goto choosing_hair
}
}
label done


if (chose_H1){
@EMILY is primp_neutral
@EMILY changes hair into Messy Sock Bun
}elif (chose_H2){
@EMILY is primp_neutral
@EMILY changes hair into Sleek Ponytail
}elif (chose_H3){
@EMILY is primp_neutral
@EMILY changes hair into Updo
}elif (chose_H4){
@EMILY is primp_neutral
@EMILY changes hair into Side Swept Updo Long
}else{
@EMILY is primp_neutral
@EMILY changes hair into Bouffant Long Wavy
}

Please help me!

  1. Test on your app

  2. Resetting flags (which are gains) to test other paths: HOW TO: Reset Story Progress + Bonus Stuff :blob_sun:

This is what I recommend right away, I’ll go over your code and read through it though :+1:

1 Like

Thank you!

No problem, the tappable game works when you play it right :+1:

P.S Make sure gain names are correct. Make sure not all flags from the tappable game are selected. If all are, it’ll most likely go through else. When you go to check your flags, highlighted golden ones have been chosen. Click on them so you un-gain them (they aren’t golden anymore).

Gained flags = golden

Not gained flags = NOT golden

You only want one to be golden in regards gain chose_HX where X is a number.

1 Like

OMG thank you so much! You have been extremely helpful!

1 Like

OMG I have to say this, but I noticed you changed your picture to ladybug, and I LOVE ladybug!!!

1 Like

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