- Sep 7, 2022
- 6,766
- 10,126
Is anyone smarter than me in python and renpy able to explain quickly how the dev does the outfitpicker class and image keywords?
If you look at the game's images, it uses a similar system to things like ORS where a character will have piecemeal outfits and piercings, assembled through use of kywds/tags like "show bree hottub sex swimsuit". I get that most of the image files contain the keywords themselves, like "bree_bot_a_casual" for her lower bot outfit, and the init classes strip the underscores..
What I don't get is how those names are correlated to the in-game flags for a collection of items - meaning say if bree has the sexyswimsuit flag, "show [some background] bree swimsuit" automatically displays the correct image between [bree_top_a_sexyswimsuit.webp] and [bree_top_a_swimsuit.webp]?
For someone inexperienced in python, it's difficult to follow the code because almost nothing is defined literally or static, it's all variable strings and dynamic definitions. I'm interested in this to know how to format the file names so I can have fun modding outfits and further customizing the characters.
Attached is but one of the class definitions if anyone's curious.
If you look at the game's images, it uses a similar system to things like ORS where a character will have piecemeal outfits and piercings, assembled through use of kywds/tags like "show bree hottub sex swimsuit". I get that most of the image files contain the keywords themselves, like "bree_bot_a_casual" for her lower bot outfit, and the init classes strip the underscores..
What I don't get is how those names are correlated to the in-game flags for a collection of items - meaning say if bree has the sexyswimsuit flag, "show [some background] bree swimsuit" automatically displays the correct image between [bree_top_a_sexyswimsuit.webp] and [bree_top_a_swimsuit.webp]?
For someone inexperienced in python, it's difficult to follow the code because almost nothing is defined literally or static, it's all variable strings and dynamic definitions. I'm interested in this to know how to format the file names so I can have fun modding outfits and further customizing the characters.
Attached is but one of the class definitions if anyone's curious.
You don't have permission to view the spoiler content.
Log in or register now.
Last edited: