Script help please with if and elif when remembering choices

Ok so basically I want the scenes to only happen if u click a certain one but when I play it through even if I click to what he said instead of smack it out his hand it takes me to the outdoor manor scene :frowning: help??

the script -

 CHANEL
(what should i do?)

choice
“Smack the gun out of his hands”{

@CHANEL is slap_face
@UNKNOWN is slap_face_receive
@remove Handgun from UNKNOWN

@UNKNOWN spot 1.280 331 -145 AND UNKNOWN is reach_grab AND CHANEL exits right AND CHANEL is run_casual

@add Handgun to UNKNOWN

@UNKNOWN is angry_frustrated

@transition fade out 2

gain chose_smackgun
}
“Just do what he said.”{

@CHANEL is deepbreath

    UNKNOWN (talk_hold_gun)
Good, now dont try anything or ill shoot.

    CHANEL (talk_startled)
Okay, okay i get it.

@UNKNOWN spot 1.280 247 10 AND UNKNOWN is text_phone_neutral_loop
UNKNOWN (talk_phone_happy_loop)
Im in boys, i have the daughter the mothers been knocked out.

@CHANEL is dismayed

gain chose_dontmove
}

if (chose_smackgun){

EXT. MANOR GARDENS - NIGHT
@cut to zone 2
@CHANEL changes into CHANEL_PJ
@zoom on 0 0 to 100% in 0

@transition fade in 2

@CHANEL stands screen center AND CHANEL is idle_wounded

    CHANEL
(F..i need to find help wait..)

@zoom on 464 245 to 173% in 2
CHANEL (idle_terrified)
(Mums still in there)

    CHANEL
...

choice
“Go back in after your mother”{

@CHANEL exits right AND CHANEL is walk_scared

@transition fade out 2

gain chose_gobacktohouse
}
“Call the police”{

@CHANEL is talk_phone_sad_loop

    CHANEL
Police please.

@transition fade out 2

gain chose_ringpolice
}
}

elif (chose_dontmove){

EXT. JUVIE POOL HOUSE INTERIOR V2 - NIGHT
@cut to zone 2
@CHANEL changes into CHANEL_PJ
@zoom on 0 0 to 100% in 0

@CHANEL spot 1.280 116 -1 AND CHANEL is idle_terrified AND CHANEL faces right AND UNKNOWN spot 1.280 247 10 AND UNKNOWN is hangup_phone_angry AND UNKNOWN faces left

    UNKNOWN (talk_doubtful)
Follow me.

@UNKNOWN exits right AND CHANEL exits right AND CHANEL is walk_sad

@transition fade out 2

INT. KITCHEN2 - DAY with EFFECT DIM 60
@cut to zone 2
@zoom on 0 0 to 100% in 0

@transition fade in 2
@MOTHER stands screen center AND MOTHER is idle_exhausted AND MOTHER faces left
@CHANEL enters from left to screen left AND CHANEL is walk_sad

    NARRATOR (UNKNOWN)
Wait there.
    CHANEL (talk_startled)
Mum?

    MOTHER
...

    CHANEL (dismayed)
(Wtf?)

    CHANEL (talk_angry)
We have to leave snap out of it.

}

if (chose_callpolice){

EXT. EARTH - NIGHT
@zoom on 0 0 to 100% in 0
@transition fade in 2
NARRATOR (CHANEL)
And thats when my world went silent, and it hit me. a shot went off
Did my mum get shot? or did my mother shoot the intruder?

The police flooded in and thats when i heard it

NARRATOR (OFFICER LEE)
I need an ambulence we have a women severly injured shes loosing alot of blood.

}

elif (chose_gobacktohouse){
INT. KITCHEN2 - DAY with EFFECT DIM 60
@cut to zone 2
@zoom on 0 0 to 100% in 0

@transition fade in 2
@MOTHER stands screen center AND MOTHER is idle_exhausted AND MOTHER faces left
@CHANEL enters from left to screen left AND CHANEL is run_casual
}

Moved to Directing Helps and Tips since this is about coding.
Make sure to check out our Forum Tutorial for more info about where to correctly create topics, and feel to PM me if there are any questions. :wink:

@Apes

1 Like

hm?

1 Like

make sure the second(last) option is else on its own. Also, make sure you reset your story progress when you test different choices

1 Like

Thankyou (:

iv just tried what you said but iv deffo done it wrong I tried a few different things and im still confused ;-;

Have you tried putting the scene inside the choice rather than using the if/else?
Something like this-
choice
“Smack the gun out of his hands”{
gain chose_smackgun
SCENE HERE

choice
“Go back in after your mother”{
gain chose_gobacktohouse
SCENE HERE
}
“Call police”{
gain chose_callpolice
SCENE HERE
}
}
“Just do what he says”{
gain chose_dontmove
SCENE HERE
}

1 Like

You can keep the gains so you can refer back to them at a later date but the way you have your script at the moment, it doesn’t look like you need to use the if/else coding :slight_smile: just put the scenes inside the choices and then after the last } is where your branching will come together and the story continues :slight_smile:

1 Like

ill try this now ty (:

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