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

Yes, as @ara.pia said, both methods work in the same episode and throughout different episodes.

1 Like

oh, okay. thanks for the quick response. it’s just been a different (frustrating) case for my script. flags only worked when i used them on different episodes and choice names seem to work when i use them on the same episode :pensive:. i’m just glad i can finally move on.

1 Like

Hm, I’m not sure what that could be. If you’re looking though the previewer, it could have something to do with your “story modifiers” section. If it’s still giving you trouble, I’d be happy to take a look at your script in pm, but if you’ve already gotten it to work, then disregard!

1 Like

Hi Daya! The script keeps saying error “there is not a line matching” even though I put down a second bracket, please help!

if (chose_ballroom) {
@zoom on 723 169 to 314% in 0
readerMessage Because you chose the ballroom…
ALLVAR (talk_shrug_neutral)
We decided our wedding will take place in the |bold| ballroom.
&zoom on 911 124 to 285% in 0.50 using easeinout
VICTORIA starts react_claphands_happy
@pause for 2
readermessage Victoria +5
VICTORIA (talk_reassure_neutral)
Brilliant!
VICTORIA (talk_pointup_happy)
Tradition is always better!
} else {
@zoom on 723 169 to 314% in 0
readerMessage Because you chose the garden…
ALLVAR (talk_shrug_neutral)
We decided our wedding will take place in the |bold| enchanted garden.
&zoom on 911 124 to 285% in 0.50 using easeinout
VICTORIA starts talk_startled_neutral
@pause for 2
readermessage Victoria -5
VICTORIA (talk_deny_neutral)
The garden?!
VICTORIA (talk_afraid)
But what about the bugs!
VICTORIA (talk_awkward_loop)
And leaves…
VICTORIA (talk_doubtful)
… And snails!
@zoom on 717 152 to 285% in 0
ALLVAR (talk_armscrossed_shrug_neutral)
You mean, nature?
@zoom on 905 131 to 285% in 0.50 using easeinout
VICTORIA (talk_handsonhips_angry_loop)
|bold| Yes!
VICTORIA starts deepbreath
@pause for 3
VICTORIA (talk_exhausted)
Well, it is |bold| your |reset| wedding…
VICTORIA (talk_explain_neutral)
I suppose we could make it doable.
@zoom on 713 159 to 292% in 0
ALLVAR (talk_armsraised_neutral)
Thank you, mother.
}

You didn’t capitalize the M in readerMessage

Omg, it worked! Thank you!

1 Like

Bump :frog:

Sorry for bothering, but i need some help. When i use the gain option and if/elif/else, the cutscenes play one after another (meaning if I choose option 2, it’ll play the cutscene of option 1 and 2) How do I fix that? (For some reason I cannot post screen-shots here- )

Bump :evergreen_tree:

Awesome!

I don’t know if this was already asked, but is it possible to put in if/elif/else more than one command (combination of gain & points OR gain & gain OR Points & Points)? If yes, how many gains and points can we add?

Something like (just an example):

if (kiss_li AND tell_truth) {
#script
} elif (reject_li AND tell_truth){
#script
}else {
#script
}

Thanks in advance! :slight_smile:

I still don’t understand. when i write the else, where do i write the scene and where do i put the (------)?
can you plz tell me

Look at the example in my guide above.