NPC Clothing Replacer

From Skyrim Nexus Latest Files


Introduction

If you are like me then I’m sure you have collected many of the great outfits and armor mods that have been made over the years. While having a wide selection of things to wear from is great, I always found it a shame that no one other than my character and companions used them.

Yes you can use utilities such as Simple NPC Outfit Manager to update the outfits of friendly NPCs, but that was not enough for me. What I wanted to do be able to update the outfits of anyone I came across in the game without having to interact with them and (it goes without saying) without having to use the Creation Kit.

So what I did was create a system which allows you to setup up to 100 outfits and then assign them to be used by various classes of NPC. So you can setup a number of outfits that are used by NPCs who wear Farmer outfits, a number for NPCs who wear Miners outfits and so on. 

The outfits are set up using Add Item Menu , which Towawot graciously allowed me to call seamlessly from my mod. This allows you to find any clothing item in any mod you have installed.

After outfits have been setup for a class of NPC, any NPC of that class encountered during the game will have their outfit replaced with one of the ones setup.

And if you decide to change the outfits later on, you can get the NPCs to pick up the changes, or even put them back to their standard outfit.

Note the following types of NPC will be unaffected by this mod:



    [*]Males – the mod only targets females and ignores all males

    [*]Old people – more specifically anyone using the two old person voices

    [*]Argonians and Khajiit – although this can be toggled in the MCM menu.

    [/list]

    [/size]How To Use

    Once installed you will get a new power Add Items to Outfit. Equipping and using this power displays a menu listing all 100 outfits, what they contain and allows you to then add items to them. 

    If you have used Add Item Menu previously then adding items to the outfits will be familiar. If not then a quick walk follows:



      [*]You are first shown a text entry box and can enter a search term, for example leather.

      [*]If you have any mods which have the search term in their esp name then you will be shown a list of those mods and can then select one of them to see all the items in that mod or use the [Search Item] option to search in all mods for items that have the search term in their name.

      [*]A Container will then be opened containing all the matching items and you can select the items you wish. These items will be added to the outfit.

      [/list]

      Note when selecting items from the container:



        [*]The player never receives any of the items selected, they only get added to the outfit

        [*]If you switch from the container to the player and select one of the items in your inventory then that item will move to the container (as per normal container operation), but you won’t be able to then get this item back into your inventory and it is lost to you for ever, so don’t do this!

        [*]If the item doesn’t have one of the standard a clothing or armor keywords associated with it then it will not be added to the outfit. This is to stop non-clothing items (weapons, potions etc.) being included in the outfits. Unfortunately clothing/armor mods don’t always set the keywords and in these cases you won’t be able to add those items to your outfits (unless of course you modify the clothing/armor mod in the CK or using TES5Edit)



      Once an outfit has some items, the Add Items to Outfit shout menu will show:



        [*]The number of items in in the outfit

        [*]The class the outfit has been assigned to

        [*]The name of the primary item in the outfit (generally this will be any item that has a type of Body) 

        [*]Possibly one or more of the following symbols ^{_. These indicate if the outfit is missing something to wear on the head(^), something for the arms({) or something for the feet(_).



      When selecting a populated outfit from the Add Items to Outfit shout menu you will get the following options:[/size]


        [*]List the items in the outfit

        [*]Add more items to the outfit

        [*]Remove an item from the outfit

        [*]Assign the outfit to a class of NPC



      If you add multiple items that use the same body slot the normal Skyrim rules will apply and the NPCs will equip the best item.



      The NPC classes that can be assigned to the outfit correspond to the main types of NPC outfits in Skyrim, so for example Farmers covers anyone who is wearing one of the 16 outfits in the creation kit whose name starts with FarmClothes. 

      The Add Items to Outfit shout menu is the best way of adding items to outfits. You can also do this using the MCM menu but this is not recommended. The reason is that the various pop-up menus appear behind the MCM screens and you have to close all the MCM menus and go back to the game before you can interact with them. It all works, it’s just more cumbersome to use. There are some less used options that you can only do using the MCM menu. 

      Advanced Features

      Updating Outfits

      If you are like me, its only after you see an outfit being worn that you notice the couple of items you forgot to add or decide you want to give the NPCs a different look completely.

      In these cases you can, after updating the outfit, go to the mods MCM menu and on the Configure page select Rescan NPCs. This will force the mod to reprocess NPCs again the next time they are encountered (normally NPCs are only processed once) and update their outfit.

      Save and Load

      On the Configuration page in the MCM menu, you can save the outfits you’ve setup and then load them into another game.

      If both games have access to exactly the same mods installed then all the outfits will be moved across exactly as they were in the original game.

      But if the new game is missing some mods (or if there is a different version of the mod with different formids) then any items that can’t be found are removed from the outfits using them. This is a silent process, i.e. it doesn’t tell you that about the items that are removed, although it does log this in the papyrus debug log.

      Target Percentages

      The Target pages in the MCM menu allow you to change the % of NPCs in a class who are targeted, i.e. you can set the slider to be 50% for Farmers then 50% of farmers will use the vanilla outfits and 50% will use the outfits you’ve setup.

      Enable Argonians and Khajiit

      In the MCM menu, on the Configuration page you can toggle Apply Outfits to Beast Races if you want the mod to include Argonians and Khajiit when deciding who gets new outfits.

      Disable Mod

      The Configuration page in the MCM menu provides a facility to disable the mod. If disabled all the active scripts will be stopped and NPCs will no longer be updated. The mod can be restarted at a later date.

      Reverting to Vanilla Outfits

      If you ever want to revert to the vanilla outfits for a class of NPCs then the following process can be followed:



        [*]On the Target pages in the MCM menu, find the class and set the % to update to 0.

        [*]On Configuration page, select Recan NPCs

        [*]Go and encounter the NPCs once more in Skyrim

      Updating Class Names and Who is Targeted for Each Class

      The mod uses a JSON file to store the class names and the vanilla outfits associated with each class. This file named, classOutfits.json, exists in the sksepluginsnpcclothingreplacer directory. If you know what you are doing you can edit this file and do the following:



        [*]Change the class names as they appear in the mod. Note if you change the name of a class you need to change the name of the class outfits list as well to match.

        [*]Change the vanilla outfits that are associated with each class. The outfits are just held as a list of formids against the various class names. Note for outfits not in the standard esm files you have to tell it the formid and the mod file as has been done for Dawnguard and Dragonborn outfits. Note if the formid starts with 0x then it is assumed to be hex, otherwise it is treated as a decimal number.



      If you do update this file you will need to start a new game for the updates to be picked up as it is only read when the mod is first loaded. Note if the mod can’t process load this file for any reason it will regenerate it from scratch.

      Incompatibilities/Known Issues

      This mod doesn’t change any vanilla assets and should be compatible with pretty much anything.

      There are no known issues at this time

      Thanks and Acknowledgements

      I’d like to thank the following, without whom this mod probably wouldn’t exist:

      And finally all the other great mod authors who have enhanced Skyrim so much over last few years.



      Original URL: https://www.nexusmods.com/skyrim/mods/96419

      Leave a Reply