Matching Set Perk Fix
Author: CheskoContact: Forums - Chesko
E-mail - chesko.tesmod@gmail.com
Download
http://skyrim.nexusmods.com/mods/21129
http://steamcommunity.com/sharedfiles/filedetails/?id=85312121
Description
This simple plugin improves the conditions in which you receive certain bonuses related to matching sets of gear.Due to some rather flimsy condition logic, many matching set-style bonuses and perks can fail to be applied correctly when using certain mods. Chances are, if you're using "Cloaks of Skyrim" by Nikinoodles, or "Winter is Coming - Cloaks" by Nivea (both truly excellent mods), or other mods that add wearable equipment outside of the standard 4 "head hands feet body", you are probably experiencing this problem and may not even realize it. Other armor and worn equipment mods are possible avenues of experiencing this issue as well. Bethesda did not account for the possibility that the player might wear more than 4 pieces of gear with the same material keyword when they designed these perks and bonuses.
The Problem
The issue stems from how Bethesda designed their condition functions related to Matching Set, Custom Fit, Well Fitted, and so on, perks and bonuses. They read like the following:
- WornApparelHasKeywordCount ArmorMaterialHide == 4 OR
- WornApparelHasKeywordCount ArmorMaterialLeather == 4 OR
- WornApparelHasKeywordCount ArmorMaterialElven == 4 OR
- WornApparelHasKeywordCount ArmorMaterialGlass == 4 OR...
- etc
A major reason an author might want to use these keywords is to ensure that they are sorted properly in the Tanning Rack / Smithing crafting menus. Or, an author simply might want to facilitate enchanting their gear. I think these are very good reasons, and the mod author should not be penalized for doing this.
Either way, this mod rectifies this problem to ensure you always get the correct bonus even if the original armor / equipment author utilizes these keywords.
The Solution
I simply changed the logic to read like the following:
- WornApparelHasKeywordCount ArmorMaterialHide >= 4 OR
- WornApparelHasKeywordCount ArmorMaterialLeather >= 4 OR
- WornApparelHasKeywordCount ArmorMaterialElven >= 4 OR
- WornApparelHasKeywordCount ArmorMaterialGlass >= 4 OR...
- etc
Perks and Bonuses Affected By This Mod
- Matching Set Perk (Light Armor)
- Matching Set Perk (Heavy Armor)
- Custom Fit Perk (Light Armor)
- Well Fitted Perk (Heavy Armor)
- Nightingale Armor Full Set
- Shrouded Armor Full Set
Forms Affected By This Mod
- PERK: CustomFit
- PERK: WellFitted
- PERK: MatchingSet
- PERK: MatchingSetHeavy
- SPELL: PerkMatchingSet
- SPELL: PerkMatchingSetHeavy
- SPELL: PerkCustomFit
- SPELL: PerkWellFitted
- SPELL: TGFullSet
- SPELL: DBFullSet
Compatibility
Directly incompatible with perk overhauls, balance mods, etc, that alter the specific forms mentioned above. If you want to ensure this mod's changes always take effect, load it lower in your load order than these mods.
Known Issues
You will receive the Matching Set bonuses when you have at least 4 pieces of gear with the same material keyword. This means you could, for instance, wear Hide Boots, Hide Gloves, Hide Helmet, and a Hide cloak from Winter is Coming and still receive the bonus without body armor. This is against the intention of this perk, but still better than not receiving the bonus at all. The logic may be further improved in the future to account for this.
Troubleshooting
"I installed the mod but it didn't seem to work. I am using other Perk-affecting mods."
Ensure that this mod loads lower than your perk, balance, or overhaul mods.
Thanks
Thanks to Amethyst Deceiver for the list of perks and spells that needed to be fixed, as well as for bringing this issue to my attention.
Let me know if you have any issues. Enjoy!