Skipping Over Branches // Help Me Please


#1

So I’ve been trying to write a story and I needed to branch based off of choices made earlier in the chapter. I had other choices in this chapter, and those branches worked out fine. However, with this one choice in particular, the program skips over the branch when I preview it. I made the formatting identical to another working branch, but for some reason this one does not work. I’ve been trying to figure out what went wrong but I can’t seem to figure it out. Everything else in the chapter ran smoothly up until this point, where this entire section was skipped over. Here’s what the code looks like:


if (order_dinner is “Say nothing, it’ll be fine”){

    CHARLES (talk_neutral)
And she failed.

@transition fade out

INT. BLACK - NIGHT

    NARRATOR
Oh no! You made a mistake in one of your choices.
Go back and fix what you did.

goto redo_food

}

if (order_dinner is “Interrupt him and say what you want”){

    CHARLES (talk_neutral)
And she succeeded.

}

if (order_dinner is “Politely correct him”){

    CHARLES (talk_neutral)
And she passed with flying colors.

}

Can anyone help me figure out what could have gone wrong? Let me know if you need more information or coding from my story to figure it out.


#2

What does the choice look like?

You’re using all if’s when you should be using if, elif, and else. “if” should only be the first one, “elif” in the middle, and “else” always last by itself.

if (order_dinner is “Say nothing, it’ll be fine”){

} elif (order_dinner is “Interrupt him and say what you want”){

} else {

}

More about the if/elif/else here: HOW TO: Remember Past Choices (if/elif/else)


#3

Thank you it works perfectly now


#4