DARA’S GUIDE: Remember Choices with if/elif/else

No problem!

If this is confusing, it would be something like this:

if (early_for_school) {
goto early_day
} else {
goto late_day
}

label early_day
NARR
Scene for choosing to go early to school goes here
goto continue_story

label late_day
NARR
Scene for choosing to go late to school goes here
goto continue_story

label continue_story
NARR
Back to main story line.

1 Like

What did i do wrong?

I already gave you an answer

1 Like

hiya, I was wondering if you could have these if statements inside a choice?

Yes you can

okay, thank you :heart:

can you use more then 1 gain in an if statement?

No, you’d have to use an “if” inside of another “if”

oh okay, thank you :heart:

Hi,

I’m trying to make a choice remember, but it doesn’t work when I use the choice. This is in my episode 8, where my MC choose.

choice (DANCE)
“I can’t” {
LOLA (talk_phone_sad_loop)
I’m sorry Ethan, I’ll think I will go to the dance with Sarah.
She needs me.

    NARRATOR (ETHAN)
...

    LOLA (talk_phone_sad_loop)
Ethan?
Still there?

    NARRATOR (ETHAN)
Of course.
I understand.
Promise me one dance then.

    LOLA (talk_phone_happy_loop)
O.K. I promise.

} “Yeah!” {
LOLA (talk_phone_excited_loop)
OMG! Yes!

    NARRATOR (ETHAN)
*laugh*
O.K. beautiful.
I'll pick you up at 7.

}

In my episode 9, I want to use the remember choice. I wrote it like this:
choice (DANCE)
if (I can’t) {
ETHAN (talk_awkward_loop)
How’s S.?

@LOLA is deepbreath
LOLA (talk_sad_exhausted)
Not good.
She didn’t sleep well last night.

} else {

    ETHAN (talk_flirt_charming)
I'm so happy you said yes to the dance.

    LOLA (talk_armscrossed_neutral_loop)
I'm happy too.

}

It says: unexpected IF: if…
I honestly don’t understand how to do it… :expressionless:

Help me please !

if (choice_DANCE is “I can’t”) {
ETHAN (talk_awkward_loop)
How’s S.?

@LOLA is deepbreath
LOLA (talk_sad_exhausted)
Not good.
She didn’t sleep well last night.

} else (choice_DANCE is “Yeah!”) {

    ETHAN (talk_flirt_charming)
I'm so happy you said yes to the dance.

    LOLA (talk_armscrossed_neutral_loop)
I'm happy too.

}

like this ??
Because not it’s the else that doesn’t work -_-
Thanks!!! :smiley:

if (DANCE is “I can’t”) {

} else {

}

YEAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH you are so nice :smiley: :smiley: thanks for the fast answer :smiley: :smiley: :smiley: :smiley:

1 Like

Hi :slight_smile:

I have troubles with my choice which should be remembered later on.
I thought that I did everything right…but obviously not :roll_eyes:

What did I wrong? :frowning:

What do you have on the lines before that?

Also, remove line 104, so that “Ewh…no!” is right under the bracket on line 103.

Thank you for the hint regarding line 104 :smiley:

And…I got this before the choice…

You must always have dialogue before a choice. You can’t have anything between dialogue and the word choice

Oh dear. Really? This easy? :smiley:
I will never get behind those features. Thank you a lot!

After I came across this I haven’t came across any problems with my choices. Thxs for this amazing template!!!

1 Like