Unexpected ELIF! Can someone help me solve this?!

Hi guys! I’m hoping someone can help me. I’m coding an upcoming episode … I made a choice to be remembered from the previous episode, and now I’m ready to remember that choice that a character made.

It seems I’ve made it very difficult on myself. I tried coding it the way I thought it should be …

if (WHERE_IS_MORGAN is “Actually, Morgan is here too.”) {
#dialogue
}
elif (WHERE_IS_MORGAN is “You’re not funny, Abby!”) {
#dialogue
}
else {
#dialogue for the third option
}

So I coded it like this :point_up_2:t5: but it is still giving me the “Unexpected ELIF” error.

Can someone help me figure this out? I’d truly appreciate it! :blush:

Oh! And I can provide screenshots if it may help explain better what I’m seeing

1 Like

if (WHERE_IS_MORGAN is “Actually, Morgan is here too.”) {

#dialogue

} elif (WHERE_IS_MORGAN is “You’re not funny, Abby!”) {

#dialogue

} else {

#dialogue for the third option

}

This is how I would usually code it

Hey girlie!! Yay!! Ok, I’m gonna do that!! :sparkling_heart: :sparkling_heart: :sparkling_heart:

1 Like

also using gains is easier for me
so i would make a gain like:

gain morgan_here

and

gain not_funny

and whatever you 3rd option was.

this of course is to remember choices.

then I would code

if (morgan_here) {

#dialogue

} elif(not_funny) {

#dialogue

} else {

#dialogue for the third option

}

Aha! I see what you’re saying! :smiley: I’m gonna try it that way. Quick question … if I use the “gain” method, would I have to go back to the original choice and add the “gain” code so that it will remember it when try to “remember” the choice that was made? (I hope I didn’t make that confusing) lol :sweat_smile:

1 Like

Yes go back to your choice

so here’s and example from my story

    NARRATOR
Where do you what to look first?

choice “Closet” {

    ELIANA (talk_pointup_pretentious)
I'll look in the closet!

@ELIANA walks to spot 1.133 94 58 in zone 2 in 2 and ELIANA does it while run_super_speed_loop

gain chose_closet

} “Drawers” {

    ELIANA (talk_pointup_pretentious)
I'll look in the drawers!

@ELIANA walks to spot 1.133 94 58 in zone 2 in 2 and ELIANA does it while run_super_speed_loop

@transition fade out black in 1

gain chose_drawers

}

if (chose_closet) {

INT. CLOSET - WHITE

#scene here#

} else {

INT. DRAWERS -NIGHT

#scene her#

}

hope this helps

The gains will be remembered throughout the story as well!

1 Like

Yes it did! So much! :star_struck: Thank you so much! :sparkling_heart:

1 Like

YAY!! NO PROBLEM!! Good luck! :smile:

1 Like

:raised_hands:t5:

1 Like