cherrygalaxy Posted October 18, 2012 Posted October 18, 2012 I am working on a mod to allow NPCs to automatically change their clothes. Click here for more detail. I have a sticking point at the moment, and I wanted to get input from the community. Issue I have modded my own game to have many different body types operating on different NPC bodies (using a heavily edited version of The Spice of Life mod) This causes a problem for my own NPC clothes changing mod: Which clothes go with which NPCs? Detail When the NPCs change their clothes, they are basically randomly choosing outfits out of containers that have the clothes-changing mod applied to them. If you have the vanilla body, or only 1 body mod with matching clothes (e.g. UNP body with UNP clothes), then this is not an issue. The modder or player can just fill up the containers with the correct fitting clothes. I currently don't know of a way to programmatically identify what body an NPC is using or what body type clothing or armor is made for. So, for me, and others who use multiple body mods, NPCs would often be wearing clothes that do not fit them. Proposed Solution The only solution I can think of to this issue is to appeal to armor and NPC creators to label their creations with body type keywords, based on a particular standard. e.g. KeywordedBodyTypeCBBE, KeywordedBodyTypeUNP, KeywordedBodyTypeCHSBHC, etc... I think I would need to add a terminating character to the end too to prevent conflict issues if loading multiple mods with the same keywords in them. I also am coding arrays to allow a body or armor to be compatible with multiple types. Concern It's very easy to add keywords, but my mod is the only use that I can think of for performing this standardization, so I am not sure how much interest there would be. However, my plan is to release my code for free usage by anyone, as I would love to see automatic NPC clothes changing working it's way into other people's mods. So, please provide feedback on the standardization proposal, alternate solutions, or, best of all, if there is any existing way to programmatically identify what body an NPC is using or what body clothes are made for.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.