I have a script on an NPC that should detect when strength, etc is drained, using:
If ( Geteffect sEffectDamageAttribute == 1 )
...do stuff, i.e. cast a restore attribute spell.
Except that even though I just spawned a million bonewalkers to fight, and his strength is definitely drained, the GetEffect check is still returning 0. On the player, too, which is doubly weird. What am I missing?
Any ideas? The scripting guides don't indicate this function is bugged. Although they do seem to think GetEffect sEffectSoulTrap always returns 0, when that one is working perfectly for me!!