Don't continue from menu until all choices are clicked

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Pook
Newbie
Posts: 2
Joined: Sat Jan 05, 2019 4:31 am
Contact:

Don't continue from menu until all choices are clicked

#1 Post by Pook »

I have a menu where the main character asks a series of questions, then and only when it gets done to continue the story. I want the player to ask all 4 questions before the "finish" button shows up. I've tried a number of codes but so far I have failed at every turn. Thanks.

ninjaK4T_06
Newbie
Posts: 6
Joined: Fri Nov 30, 2018 6:19 am
Contact:

Re: Don't continue from menu until all choices are clicked

#2 Post by ninjaK4T_06 »

Pook wrote: Sat Jan 05, 2019 4:35 am I have a menu where the main character asks a series of questions, then and only when it gets done to continue the story. I want the player to ask all 4 questions before the "finish" button shows up. I've tried a number of codes but so far I have failed at every turn. Thanks.
Perhaps this will help? viewtopic.php?t=41959#p439685

EDIT: After reading the i posted, I realized it doesn't actually answer your question. sorry 'bout that.

but would this work?

Code: Select all

define e = Character("Eileen")

define q1 = False
define q2 = False

label start:
    
    menu questions:
        e "Ask me anything!"
        
        "What color is the sky?" if not q1: 
            $ q1 = True
            e "It's blue, silly!"
            jump questions
        "What is 1 + 1?" if not q2:
            $ q2 = True
            e "Well, of course it's 2!"
            jump questions
        "Finished" if q1 and q2:
            e "Okie dokies. See you later!"
            jump somewhere_else
the "Finished" option will only be avilable if both q1 and q2 are have been asked.

Pook
Newbie
Posts: 2
Joined: Sat Jan 05, 2019 4:31 am
Contact:

Re: Don't continue from menu until all choices are clicked

#3 Post by Pook »

ninjaK4T_06 wrote: Sat Jan 05, 2019 5:54 am
but would this work?

Code: Select all

define e = Character("Eileen")

define q1 = False
define q2 = False

label start:
    
    menu questions:
        e "Ask me anything!"
        
        "What color is the sky?" if not q1: 
            $ q1 = True
            e "It's blue, silly!"
            jump questions
        "What is 1 + 1?" if not q2:
            $ q2 = True
            e "Well, of course it's 2!"
            jump questions
        "Finished" if q1 and q2:
            e "Okie dokies. See you later!"
            jump somewhere_else
the "Finished" option will only be avilable if both q1 and q2 are have been asked.
This worked perfect, thank you so much.

Post Reply

Who is online

Users browsing this forum: decocloud