___________________________________________________________________________________________________________________________
With this mod, you can create Content Patcher content packs that specify certain items as wearable by certain NPCs.
Wearables are not limited to items that are normally giftable - you can specify any item as wearable and give it to an assigned NPC.
Wearables can be assigned arbitrary slot names (e.g. "hat") and they will randomly choose a single item with that slot name to wear on a given day.
Wearables can be assigned a percent chance to be worn on any given day.
To remove a wearable item from an NPC's clothing list, try to gift them the same item again (it won't be given and the item will be removed from the NPC's clothing list).
Wearables are worn by editing character and portrait sprite sheets directly when loaded, so if you use custom character sheets you may have to adjust the clothing sprite sheets accordingly.
Content Packs
Here is an example content.json file:
{ <br /> "Format": "1.23.0", <br /> "Changes": [ <br /> { <br /> "Action": "EditData", <br /> "Target": "aedenthorn.NPCClothing/dictionary", <br /> "Entries": { <br /> "hat_0": { <br /> "id": "hat_0", <br /> "giftName": "Cowboy Hat", <br /> "giftReaction": "like", <br /> "clothingSlot": "hat", <br /> "spriteTexturePath": "aedenthorn.NCFHatsCP/hat_0_sprite", <br /> "portraitTexturePath": null, <br /> "spriteOffsets": [ <br /> { <br /> "offset": { <br /> "X": 0, <br /> "Y": -3 <br /> }, <br /> "names": [ <br /> "Demetrius" <br /> ], <br /> "ages": null, <br /> "genders": null <br /> } <br /> ], <br /> "portraitOffsets": null, <br /> "namesAllow": [ <br /> "Demetrius", <br /> "Abigail", <br /> "George", <br /> "Evelyn" <br /> ], <br /> "namesForbid": null, <br /> "agesAllow": null, <br /> "gendersAllow": null, <br /> "skinColors": null, <br /> "percentChance": 100, <br /> "zIndex": 0, <br /> } <br /> } <br /> }, <br /> { <br /> "Action": "Load", <br /> "Target": "aedenthorn.NCFHatsCP/hat_0_sprite", <br /> "FromFile": "assets/hat_0_sprite.png" <br /> } <br /> ] <br />}
The dictionary path for Target is aedenthorn.NPCClothing/dictionary. Entry explanations:
Textures
Textures will be scanned for non-transparent pixels, which will be overlaid on top of the existing pixel, except when the new pixel's opacity is less than 10%. Use such almost-transparent pixels to tell the mod to replace the existing sprite pixel with a transparent pixel (useful for covering hair, for example).
Mods that use this framework:
About Project
Created: September 7th 2023
Updated: September 7th 2023
Project ID: 16815
License: All Rights Reserved
__________________________________________
Game Versions:
1.01.03
1.01.03
1.01.03
1.01.03
1.01.03
__________________________________________
Flavors:
WoW Retail
__________________________________________
Categories
Companions
Battle
__________________________________________
Main File
September 7th 2023
__________________________________________
Recent File
September 7th 2023
__________________________________________
Members
__________________________________________
Report