your code isEvent OnEffectStart(Actor akCaster, Actor akTarget)
should be (look at vanilla script "ActiveMagicEffect.psc")Event OnEffectStart(Actor akTarget, Actor akCaster)
No idea what are your spell conditions and the condition for your globalVar is also mysterious for me. Maybe next sample brings light to you.
Just switched around akTarget and akCaster like you said and now it works perfectly. I hadn't noticed that I had switched them the wrong way around. >.<
Sorry for bothering everyone with this, but this mistake had slipped passed me completely.
Anyway, thank you all for your help! And thank you RedDragon2013 for providing me with the solution!