GetEffect - detecting spell effects

Post » Wed Mar 13, 2013 6:14 am

'Allo.

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!!
User avatar
dean Cutler
 
Posts: 3411
Joined: Wed Jul 18, 2007 7:29 am

Return to III - Morrowind