Scripts on Magic Effects...

Post » Sun Nov 18, 2012 1:03 pm

On the wiki page for HasMagicEffect I read: "This function will still return true if the effect is applied to the actor but the condition specified in the spell or magic effect is not met."

My question stems somewhat from that behavior, related to spell scripts.

If I have a script on a magic effect, and that magic effect has conditions, will the script also be applied even if the conditions are not met?

The Magic Effects and ActiveMagicEffects Script pages on the wiki were less than conclusive regarding this behavior.
User avatar
adame
 
Posts: 3454
Joined: Wed Aug 29, 2007 2:57 am

Post » Sun Nov 18, 2012 12:48 pm

I believe so, but I do not know for certain (never tested).

Stick a debug.messagebox("Firing") in the first few lines of your script and give it a test ... If you see the messagebox then yes it is ... if you don't then no it isn't ;)
User avatar
Lauren Dale
 
Posts: 3491
Joined: Tue Jul 04, 2006 8:57 am


Return to V - Skyrim