If And else Error! :( help?!

I keep changing else and continue getting the same error. I need the choice to be remember, but every time I change and fix it it says it’s wrong.
Someone help :frowning: :confused:

Example:

NARR
Choice gonna get remembered.

if (label1) {
#scene for if in here
} elif (label2) {
#scene for elif in here
} else {
#scene for else in here
}

NARR
Back to main storyline

it looks like you added an extra bracket on line 97. If this wasn’t it, then it’s line 118. :grin:

Yeah i agree they should remove the } on line 97 and leave the } on line 118 if that scene occurs in else

2 Likes

So remove the one on 118 and leave everything else the same?

I removed the one on 118, it still says error.

I think the bracket on line 116 is facing the wrong way

I removed it completely? Now it’s only the 96 one

Well there’s nothing written in the new brackets so maybe that’s why there’s still an error?

1 Like

I thought else had to be on its own ? Lol I’m not sure I’m about to remove it

Could just put @pause for 0

else needs to be on its own when its written (no name next to it), so:

}else{

like that

HOWEVER you can include a scene in it.

}else{
#scene here
}

#continue story

I recommend for you to read more about if/elif/else here:

Hey I came across your error here:

https://forums.episodeinteractive.com/t/using-if-elif-else-to-remember-past-choices/3774/524

So, after seeing the full screenshots, I’d suggest to follow this guide:

if/elif/else should be used to remember choices down the road.

p.s Also remove “Hold his hand” on line 71.

Anyways, after seeing everything, to sum it up, you’d get something like:

CALLA
Yeah, he put a tracker on my phone.

choice (Date_Nick)
“I would love to.”{
#scene for I would love to here
}“I can’t.”{
#scene for I can’t here
}
#continue story

#And then later on in script for remembering it:

if (Date_Nick is “I would love to.”){
#scene for remembering I would love to here
}else{
#scene for I can’t here.
}
#continue story

1 Like

Thank you! I’ll try it out and see!

Cool, let me know how it goes :+1:

I will not rest until this has been solved :joy: :blob_hearts:

1 Like

just to be clear… so i dont mess up.
ill put the choices and add the scenes into them…
so down the line, i use the if and else… example for an extra scene?

in if the scene for remembering the first choice will occur and in elif the scene for remembering the second choice will occur.

if (Date_Nick is “I would love to.”){
YOU
Nick, I’m glad I went on that date with you.
NICK
Me too, girl.
#bla, bla, bla… (can write more in this for remembering the “I would love to” choice)
}else{
YOU
Sorry I couldn’t go on that date with you Nick.
NICK
It’s OK, I found someone else.
#bla bla bla… (can write more in this for remembering the “I can’t” choice)
}

#continue story where the storyline merges back to main

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