About this mod
A scripted workaround for an engine bug causing attacks against wild animals and other non-hostile actors to count as assault in the statistics menu.
- Permissions and credits
- Changelogs
- Donations
A scripted workaround for an engine bug that causes attacks against wild animals and some other non-hostile actors to count as assault in the statistics menu.
- - - Details - - -
I added a quest and a Story Manager Quest Node that allows the quest to fire from the ActorAssault Story Manager Event. The quest script only does one thing: checking if the assaulted actor has a crime faction assigned to them, and subtracting 1 from the Assaults stat if they didn't, i.e. if no faction would place a bounty on the player for attacking the actor. The plugin is ESP-FE and can be placed anywhere in the load order.
I decided not to check for the ActorTypeNPC keyword as well because that wouldn't be compatible with non-NPC actors that are intended to be part of a crime faction.
The script does not repeat, only runs once per assault Story Manager Event and stops the quest when it ends, so it shouldn't be possible for it to cause any save bloat.
The root cause of the issue is an engine bug/feature: attacking nearly any actor whose Aggression value is currently 0 will count as assault. Using Diziet's Murder Notification that has no checks for crime factions in its scripts (yet?), I've observed this with wild animals, sleeping Draugr, and very inconsistently with human enemies like bandits.
Another method I tried was to add conditions for the vanilla crime factions to the Story Manager Event. This works, technically, and would be compatible out of the box with assault notification mods, but doesn't solve the stats issue because then my quest wouldn't run at all.
The quest script can be found here (pastebin.com).
Shoutout to this thread by wSkeever and the bits of code by AndrealphusVIII, and this other thread.
- - - Compatibility - - -
Should be compatible with everything and every game version. NPCs from mod-added towns and the like may cause false-negatives if they don't properly have a crime faction assigned, assuming the town was intended to be part of the crime tracking and bounty system in the first place.
Mods that notify the player when they've assaulted someone may require a consistency patch. I have no plans to provide patches; permissions are open.
- - - LE Version? - - -
Permissions are open for Skyrim LE backports, please just credit me and link back to this page.