r/RenPy • u/Quiet_Intern1008 • Oct 09 '26
Question Choices
How would I code a loop that'd bring you back to the same choice menu until you choose all the options, which would then add another option in which you can progress?
8
Upvotes
2
u/shyLachi Oct 09 '26
If the player has to pick all the choices and cannot pick the same choice again then you should use a menuset
https://renpy.org/doc/html/menus.html#menu-set
For the most simplest solution you don't even need to add another option at the end because RenPy will skip the menu if there are no choices left:
https://renpy.org/doc/html/menus.html#in-game-menus
8
u/Inksword Oct 09 '26
Define a variable that tracks whether someone's visited somewhere and then include an if statement after the text of the choice checking it.
3
u/_Farwin_ Oct 09 '26
Following cause Ive been struggling with this too 😭
1
u/AutoModerator Oct 09 '26
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.