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.
I'm using the code from this tutorial (viewtopic.php?t=23071) to incorporate an inventory into my game. The system works well, though there's one issue I'm having at the moment. The following is the code for the Show Inventory button that displays the inventory interface:
While this displays the inventory just fine, it also leaves the main dialogue box visible. I'd rather have it so that once the Show Inventory button is clicked, the dialogue will disappear until the user closes the inventory again. I've tried adding several variations of 'Hide(window)' to the action part of the Show Inventory button to fix this, but nothing I do seems to work. Is there a specific command I need to include that I don't know about?
Note though, that your 'Close Inventory Afterwards' button will want to use "action [ Usual Actions, Return() ] " in order to automatically bring back the dialogue once done.