What's wrong with the choice?

i’m somewhat new to writing choices with complex consequences, so i’ve been using gains but it isn’t working. can someone tell me what’s wrong with my script?
note- using “else” for the second option instead of “elif” gives me an error message.

the choice
    VIOLET (think_rubchin)
(What do I tell him?)

choice “That sounds amazing!” {

gain ATTEND_DATE

    VIOLET (talk_excited_happy)
I'd love to!

@LUCY -1
@JULIEN +1
}
“I have plans already.” {

gain ATTEND_PARTY

    VIOLET (talk_sheepish_rubneck)
I already made plans.
if/elif script

if (ATTEND_DATE) {

&VIOLET is talk_neutral

@transition fade in black

@zoom on 148 114 to 138% in 2

@speechbubble is 155 146 to 100%

}
}
elif (ATTEND_PARTY){

&VIOLET is idle_awkward_uneasy_loop

@transition fade in black

@zoom on 148 114 to 138% in 2

@speechbubble is 155 146 to 100%

i cut character dialogue out of the script, because it’s lengthy and i’m not sure it’s relevant to this :sob: scan omeone tell me why no matter what choice it shows the ATTEND_DATE branch?

tried it in app and it worked fine. the portal can suck sometimes :sob:

Perhaps it’s because you have an extra bracket }

i kept getting an error msg without

You have to close your choice options before starting the if/elif.

1 Like

If that doesn’t fix it. I’d recommend either putting the yes/no option before letting the reader move on so it’ll remember which gain they chose and won’t get confused. Or using the choices name.

If (That sounds amazing!) {

} else {

}

Is naming the choice easier than using gains?

It’s up to you on which is easier.

Label party_option
Choice “choice 1” {

CHARACTER (animation)
Is this the one?
choice
“Yes!” {
gain go_party

} “No!” {
goto party_option
}
} “choice 2” {

CHARACTER (animation)
Is this the one?
choice
“Yes!” {
gain no_party

} “No!” {
goto party_option
}
}

If (go_party) {

} else (no_party) {

}

1 Like

This may be due to your script still remembering the option you chose the first time previewing it. This is how to reset gains:


3 Likes

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