Inventory Window

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
User avatar
wellsgrant
Newbie
Posts: 23
Joined: Mon Feb 11, 2019 10:05 pm
Projects: Fortaigo University
IRC Nick: sidewalkchalk
Deviantart: wellsgrant
Soundcloud: sidewalkchalka
Location: Who even knows at this point...
Contact:

Inventory Window

#1 Post by wellsgrant » Wed Mar 13, 2019 9:37 pm

I was wondering if there is a way to set up an inventory system in RenPy that can be opened with they keyboard key "i". Any help would be very appreciated!
I'm running out of variable names...

User avatar
wyverngem
Miko-Class Veteran
Posts: 594
Joined: Mon Oct 03, 2011 7:27 pm
Completed: Simple as Snow, Lady Luck's Due,
Projects: Aether Skies, Of the Waterfall
Tumblr: casting-dreams
itch: castingdreams
Location: USA
Contact:

Re: Inventory Window

#2 Post by wyverngem » Wed Mar 13, 2019 10:59 pm

You can create your own screen, and on the quick menu screen create a key that opens in. You just add "key "K_i" action ShowMenu("inventory") and it will allow the player to access the menu from whenever the quick menu is shown. Which is pretty much the entire time. Look in the Cookbook section, there are a couple good example scripts that still work as a foundation for these kinds of systems.

Post Reply

Who is online

Users browsing this forum: No registered users