- Nov 30, 2019
- 387
- 609
Clothing isn't quite as easy because girls can have multiples of the same clothing item.Wow...Thanks for such a prompt and thorough reply!
I am definitely just winging my way through trying to write ren'py code (supernoob)
I'll give that a try. When I tried "add_trait" before i got "add_trait" not defined error.
Would it be the same for wardrobe items?..
i.e.
selected_girl.add/remove_item("hoodie")
?
The method names are "add_clothing_to_wardrobe" and "remove_clothing_from_wardrobe" but they need the actual item not just the name.
I think trying to explain it might be more confusing than helpful.
Removing clothing from wardrobe:
Python:
# You can use "outer", "upper", "bra", "lower", "panties", "socks"
c = selected_girl.get_clothing_on_part("panties")
selected_girl.remove_clothing_from_wardrobe(c)
# Or you can skip the variable
# You can use "outer", "upper", "bra", "lower", "panties", "socks"
selected_girl.remove_clothing_from_wardrobe(selected_girl.get_clothing_on_part("panties"))
Python:
# You can use "outer", "upper", "bra", "lower", "panties", "socks"
select_girl.clothing_manager.wardrobe["panties"] # Would show a list of clothing items of that type in her wardrobe
# You can select a specific one using its index i.e 1
# Remember indexes start at 0
c = select_girl.clothing_manager.wardrobe["panties"][1]
# Then you can remove it from her wardrobe
selected_girl.remove_clothing_from_wardrobe(c)
# Or you can skip the variable
selected_girl.remove_clothing_from_wardrobe(select_girl.clothing_manager.wardrobe["panties"][1])
Adding clothing items:
Python:
# You can use "outer", "upper", "bra", "lower", "panties", "socks"
database_clothing_items["panties"] # Would show a list of clothing items of that type
# You can select a specific one using its index i.e 1
# Remember indexes start at 0
c = database_clothing_items["panties"][1]
# Then you can add it to her wardrobe
selected_girl.add_clothing_from_wardrobe(c)
# Or you can skip the variable
selected_girl.add_clothing_from_wardrobe(database_clothing_items["panties"][1])