foamyesque Posted September 27, 2019 Posted September 27, 2019 On 9/27/2019 at 7:09 PM, ReDragon2013 said: you wrote: "script on my target npc. the formlist has 8 spells and 1 dragon shout."but the OnMagicEffectApply() event has return value of "MagicEffect akEffect", which is whether a spell nor a shout, that means HasForm() is returning always False. That's incorrect on three counts: OnMagicEffectApply() doesn't have a return value -- the MagicEffect is specified in an argument; MagicEffects are not spells or shouts, but components of them; and they work perfectly fine in HasForm(), since MagicEffect extends Form.
NexusComa Posted September 29, 2019 Posted September 29, 2019 Your code looks fine to me ... you could go with the if elseif elseif elseif elseif endif if you like too.
Recommended Posts