Making Dialogue using the if/elif/else Coding

I was wondering if I could add dialogue according to the choice that the reader choose. I know there’s a way that I can, but I don’t know how. This is what I have:

EXT. ROYAL BALLROOM TERRACE - NIGHT

if (African_Princess) {
@RAIN spot 1.010 158 185 in zone 2 at layer 3 AND RAIN is idle_rear AND RAIN faces left

@pause for a beat

@RUBIN changes into Rubin_Ball

@RUBIN spot 1.010 400 177 in zone 2 at layer 3 AND RUBIN faces left

@RUBIN walks to spot 1.010 246 177 in 3

@RUBIN spot 1.010 246 177 in zone 2 at layer 3 AND RUBIN faces left

@RUBIN is idle_rear

@pause for a beat

    RAIN
Hey.

&zoom on 640 378 to 127% in 3

    RUBIN
Hey.
    RUBIN
What are you doing out here beautiful?

    RAIN
I honestly don't know.

    RUBIN
*Sigh*

    RAIN
Yeah that's how I'm feeling right now.

    RUBIN
Cool dress by the way. I love how you're comfortable embracing your ancestry. **(This line of dialogue doesn't show up with this choice)**

    RAIN
Thank you. That's what I was going for tonight. **(This line of dialogue doesn't show up with this choice)**

@pause for a beat
}
elif (calm_blue_dress) {
@RAIN spot 1.010 158 185 in zone 2 at layer 3 AND RAIN is idle_rear AND RAIN faces left

@pause for a beat

@RUBIN changes into Rubin_Ball

@RUBIN spot 1.010 400 177 in zone 2 at layer 3 AND RUBIN faces left

@RUBIN walks to spot 1.010 246 177 in 3

@RUBIN spot 1.010 246 177 in zone 2 at layer 3 AND RUBIN faces left

@RUBIN is idle_rear

@pause for a beat

    RAIN
Hey.

&zoom on 640 378 to 127% in 3

    RUBIN
Hey.
    RUBIN
What are you doing out here beautiful?

    RAIN
I honestly don't know.

    RUBIN
*Sigh*

    RAIN
Yeah that's how I'm feeling right now.

@pause for a beat
}
else {
@RAIN spot 1.010 158 185 in zone 2 at layer 3 AND RAIN is idle_rear AND RAIN faces left

@pause for a beat

@RUBIN changes into Rubin_Ball

@RUBIN spot 1.010 400 177 in zone 2 at layer 3 AND RUBIN faces left

@RUBIN walks to spot 1.010 246 177 in 3

@RUBIN spot 1.010 246 177 in zone 2 at layer 3 AND RUBIN faces left

@RUBIN is idle_rear

@pause for a beat

    RAIN
Hey.

&zoom on 640 378 to 127% in 3

    RUBIN
Hey.
    RUBIN
What are you doing out here beautiful?

    RAIN
I honestly don't know.

    RUBIN
*Sigh*

    RAIN
Yeah that's how I'm feeling right now.

@pause for a beat
}

Is this about an outfit choice?

Yes it is.

So, if I get this correctly, your script should be something like this:

label outfit
CHARACTER
(blah blah blah)
choice
“Outfit 1” {
@CHARACTER changes into outfit 1
} “Outfit 2” {
@CHARACTER changes into outfit 2
} “Outfit 3” {
@CHARACTER changes into outfit 3
}
NARR
Do I want this?
choice
“Yes” {
} “No”{
goto outfit
}

if (CHARACTER wears outfit 1) {
goto label1 (you can use “gain” as well, if the scene that people comment on the outfit is later on in the story)
} elif (CHARACTER wears outfit 2) {
goto label2
} else{
goto label3
}

In a few words, all you need to do is have the character choose their outfit and then use label/goto or gain for the “if” commands you’ve written above :slight_smile: then in each label you can write anything you want.
Also make sure you don’t have the character change into the same outfit in every label cause I think that’s what you’ve written above.
Hope this helps and isn’t too confusing :grin:

You can have different dialogues by using the if/else method…

Okay thanks. I knew you could somehow.