If/Elif - Please help ):

I went over everything and I don’t know what I’m doing wrong. I have the LI tell the MC what his favorite color is and then a few scenes later she wears an outfit that’s the same color.

I tested it on the web browser and in the app on my phone. It either chooses red or blue. It doesn’t change into any of the other outfits I’ve put in. I double checked that the outfits were named correctly and everything.

Do I have too many options? Am I missing something? Please help me :sweat_smile:

        NARR (JAE)
    We talked about so many random things.
@speechbubble is 197 275 to 100% with tail_top_left
        JAE (talk_sit_coy)
    What's your favorite color?

choice [shouldPaginate: YES]
"Red" {
gain red_ht
&JAE is idle_sit_neutral_loop
@speechbubble is 123 253 to 100% with tail_top_right
        HARRY (talk_sit_neutral_loop)
    Red for sure. It's been my favorite since I was a kid.

} "Blue" {
gain blue_ht
&JAE is idle_sit_neutral_loop
@speechbubble is 123 253 to 100% with tail_top_right
        HARRY (talk_sit_neutral_loop)
    Blue for sure. It's been my favorite since I was a kid.

} "White" {
gain white_ht
&JAE is idle_sit_neutral_loop
@speechbubble is 123 253 to 100% with tail_top_right
        HARRY (talk_sit_neutral_loop)
    White for sure. It's been my favorite since I was a kid.

} "Purple" {
gain purp_ht
&JAE is idle_sit_neutral_loop
@speechbubble is 123 253 to 100% with tail_top_right
        HARRY (talk_sit_neutral_loop)
    Purple for sure. It's been my favorite since I was a kid.

} "Green" {
gain green_ht
&JAE is idle_sit_neutral_loop
@speechbubble is 123 253 to 100% with tail_top_right
        HARRY (talk_sit_neutral_loop)
    Green for sure. It's been my favorite since I was a kid.

} "Black" {
gain black_ht
&JAE is idle_sit_neutral_loop
@speechbubble is 123 253 to 100% with tail_top_right
        HARRY (talk_sit_neutral_loop)
    Black for sure. It's been my favorite since I was a kid.

}
"Pink" {
gain pink_ht
&JAE is idle_sit_neutral_loop
@speechbubble is 123 253 to 100% with tail_top_right
        HARRY (talk_sit_neutral_loop)
    Pink for sure. It's been my favorite since I was a kid.

} "Yellow" {
gain yellow_ht
&JAE is idle_sit_neutral_loop
@speechbubble is 123 253 to 100% with tail_top_right
        HARRY (talk_sit_neutral_loop)
    Yellow for sure. It's been my favorite since I was a kid.

} "Orange" {
gain orange_ht
&JAE is idle_sit_neutral_loop
@speechbubble is 123 253 to 100% with tail_top_right
        HARRY (talk_sit_neutral_loop)
    Orange for sure. It's been my favorite since I was a kid.

}"Rainbow" {
gain every_color
&JAE is idle_sit_neutral_loop
@speechbubble is 123 253 to 100% with tail_top_right
        HARRY (talk_sit_neutral_loop)
    I don't have a favorite. I love all of them.
    They're all great to me.

}

---------- a couple scenes -----------

if (red_ht){

@JAE changes into JAE_hottubred

} elif (blue_ht){

@JAE changes into JAE_hottubblue

} elif (white_ht){

@JAE changes into JAE_hottubwhite

} elif (purp_ht){

@JAE changes into JAE_hottubpurple

} elif (green_ht){

@JAE changes into JAE_hottubgreen

} elif (black_ht){

@JAE changes into JAE_hottubblack

} elif (pink_ht){

@JAE changes into JAE_hottubpink

} elif (yellow_ht){

@JAE changes into JAE_hottubyellow

} elif (orange_ht){

@JAE changes into JAE_hottuborange

} elif (every_color){

@JAE changes into JAE_hottubrainbow

}

:sweat_smile: I have no idea if this will fix it, but maybe change this to:

} else {

@JAE changes into JAE_hottubrainbow

}

Also make sure to reset your flags so it doesn’t get stuck on one branch (on the app previewer). (:

This probably won’t have any impact(?) but I supposed you could move this so it matches the rest:

} “Pink” {
2 Likes

I’m desperate, ima try it :tired_face: :sweat_smile:

1 Like

On the preview, click on Story Modifiers > Flags and click on any that are yellow. When selected, they persist while testing, which is a blessing and a curse.

1 Like

Hi! I think the problem here is that the last option shouldn’t be an elif, but an else. Also, remember to delete your flags during app preview.

1 Like

When I do that it throws at error, the error went away when I changed the last one to an elif

1 Like

Can I see the error?

1 Like

It worked! Thank you so much :blush:

1 Like

I tried deleting the flags and it worked :smiling_face_with_three_hearts: thank you!

2 Likes