If/Else isn't working for me!

The If/Else isn’t working for me. So I want to make a dressing game, if the Reader picks the Right One, the Sister will Compliment the Reader, and if the Reader picks the Wrong One, the Sister will be Shocked.

  1. The problem is that whenever I pick cotillion dress (wrong dress) in the choice, it still goes to the " if (evening_dress) { " Scene. (the sister still compliments the reader

  2. The if ( ) Scene always overwrites the } else { Scene for me. I also tried to switch the ordering:

if (cotillion_dress) {

  • something *
    } else {
  • something *
    }
    And it still doesn’t work for me. Someone help please!

This is the script:

Gain Scene:
INT. CLOSET OPEN SPACE - DAY

@cut to zone 2 AND YOU spot 0.857 110 182 in zone 2 AND YOU faces right

    NARRATOR
Pick the Right Dress!

choice
“Cotillion Ball Dress” {
@YOU changes into YOU_cotillionball1

    NARRATOR
Are you sure this is the right dress?

choice
“It’s perfect!” {
gain cotillion_dress

} “No, I want to try on the other!” {
goto dressing_game_2
}
}“Evening Ball Dress” {
@YOU changes into YOU_eveningball1

    NARRATOR
Are you sure this is the right dress?

choice
“It’s perfect!” {
gain evening_dress

} “No, I want to try on the other!” {
goto dressing_game_2
}
}

    NARRATOR
Let's see how this ends!

@YOU walks to spot 0.857 44 195 in zone 3

If/Else Scene:
INT. ROYAL FOYER FULL - NIGHT
@cut to zone 2 AND YOU spot 0.821 88 204 in zone 3 at layer 1 AND YOU faces left AND PRINCESS STELLAR spot 0.866 84 180 in zone 3 AND PRINCESS STELLAR faces left

if (evening_dress) {

@zoom on 640 213 to 191% in 0

@PRINCESS STELLAR walks to spot 0.866 285 176 in zone 2

@YOU faces right AND PRINCESS STELLAR is react_holdface_happy

readerMessage You picked the | bold , italic , color:red |Right Dress!

    PRINCESS STELLAR (talk_agree_happy)
That's a lovely dress.

choice
“Thank You!”{

  •    YOU (talk_excited_happy)*
    
  • Thank You!*

readerMessage | bold , italic , color:darkorange |You thanked Stellar. +0

@PRINCESS STELLAR +0

}
“Your’s is Wonderful!”{

  •    YOU (talk_excited_happy)*
    
  • Your’s is Wonderful!*

readerMessage | bold , italic , color:darkorange |You complimented Stellar! +1

@PRINCESS STELLAR +1

}

@PRINCESS STELLAR is primp_neutral

@zoom on 602 107 to 153% in 3

@MOTHER walks to spot 0.821 125 191 in zone 2

@YOU faces left

@MOTHER is deepbreath

@zoom on 421 312 to 344% in 0

@speechbubble is 160 201 to 143% with tail_top_left

    MOTHER (talk_sad)
Children, We shall go now.

} else {

@zoom on 640 72 to 141% in 3

@PRINCESS STELLAR walks to spot 0.866 285 176 in zone 2

@YOU faces right

@PRINCESS STELLAR is react_startled_surprised

@MOTHER walks to spot 0.821 141 196 in zone 2

@YOU faces left

@MOTHER is react_shocked_gasp

readerMessage | bold , italic , color:red |Uh Oh. You Picked the Wrong Dress.

@zoom on 444 292 to 297% in 0

@speechbubble is 165 259 to 139% with tail_top_left

    MOTHER (talk_exhausted)
[FIRSTNAME], That is | bold , italic , color:red |NOT |reset|an Evening Ball Dress.

@YOU is idle_awkward_scratch_loop

@zoom on 542 333 to 386% in 3

@pause for 3

}

1 Like

You’re testing the story on the app, right?

If so, you have to ungain both gains by going to

Story Modifiers >> Flags

Click on any gain that is yellow to ungain it and then test your script again.

1 Like

Ohh that’s whyy. Thank you so much!! I thought there was something wrong with my script :))

1 Like

Let me know it it works 🫶🏾

It does now :purple_heart: :purple_heart:!!

1 Like

Glad it did :sparkles:

1 Like