Page 1 of 1

Conditional Menus?

Posted: Mon Oct 19, 2020 12:54 pm
by Nella102
Would it be possible to have a menu with questions that are only unlocked if a variable is set to true? If so how would I do it?

Re: Conditional Menus?

Posted: Mon Oct 19, 2020 1:09 pm
by RicharDann
You just need to add an if statement after the choice.

Code: Select all

default beach_unlocked = True

label start:
    menu:
        "Go to the park":
            "I guess I'll go to the park."

        "Go to the beach" if beach_unlocked: #will only appear if beach_unlocked is True
            "Let's go to the beach!"
For a more detailed explanation and example see here.