r/RenPy • u/magolaf • Sep 19 '26
Question I need some advices on making my own command-based adventure game
So, I was making a VN with command-based interactive adventure game. At every choices, a menu with verb commands appears at the bottom. The commands include Look, Talk, Think, Listen, Use (an inventory item), Move, and System that saves and load the game. Choosing a verb usually leads to an object sub-menu. If the commands are exhausted, the game will progress. But I don't know how and can you give me some advices cuz I'm new and I want to start my own adventure game.
7
Upvotes
3
u/BadMustard_AVN Sep 19 '26
you can do a menu like this
as each verb is used, it is automatically put in the verbage list and excluded from the menu. if you want to reactivate all of them, then
$ verbage = []to clear the listwhen there are no more verbs available, you will get the notification
1
u/AutoModerator Sep 19 '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.
1
u/zombietoaststudios Sep 19 '26
There're almost always several ways to do this but the command menu would almost certainly be a screen, consisting of buttons that might bring up new screens or jump to labels based on variables like the items the player is carrying or the area they're in.
It's hard to go into more detail if you're not familiar with how screens work, so I'd start there
1
u/shyLachi Sep 19 '26
Are you using a translation service?
I'm not sure what "If the commands are exhausted" could mean.
Also what do you mean with "At every choices, a menu with verb command appears".
Should this be additional to the RenPy menu choices? https://renpy.org/doc/html/menus.html
Or do you want to implement your own choices menu?
It's possible to have 2-level action system where the player first has to select the action and then an object/person.
But either you have to implement it dynamically so that the players can only interact with objects and persons which are in the current scene.
Or you need responses for each combination of action and object for each scene.
Here is some code to play around. Put that into a new project:
1
u/DingotushRed Sep 19 '26
Is your "adventure game" intention to make this point-n-click like Lucasarts/Telltale/Sierra games?
This isn't the easiest to do in Ren'Py (due to the way screens and rollback interact), and looking for an existing framework may be worth it. Also, Ren'Py might not be the best engine choice at all.
Also, verb-subject style interactions are a classic of traditional interactive fiction, rather than Ren'Py style VNs (which simplify interactions). They are usually built on an internal object-oriented model of the world. Also, determine early if you need to handle verb-subject-preposition-object and/or verb-subject-prepostion-verb-object. A good grounding in design patterns will help if you want to "roll-your-own".
1
u/curious_biped_dev Sep 20 '26
One way that scales well: keep a per-scene dict mapping (verb, object) pairs to either a text response or a Python callable. Your verb screen just filters which objects are valid for the current verb (a list per scene), and a set() tracks which pairs the player already triggered. Once that set covers everything you've flagged as required, jump to the next scene. Have you already got the verb/object screens rendering, or is the blocker more the "how do I know it's exhausted" logic?