Help my script skips the if/elif/elise for some odd reason


#1

So, I need help with my script. I have choices (this is something I made up)
choice
“Cupcake.” {

CHAR (talk_neutra_loop)
I want a cupcake
gain CUPCAKE
}

If I even use Cupcake in an if form the app and previewer completely skips it and goes to where the branching ends. Did I type in a coding wrong?? Because it’s getting me frustrated. :sob:


#2

How your if elif else code looks like?


#3

if (FRIEND) {
INT. EURO HOTEL ROOM - NIGHT
@BRIDGET changes into BRIDGET_default
@cut to zone 2
@BRIDGET spot 0.858 145 229 and BRIDGET faces left and BRIDGET is idle_sit_neutral_loop

    NARRATOR (MACKENZIE)
Tonight, I forgave a old friend. Whom we fought over something silly for years.
    NARRATOR (MACKENZIE)
Hey, Bridget.. I know you're eating a froyo right now.

    BRIDGET (talk_sit_doubtful)
Dang it, caught red handed.

@transition fade out white
}
if (NOFRIENDS) {
INT. EURO HOTEL ROOM - NIGHT
@BRIDGET changes into BRIDGET_default
@cut to zone 2
@BRIDGET is tinker_kneel_neutral_loop_rear

    NARRATOR (MACKENZIE)
Tonight, I lost a old friend..
    NARRATOR (MACKENZIE)
She's probably packing and leaving Cali early..

@BRIDGET is standup_neutral
&BRIDGET exits right and BRIDGET is walk_sad_loop
NARRATOR (MACKENZIE)
Bridget if you’re out there… I hope we can still try again and refresh…
@transition fade out white
}


#4

The second option should be else
if (FRIEND) {
INT. EURO HOTEL ROOM - NIGHT
@BRIDGET changes into BRIDGET_default
@cut to zone 2
@BRIDGET spot 0.858 145 229 and BRIDGET faces left and BRIDGET is idle_sit_neutral_loop

NARRATOR (MACKENZIE)

Tonight, I forgave a old friend. Whom we fought over something silly for years.
NARRATOR (MACKENZIE)
Hey, Bridget… I know you’re eating a froyo right now.

BRIDGET (talk_sit_doubtful)

Dang it, caught red handed.
@transition fade out white
} else {
INT. EURO HOTEL ROOM - NIGHT
@BRIDGET changes into BRIDGET_default
@cut to zone 2
@BRIDGET is tinker_kneel_neutral_loop_rear

NARRATOR (MACKENZIE)

Tonight, I lost a old friend…
NARRATOR (MACKENZIE)
She’s probably packing and leaving Cali early…
@BRIDGET is standup_neutral
&BRIDGET exits right and BRIDGET is walk_sad_loop
NARRATOR (MACKENZIE)
Bridget if you’re out there… I hope we can still try again and refresh…
@transition fade out white
}


#5

Oooh. I get it now. For some odd reason I always get the else and elif mixed up. :sweat_smile: