Don't continue from menu until all choices are clicked
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.
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.
Don't continue from menu until all choices are clicked
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.
-
- Newbie
- Posts: 6
- Joined: Fri Nov 30, 2018 6:19 am
- Contact:
Re: Don't continue from menu until all choices are clicked
Perhaps this will help? viewtopic.php?t=41959#p439685Pook 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.
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
Re: Don't continue from menu until all choices are clicked
This worked perfect, thank you so much.ninjaK4T_06 wrote: ↑Sat Jan 05, 2019 5:54 am
but would this work?the "Finished" option will only be avilable if both q1 and q2 are have been asked.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
Who is online
Users browsing this forum: decocloud