I’m trying to figure out how to make it so when you give the player choices, they have to click through each one in order for the game to progress.
When you click one choice you go through the dialogue and end back up at the choice menu with the choice you just selected blurred out so now you have to click through the other couple and then the game continues. The way I currently have it is that you select the choice, go through one of the dialogues, and then the story skips the other two choices and continues.
Remembering choices
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.
-
- Newbie
- Posts: 2
- Joined: Thu Dec 14, 2023 6:25 pm
- Contact:
Remembering choices
- Attachments
-
- IMG_9024.jpeg
- (5.05 MiB) Not downloaded yet
-
- IMG_9023.jpeg
- (4.19 MiB) Not downloaded yet
- m_from_space
- Miko-Class Veteran
- Posts: 975
- Joined: Sun Feb 21, 2021 3:36 am
- Contact:
Re: Remembering choices
That's a very basic thing to do, there are different approaches. One would be to just use a list that stores the already chosen paths. And Renpy actually ships with something like this called a "menuset": https://www.renpy.org/doc/html/menus.html#menu-setBlackravebow wrote: ↑Fri Dec 29, 2023 11:27 am I’m trying to figure out how to make it so when you give the player choices, they have to click through each one in order for the game to progress.
You could also implement it yourself, since you want your non-available paths to be "blurred". In this case the biggest problem is changing the menu screen so you can pass arguments for items that should be blurred: https://www.renpy.org/doc/html/menus.ht ... -arguments
Code: Select all
default choices = []
label start:
"Please pick a color!"
menu:
"Purple" if "purple" not in choices:
$ choices.append("purple")
jump scenario_purple
"Orange" if "orange" not in choices:
$ choices.append("orange")
jump scenario_orange
"Purple" (True) if "purple" in choices:
pass
"Orange" (True) if "orange" in choices:
pass
Who is online
Users browsing this forum: Alex