0 of 0

File information

Last updated

Original upload

Created by

murrayj

Uploaded by

murrayj

Virus scan

Safe to use

Tags for this mod

About this mod

Weapons and Armour in boss chests can now be found already tempered!

Permissions and credits
Changelogs
Description:
The tempering system introduced in Skyrim is a welcome addition to the series, but unfortunately was let down by limiting it to the player. Fantastic mods such as Loot and Degradation expand the system to give tempered gear to NPCs but this is limited to equipped items. Technical explanation provided below.

What I've attempted to do with this mod is to give the player the opportunity to find tempered loot in boss chests. The chance of Temper and the quality of temper is calculated off of player level.
It is basic and limited to boss chests only but hopefully this may prove to be motivation for someone more talented than me to make something even better.

Technical:
Spoiler:  
Show

There is very limited manipulation available in papyrus to objects in a container, even fewer if the item does not have a RefID. Mods that temper gear on NPCs use an SKSE addition WornObject Script which is only for items currently equipped on an NPC. There is SetItemHealthPercent but this requires the object to have a RefID and not be in a container. The solution in this mod is add an alias script to the player that checks for both location changes and cell loads. In both instances, a scan is conducted looking first for a chest with the BossContainer location reference, and if none found check for a Boss Chest off of a formlist. If a chest is found, it is added to an alias and a RemoveAllItems is called on the chest with the transfer location set to itself. The alias script then filters through all of the items looking for VendorTypeArmor and VendorTypeWeapon. When that keyword is detected, the chest will eject the item to force the game to generate a RefID, the code for tempering will run on the item and then it is put back in the chest. A hidden dummy object is added to the chest as a method of preventing the code from running on the chest when it shouldn't. I have done some stress testing and was not able to break the script but a slower system may have troubles. This is also why I've limited it to a single chest rather than running this on every chest in the area.


Compatibility:
- Items that have been marked as quest items are specifically excluded to avoid problems. However if there is a quest item that is not marked as a quest item and has a lazy OnContainerChanged event, then it may cause premature quest advances etc. I was not able to find any examples.

Features:
- ESP file flagged as ESL
- Plug and Play. Requires no additional setting up or mods

Known Issues:
- QuickLoot EE v3.4.1 isn't updating the name of the item with the temper suffix. Opening the vanilla container menu displays everything correctly. QuickLoot EE v4 may fix this, but I have not had time to assemble the dev build to check.