If/Elif/Else Problem

Hey Everyone!
I have a problem with if/elif/else.
Here’s my script:
https://gyazo.com/6a5e8fd171b46ea1ab8a396d25dc4edd

But it doesn’t work.
There’s a choice, that’s called friendship.
If the characters fight, I want @SHARON to enter the office sad, and have a small self-dialogue. If they don’t, I want her to enter angry, and also say a small self-dialogue too.
I also want them both to end the same, you know, when the } close.
I hope that this is not complicated :sweat_smile:
Could anybody help me?
Your will be very appreciated. :relaxed:
Thank you, Vicky.

So I’m guessing that only one option works?

None of them work :worried:

Can you send me your script where the choice happens?

Sure thing.

YOU
(I don’t have time for this…)
choice (FRIENDSHIP)
“Keep listening to her.” {
@YOU is idle_armscrossed_angry_loop
@zoom on 280 350 to 254% in 0
@SHARON is eyeroll_sarcastic AND YOU is talk_deny_neutral
@pause for a beat
SHARON (talk_apathetic)
You know what, I actually don’t need you.
music off
@zoom on 0 280 to 244% in 0
sound car_suddenstop
@pause for a beat
YOU (talk_repulsed)
What?
@zoom on 280 350 to 254% in 0
SHARON (talk_argument_angry)
I don’t need a friend that never supports me.
SHARON (talk_armscrossed_angry_loop)
And LIES.
SHARON (talk_argue_angry)
And I MEAN IT!
@SHARON is idle_armscrossed_angry_loop
@pause for a beat
@SHARON is idle_armscrossed_awkward_loop
sound record_scratch_stop
@zoom on 0 324 to 185% in 0
@YOU spot 1.469 77 -95 in zone 1
music music_friendshipprogression
YOU (talk_accuse_angry)
YOU–
YOU (talk_argue_defensive)
YOU DON’T NEED ME?!
&zoom on 28 383 to 276% in 15
YOU (talk_argument_angry)
AND WHAT DO YOU MEAN I NEVER SUPPORT YOU?!
YOU (talk_argue_defensive)
ME?!
YOU (talk_angry)
IN YOUR SADDEST TIMES, WHEN YOU LOST YOUR MOTHER, WHO WAS THERE?
@zoom on 280 350 to 254% in 0
@SHARON is idle_armscrossed_awkward_loop
@zoom on 0 324 to 185% in 0
&zoom on 36 363 to 276% in 15
YOU (talk_argue_defensive)
| animation:shuffle-sideways:3 | I |reset | WAS THERE!
YOU (talk_confused_mindblown)
FROM THE MOMENT YOU CAME HERE YOU KEEP BLAMING ME THAT I’M LYING, ABOUT A SOUND!
YOU (talk_complain_angry)
A THOUGHT!
YOU (talk_accuse_angry)
First of all, in the morning, you claimed that I’m a LIER,
YOU (talk_complain_angry)
And NOW because that FREAK flirted you, you come here, because you need me, while having NO ONE ELSE to talk to?!
YOU (talk_angry)
Just GO, OKAY?
YOU (talk_argue_angry)
JUST WALK OUT THE DOOR!
YOU (talk_argue_defensive)
GO FIND BETTER FRIENDS THAN ME!
YOU (talk_accuse_angry)
GO FIND FRIENDS THAT LOVE AND CARE ABOUT YOU,
YOU (talk_asif_angry)
AND NEVER LIE.
@zoom on 280 350 to 254% in 0
@SHARON is idle_sad_timid_loop
@SHARON walks to spot 1.388 88 -40 in zone 2 AND SHARON is walk_sad_loop
@zoom reset
@pause for a beat
@YOU is idle_sad_loop
@YOU spot 1.469 77 -176 in zone 1
@YOU starts cry_sniff_sad_loop
@zoom on 28 233 to 230% in 0
YOU
(I don’t care about her?!)
(How could she say all those things?!)
(I’ve been her best friend for her whole life!)
}
}
“Tell her to go out.” {
YOU (talk_armscrossed_angry_loop)
Just get out of here.
As I said, I have LOADS of work to do.
YOU (talk_repulsed)
What’s wrong with you today, anyways?
YOU (talk_angry)
And STOP pointing that finger on my FACE!
@zoom on 280 350 to 254% in 0
SHARON (eyeroll_sarcastic)
I wasn’t expecting anything else.
@zoom on 0 280 to 244% in 0
YOU (talk_shrug_neutral)
Actions have consequences.
@SHARON walks to spot 1.469 99 -70 in zone 2 AND SHARON does it while walk_angry_loop
@zoom on 28 233 to 230% in 0
@YOU is eyeroll_subtle

The choices work great, but the problem is with if/elif/else.

Maybe just points?

Yeah, that’s weird, lol I’m low on sugar
So it doesn’t show any scenes and just cuts to the end?

1 Like

Yes :sweat:

Is the choice and the outcome in the same chapter?

Yes.

Idk what’s going on :exploding_head:

I mean, choice names are best used with outfits, it would be easier if you use points or gains! :woman_shrugging:t3:
@Dara.Amarie like always knows what going on lol! :cowboy_hat_face:

1 Like

I know right! :smile:

Thanks for the help anyway! :relaxed:

1 Like

Hope you find a solution!

1 Like

What’s the code for the if/elif/else section that isn’t working?

1 Like

Keep in mind that the if/elif needs to match exactly what you put as the option name in the choice which means spelling, upper/lower case, and punctuation. In your option name in the choice, you have a period at the end of the option, but there isn’t a period in the “if” so that is why it’s not working.

1 Like

Omg really?
I’m so stupid that I didn’t notice!
You’re a genius, Dara! Thank you thank you thank you! :blush: :sob:

1 Like