So, I'm working on a small (hopefully) death handling Mod... I've found the perfect way to catch the PC's death every single time-- Multiplication!
Basically, I multiply the PC's Health by 9,999 and then scan for any change in their Health; I then multiply that damage by 9,999 and check whether applying it would kill the PC or not-- if it doesn't, then the damage is applied and things go as normal; if it does, my Death Handling kicks in.
In early tests, its working perfectly; obviously Kill Moves no longer apply to the Player, but that's a small price to pay for what I want to do (and here's where it gets bigger... I could probably script them in if I really wanted...)
The problem is, changing the Player's max health; I haven't a clue how to detect that... What happens if the Player equips a Helmet with Fortify Health, or cast a Spell, or drinks a potion?? :/ I've no way to know, and right now the most likely result would be that the Player suddenly takes a tonne of damage once the effect wears off...
So, I'm kind of at an impasse... In a game without Fortify Health, I'd be all set; but with it... :/
Anyone have any ideas what I can do? Or maybe just give me something to start me in the right direction?