Need help with inventory system

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
GoldChicken
Newbie
Posts: 2
Joined: Sun Apr 05, 2020 11:42 am
Contact:

Need help with inventory system

#1 Post by GoldChicken »

In learning how to use Ren'Py most of my questions have been aswered through searching the forum. Thanks you guys for that! Unfortunately, I can't seem to figure this one out. To explain: I'm currently working on a sandbox game wherein the player has the option to buy clothes from a store and equip them. The clothing items/instances have a price, description, image, and variable modification attached to them. The player will have a wardrobe with slots like this:
Image

The wearables can be bought from a store like this:
Image

My understanding of python and ren'py, which does not extend far beyond simple conditional statements, does allow me to implement this, yet it would be extremely messy and overcomplicated.
Could someone give me a basic example or explain me how to implement this in my game through classes and lists? Thanks in advance!

User avatar
Per K Grok
Miko-Class Veteran
Posts: 882
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
itch: per-k-grok
Location: Sverige
Contact:

Re: Need help with inventory system

#2 Post by Per K Grok »

GoldChicken wrote: Sun Apr 05, 2020 12:30 pm In learning how to use Ren'Py most of my questions have been aswered through searching the forum. Thanks you guys for that! Unfortunately, I can't seem to figure this one out. To explain: I'm currently working on a sandbox game wherein the player has the option to buy clothes from a store and equip them. The clothing items/instances have a price, description, image, and variable modification attached to them. The player will have a wardrobe with slots like this:

My understanding of python and ren'py, which does not extend far beyond simple conditional statements, does allow me to implement this, yet it would be extremely messy and overcomplicated.
Could someone give me a basic example or explain me how to implement this in my game through classes and lists? Thanks in advance!
Have you looked in the Cook Book? There are some examples of inventory pages there that might give you some hints.

Post Reply

Who is online

Users browsing this forum: No registered users