I need really help!

So I really need help. I have an issue with this part of my script. So I’m trying to kind of combine both choices into branches but when I make the choice to choose the second option: It’s like episode completely ignores the second option and goes with the first option. Help?

Here’s part of my script:

if (AENI) {
@AENI enters from left to upscreen left

    AENI (talk_think_neutral)
Which car did you pick?

}
if (CAMARO) {

    BLYTHE (talk_smile_happy_loop)
The '97 Camaro.

&BLYTHE is idle_happy_loop
@AENI is admire_happy

    AENI (talk_handsonhips_neutral)
Boss' favorite. Careful with the car.

@BLYTHE is listen_nod_happy_loop
@AENI moves to layer 2
@AENI walks to spot 1.280 196 -139 in 2
@BLYTHE moves to layer 0
@BLYTHE walks to spot 1.280 248 -137
@BLYTHE is take_object_neutral
sound car_breakdown
@pause for a beat
sound car_motor

    BLYTHE (admire_happy)
(Man listen to the engine purr..)
    AENI (talk_pointup_happy)
I'll choose the road trip music!

@AENI is take_object_neutral
sound radio_tuning2
@pause for 3
music music_80srock_lp
@AENI is idle_headbob_neutral_loop
@overlay CAMARO2 shifts to 600 -3 in zone 1 in 2
}
elif (OMBRE) {

    BLYTHE (talk_smile_happy_loop)
The Sushca 2030 Stallion.

&BLYTHE is idle_happy_loop
AENI (talk_smile_happy_loop)
Oooh… Fancy!
@AENI walks to upscreen left in zone 3
@follow BLYTHE to screen left in zone 3
@pause for a beat
@AENI walks to spot 1.055 155 -123
@BLYTHE walks to spot 1.055 269 -124
@BLYTHE is take_object_neutral
sound car_breakdown
@pause for a beat
sound car_motor

    AENI (talk_pointup_happy)
I'll choose the road trip music!

@AENI is take_object_neutral
sound radio_tuning2
@pause for a beat
music music_80srock_lp
@AENI is idle_headbob_neutral_loop
@overlay OMBRE2 CAR shifts to 600 -3 in zone 3 in 2
}
if (ANYA) {
@ANYA enters from left to upscreen left

    ANYA (talk_handsonhips_neutral)
So which lucky beaut you chosen?

}
if (CAMARO2) {

    BLYTHE (talk_neutral)
Your 97 Camaro.
    ANYA (talk_smile_happy_loop)
Ah. my first baby.
    ANYA (talk_angry)
You scratch her, I'll kill you.

@BLYTHE is laugh_chuckle
ANYA (talk_angry)
I’m serious.
BLYTHE (talk_deny_neutral)
Alright, alright. I promise.
@ANYA walks to spot 1.280 196 -139 in 2
@BLYTHE moves to layer 0
@BLYTHE walks to spot 1.280 248 -137
@BLYTHE is take_object_neutral
sound car_breakdown
@pause for a beat
sound car_motor
@pause for a beat
@ANYA is talk_armscrossed_neutral_loop
@overlay CAMARO2 shifts to 600 -3 in zone 1 in 2
}
elif (OMBRE2) {
BLYTHE (talk_neutral)
Your Sushca 2030 Stallion.
ANYA (talk_armscrossed_neutral_loop)
Ah… The HD car. Good dodging bullets and has a cool paint job by my mechanic Billy.
@ANYA walks to upscreen left in zone 3
@follow BLYTHE to screen left in zone 3
@pause for a beat
@ANYA walks to spot 1.055 155 -123
@BLYTHE walks to spot 1.055 269 -124
@BLYTHE is take_object_neutral
sound car_breakdown
@pause for a beat
sound car_motor
@pause for a beat
@overlay OMBRE2 CAR shifts to 600 -3 in zone 3 in 2
}
if (AUGUST) {
@AUGUST enters from left to upscreen left

    AUGUST (talk_armscrossed_neutral_loop)
Don't already tell me.. I already know you've chosen.

}
if (CAMARO3) {

    AUGUST (talk_think_neutral)
'97 Camaro. Extremely retro but cool car.
Good with speed and drifting.
    BLYTHE (talk_awkward_loop)
Yeah.. I know. I was raised by a car loving Father.

&BLYTHE is idle_awkward_scratch_loop
AUGUST (talk_think_neutral)
Oh… Right. Your dad that was kidnapped.
AUGUST (talk_smile_happy_loop)
Don’t worry, I have a good sense about your journey.
BLYTHE (think_rubchin)
(What’s that suppose to mean?)
@AUGUST walks to spot 1.280 196 -139 in 2
@BLYTHE moves to layer 0
@BLYTHE walks to spot 1.280 248 -137
@BLYTHE is take_object_neutral
sound car_breakdown
@pause for a beat
sound car_motor

    AUGUST (talk_pointup_pretentious)
Now, if you excuse me. I'm gonna listen to my music.

@AUGUST is dustoff_neutral_loop
@AUGUST changes into AUGUST_outfit2
@AUGUST is idle_headbob_loop_rear
@overlay CAMARO2 shifts to 600 -3 in zone 1 in 2
}
elif (OMBRE3) {
AUGUST (talk_think_neutral)
'30 Sushca Stallion. Only 3 exist in the planet.
BLYTHE (talk_awkward_loop)
Yeah… I know. I was raised by a car loving Father.
&BLYTHE is idle_awkward_scratch_loop
AUGUST (talk_think_neutral)
Oh… Right. Your dad that was kidnapped.
@AUGUST is cough
@ANYA walks to upscreen left in zone 3
@AUGUST walks to upscreen left in zone 3
@follow BLYTHE to screen left in zone 3
@pause for a beat
@AUGUST walks to spot 1.055 155 -123
@BLYTHE walks to spot 1.055 269 -124
@BLYTHE is take_object_neutral
sound car_breakdown
@pause for a beat
sound car_motor

    AUGUST (talk_pointup_pretentious)
Now, if you excuse me. I'm gonna listen to my music.

@AUGUST is dustoff_neutral_loop
@AUGUST changes into AUGUST_outfit2
@AUGUST is idle_headbob_loop_rear
@overlay OMBRE2 CAR shifts to 600 -3 in zone 3 in 2
}
if (CALISTO) {
&CALISTO spot 1.307 -58 5
@CALISTO walks to spot 1.325 119 2

    CALISTO (talk_flirt_charming)
So what car did you pick, beautiful soul?

}
if (CAMARO4) {

    BLYTHE (talk_neutral)
'97 Camaro.
    CALISTO (talk_smile_happy_loop)
Ah! I see you chosen a beauty and my favorite as well as Anya's.

&CALISTO is idle_happy_loop
BLYTHE (eyeroll_subtle)
Let’s go already.
@CALISTO walks to spot 1.280 196 -139 in 2
@BLYTHE moves to layer 0
@BLYTHE walks to spot 1.280 248 -137
@BLYTHE is take_object_neutral
sound car_breakdown
@pause for a beat
sound car_motor
@CALISTO is talk_neutral_loop
@overlay CAMARO shifts to 600 -3 in zone 1 in 2
}
elif (OMBRE4) {
BLYTHE (talk_neutral)
'30 Sushca Stallion.
CALISTO (talk_smile_happy_loop)
Ah! I see you chosen a pretty and unique car.
&CALISTO is idle_happy_loop
BLYTHE (eyeroll_subtle)
Let’s go already.
@CALISTO walks to upscreen left in zone 3
@follow BLYTHE to screen left in zone 3
@pause for a beat
@CALISTO walks to spot 1.055 155 -123
@BLYTHE walks to spot 1.055 269 -124
sound car_breakdown
@pause for a beat
sound car_motor
@CALISTO is talk_neutral_loop
@overlay OMBRE2 CAR shifts to 600 -3 in zone 3 in 2
}
if (CERTISA) {
@CERTISA enters from left to upscreen left

    CERTISA (talk_armscrossed_neutral_loop)
So, what did you pick?

}
if (CAMARO5) {

    BLYTHE (talk_sheepish_rubneck)
This one.

@CERTISA is idle_happy_loop

    CERTISA (talk_handsonhips_neutral)
Not bad of a choice, Blythe.
    BLYTHE (talk_sheepish_rubneck)
Thank you.

@CERTISA walks to spot 1.280 196 -139 in 2
@BLYTHE moves to layer 0
@BLYTHE walks to spot 1.280 248 -137
@BLYTHE is take_object_neutral
sound car_breakdown
@pause for a beat
sound car_motor

    CERTISA (talk_pointup_pretentious)
Hang on. I got the perfect road trip playlist.

@CERTISA is text_phone_neutral_loop
music music_clubrap
@CERTISA is idle_headbob_neutral_loop
@overlay CAMARO shifts to 600 -3 in zone 1 in 2
}
elif (OMBRE5) {
BLYTHE (talk_sheepish_rubneck)
This one.
@CERTISA is admire_happy

    CERTISA (talk_excited_happy)
My favorite car!!
    BLYTHE (idle_awkward_scratch_loop)
(For a tough girl she's adorable to geek out over cars.)

@CERTISA walks to upscreen left in zone 3
@follow BLYTHE to screen left in zone 3
@pause for a beat
@CERTISA walks to spot 1.055 155 -123
@BLYTHE walks to spot 1.055 269 -124
@overlay OMBRE2 CAR shifts to 600 -3 in zone 3 in 2
}
if (EAI) {
@EAI enters from left to upscreen left

    EAI (talk_handsonhips_neutral)
What did you pick?

}
if (CAMARO6) {
BLYTHE (talk_handsopen_happy_loop)
I chosen this beaut.
&BLYTHE is idle_happy_loop
EAI (talk_handsonhips_neutral)
Not bad. Not bad.

@EAI walks to spot 1.280 196 -139 in 2
@BLYTHE moves to layer 0
@BLYTHE walks to spot 1.280 248 -137
@BLYTHE is take_object_neutral
sound car_breakdown
@pause for a beat
sound car_motor
@EAI is yawn_bored
@EAI is sleep_sit_neutral_loop
@overlay CAMARO2 to 600 -3 in zone 1 in 2
}
elif (OMBRE6) {
BLYTHE (talk_handsopen_happy_loop)
I chosen this beaut.
&BLYTHE is idle_happy_loop
EAI (admire_happy)
Ooooh.
@EAI walks to upscreen left in zone 3
@follow BLYTHE to screen left in zone 3
@pause for a beat
@EAI walks to spot 1.055 155 -123
@BLYTHE walks to spot 1.055 269 -124
@BLYTHE is take_object_neutral
sound car_breakdown
@pause for a beat
sound car_motor
@EAI is yawn_bored
@EAI is sleep_sit_neutral_loop
@overlay OMBRE2 CAR shifts to 600 -3 in zone 3 in 2
}
if (JAEIA) {
@JAEIA enters from left to upscreen left

    JAEIA (talk_gossip)
So what's the scoop?
    BLYTHE (talk_armscrossed_neutral_loop)
I chosen a car can you guess which one?

}
if (CAMARO7) {

    JAEIA (talk_think_neutral)
Camaro?

@BLYTHE is listen_nod_happy_loop

    JAEIA (talk_excited_happy)
Well, let's go!

@JAEIA walks to spot 1.280 196 -139 in 2
@BLYTHE moves to layer 0
@BLYTHE walks to spot 1.280 248 -137
@BLYTHE is take_object_neutral
sound car_breakdown
@pause for a beat
sound car_motor

    JAEIA (talk_smile_happy_loop)
I'll put on some music.

@JAEIA is take_object_neutral
sound radio_tuning2
@pause for a beat
music music_darkdance
@JAEIA is idle_headbob_neutral_loop
@overlay OMBRE2 CAR shifts to 600 -3 in zone 3 in 2
}
elif (OMBRE7) {
JAEIA (talk_think_neutral)
Sucha Stallion?
@BLYTHE is listen_nod_happy_loop
JAEIA (talk_excited_happy)
Well, let’s go!
@JAEIA walks to upscreen left in zone 3
@follow BLYTHE to screen left in zone 3
@pause for a beat
@JAEIA walks to spot 1.055 155 -123
@BLYTHE walks to spot 1.055 269 -124
@BLYTHE is take_object_neutral
sound car_breakdown
@pause for a beat
sound car_motor
JAEIA (talk_smile_happy_loop)
I’ll put on some music.
@JAEIA is take_object_neutral
sound radio_tuning2
@pause for a beat
music music_darkdance
@JAEIA is idle_headbob_neutral_loop
@overlay OMBRE2 CAR shifts to 600 -3 in zone 3 in 2
}
if (JAKYL) {
@JAKYL enters from left to upscreen left

    JAKYL (talk_think_neutral)
Did you pick a car yet?
    BLYTHE (talk_neutral)
Yeah.
    JAKYL (talk_think_neutral)
What did you pick?

}
if (CAMARO8) {

    BLYTHE (talk_smile_happy_loop)
'97 Camaro.

&BLYTHE is idle_happy_loop
@JAKYL is admire_happy

    JAKYL (talk_excited_happy)
I'm so pumped and ready to go!!

@BLYTHE is laugh_chuckle
@JAKYL walks to spot 1.280 196 -139 in 2
@BLYTHE moves to layer 0
@BLYTHE walks to spot 1.280 248 -137
@BLYTHE is take_object_neutral
sound car_breakdown
@pause for a beat
sound car_motor
@JAKYL is text_phone_neutral_loop
@overlay CAMARO2 shifts to 600 -3 in zone 3 in 2
}
elif (OMBRE8) {
BLYTHE (talk_smile_happy_loop)
'30 Susha Stallion.
&BLYTHE is idle_happy_loop
@JAKYL is admire_happy

    JAKYL (talk_excited_happy)
I'm so pumped and ready to go!!

@BLYTHE is laugh_chuckle
@JAKYL walks to upscreen left in zone 3
@follow BLYTHE to screen left in zone 3
@pause for a beat
@JAKYL walks to spot 1.055 155 -123
@BLYTHE walks to spot 1.055 269 -124
@BLYTHE is take_object_neutral
sound car_breakdown
@pause for a beat
sound car_motor
@JAKYL is text_phone_neutral_loop
@overlay OMBRE2 CAR shifts to 600 -3 in zone 3 in 2
}
if (ROSIANA) {

    ROSIANA (talk_excited_happy)
So, what car did you pick?!

}
if (CAMARO9) {
BLYTHE (talk_smile_happy_loop)
'97 Camaro.
&BLYTHE is idle_happy_loop
@ROSIANA is cheer_happy_loop
@BLYTHE is laugh_giggle
@ROSIANA walks to spot 1.280 196 -139 in 2
@BLYTHE moves to layer 0
@BLYTHE walks to spot 1.280 248 -137
@BLYTHE is take_object_neutral
sound car_breakdown
@pause for a beat
sound car_motor
@BLYTHE is take_object_neutral
sound radio_tuning2
@pause for a beat
music music_fashionupbeat
@ROSIANA is idle_headbob_neutral_loop
@overlay CAMARO shifts to 600 -3 in zone 1 in 2
}
elif (OMBRE9) {
BLYTHE (talk_smile_happy_loop)
'30 Susha Stallion.
&BLYTHE is idle_happy_loop
@ROSIANA is cheer_happy_loop
@BLYTHE is laugh_giggle
@JAEIA walks to upscreen left in zone 3
@follow BLYTHE to screen left in zone 3
@pause for a beat
@JAEIA walks to spot 1.055 155 -123
@BLYTHE walks to spot 1.055 269 -124
@BLYTHE is take_object_neutral
sound car_breakdown
@pause for a beat
sound car_motor
@BLYTHE is take_object_neutral
sound radio_tuning2
@pause for a beat
music music_fashionupbeat
@ROSIANA is idle_headbob_neutral_loop
@overlay OMBRE2 CAR shifts to 600 -3 in zone 3 in 2
}

Could you boil this down to what the scene is supposed to show, and what it is currently showing, specifically? :thinking: That’s a lot of ifs and elifs in a row.

For example:
You (Blythe) meet with each of your friends, one by one, to discuss your car (either the Camaro or the Ombre). There are 9 friends (Aeni, Anya, August, Calisto, Certisa, Eai, Jaeia, Jakyl, and Rosiana).

Or maybe it’s:
You (Blythe) meet with only one of your friends, either Aeni or Anya or August or Calisto or Certisa or Eai or Jaeia or Jakyl or Rosiana. With the one friend, you discuss your chosen car (either the Camaro or the Ombre).

Or perhaps:
You (Blythe) meet with some of your friends, depending on which flags you got earlier on in the story (AENI, ANYA… and so on are the names of the flags as well as the character names). With each friend you meet, you discuss your car (CAMARO, OMBRE, CAMARO2, OMBRE2, etc) are also the names of flags gained previously.

Also, it’s good form to have “else,” in there, to end an if-elif-else sequence. It helps get yourself organised. I don’t think Episode coding requires an else, it’s just good practise.

Ah so I’m off my laptop and basically you kind of summed it up except you choose a person to be in your “squad” to be Heroes. As for the car it’s also used throughout the story as well as that one character from the choice list

Which one summed it up, though? I suggested 3 completely different scenarios. :thinking:

Do you meet with several members of the squad about these cars, determined by flags earned earlier, then? Maybe one reader meets Anya, August, and Jakyl, while another meets Aeni, August, Calisto, and Eai?

The way the script is set up now, none of the ifs or elifs are nested. For example, every reader will see the scene if (CAMARO3) / elif (OMBRE3) regardless of whether they gained the flag AUGUST.

Also, the way the Episode coding program works is that, when it sees an if-elif with no “else” and none of the conditions are satisfied, it’ll choose the “if”. Which is what it’s doing when you view it. Like, for the if (CAMARO3) / elif (OMBRE3) branch, if the reader has not gained the flag CAMARO3 nor the flag OMBRE3, it will default to “if.”

I can’t puzzle out why you have 9 different flags for the same car, either. :thinking: Rather than CAMARO, CAMARO2, CAMARO3, OMBRE, OMBRE2, etc, shouldn’t there just be one car choice, where you gain either CAMARO or OMBRE, and show it to each squad member in a nested if-else? :thinking:

Well yes beforehand there’s a tappable overlay choice and I first attempt with the CAMARO and OMBRÉ and originally, I had tried to put the gain CAMARO and OMBRÉ2 but instead the script where through every single branch making characters also appear very randomly so I had to add something like CAMARO10/OMBRÉ10 (which it hasn’t been used yet I’ve added it for the scenes for the next episode I’ll write after the contest is over)

As for the scenario it’s the second one… I guess.

If a reader encounters only one squad member, the branches should be nested, and it can be if-elif-elif-else rather than if if if.

if (AENI) {

(Aeni scene)

If (CAMARO) {

Aeni’s Camaro scene

}
else {

Aeni’s Ombre scene

}
}

elif (ANYA) {

Anya scene

if (CAMARO2) {

Camaro scene

}
else {

Ombre scene

}
}

elif (AUGUST) {

etc etc etc

And what’s the exact error you’re experiencing? In the convo with Aeni, Episode shows you the “if (CAMARO)” scene even if you’ve gained OMBRE? Then in the convo with Anya it shows the “if (CAMARO2)” scene even if you’ve gained “OMBRE2”? If so, does it do this for each friend?

So I was experiencing when I chose Ombre it goes over Camaro instead of Ombre but I tried If/Elif/Else now and it worked :slight_smile:

Update:
Nope the one I used didn’t work but I’ll try your idea now.

1 Like

Okay I tried your idea and it didn’t work I only got an error

1 Like

What did the error say, do you have a screenshot?

It says: Unexpected ELIF: elif

Hmmmm… On which elif?

If you look very closely on the left, where there are the line numbers, there are tiny arrows to show which close-bracket is connected to which open-bracket. Where I put two close brackets in a row, the second one is supposed to connect up to the outer layer of the nested if, I guess you could check for any brackets with no partner?

The elif with Anya.

I recommend useing @Dara.Amarie ‘s website

Capture23

I’ve looked into her website before I posted this last night and I couldn’t find any related to branching.

I’m not great but on YouTube there are some good videos

Yeah, Youtube doesn’t have what I’m looking for exactly. Plus the stuff I looked up is outdated and probably doesn’t work.

Then idk sorry I wish I could help