foamyesque Posted September 27, 2019 Share Posted September 27, 2019 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. Link to comment Share on other sites More sharing options...
NexusComa Posted September 29, 2019 Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts