Lists to create an inventory with specified slots for different type of equipment.

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
Doeny
Regular
Posts: 26
Joined: Wed Sep 07, 2022 8:28 pm
Contact:

Lists to create an inventory with specified slots for different type of equipment.

#1 Post by Doeny » Wed Sep 07, 2022 8:42 pm

I've spent days on searching for a solution or tutorial, but the only one that'd fit by Elaine turned out to lead to some absurd bugs, like Renpy not reading some attributes. Do you have any idea or maybe already tested script that i could use?

User avatar
Kia
Eileen-Class Veteran
Posts: 1008
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

Re: Lists to create an inventory with specified slots for different type of equipment.

#2 Post by Kia » Thu Sep 08, 2022 5:35 am

If you're going for a character equipment page, using a dictionary is your best bet.

Code: Select all

gear = {
	"Head": None,
	"Chest": None,
}
$ gear["Head"] = helmet

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot]