Help with setting up- remembering choices

In need of help trying to fix my code to remember a choice from a previous episode. I don’t know if I set up the gains wrong in EP2 and that’s why it’s not set up right in EP3, but I’d appreciate some one on one help, thank you.

3 Likes

Use a gain and then when you want to remember the choice you if/elif
Did you have a specific scene? Leave the code here (:


333

1 Like

you didnt do else option?

I don’t need it, I only have the two options for dialogue.

if (told_zo) {

    ZO
Dialogue

} else {

    ZO
Why didnt you tell me? (idk)

}

You do need it, you dont need elif (that’s for 3 options)

Ohhhhh okay I see lolol thank you

1 Like

Let me know if it works!

Okay, testing it now!

1 Like

I’m going to need to see the actual full scene you can DM me to keep it private if you dont want your story out there yet

1 Like

Lol yes please. I’ll send it shortly.

1 Like

Just to let you know, you don’t need an else option. Although it makes the most sense to use else if you only have 2 things you’re referring to so that you don’t have to type out so much, it’s faster to just put else. So that wouldn’t cause you a problem even if you only used if and elif. You can even just use if, if you wanted to only refer to one gain. Such as

if (special_scene) {
#whatever happens here if you’ve gained special_scene
}

1 Like

You don’t need else but if you do, don’t add (flag).
If (flag){
Script
} else {
Script

Like other person said, you can just have “if” or just “if and elif”.

2 Likes

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