"[i]Faction Property faMinionState Auto {This is the faction that corresponds to the condition of being a minion of the player.}string sOutputEvent OnEffectStart(Actor akTarget, Actor akCaster)if Game.Getplayer() == akCaster akTarget.AddToFaction(faMinionState) Debug.Notification("L'incantesimo è stato lanciato dal giocatore!") sOutput = Game.Getplayer() as String Debug.Notification("Il mago è " + sOutput ) sOutput = akTarget as String Debug.Notification("Il bersaglio è " + sOutput ) sOutput = faMinionState as String Debug.Notification("La fazione è " )Else Debug.Notification("L'incantesimo è stato lanciato da qualcun'altro!") sOutput = akCaster as String Debug.Notification("Il mago è " + sOutput ) sOutput = akTarget as String Debug.Notification("Il bersaglio è " + sOutput ) Debug.Notification("La fazione non è stata cambiata" )endifakTarget.SetActorValue("aggression", 1)akTarget.SetActorValue("confidence", 0)akTarget.SetActorValue("morality", 0)akTarget.SetActorValue("assistance", 1)EndEventEvent OnEffectFinish(Actor akTarget, Actor akCaster)if Game.Getplayer() == akCaster akTarget.RemoveFromFaction(faMinionState)endif Debug.Notification("Cazzo! La magia è già finita!" )akTarget.SetActorValue("aggression", 0)akTarget.SetActorValue("confidence", 4)akTarget.SetActorValue("morality", 3)akTarget.SetActorValue("assistance", 0)endEvent[/i]"Please...do not consider the notifications in Italian (are done just for debug)...but the problem is this:
I have attached the above said script to this magic effect below:
http://imageshack.us/photo/my-images/442/undeadminion.jpg/
...and the effect was attached to the Raise Zombie spell.
http://imageshack.us/photo/my-images/638/raisezombie.jpg/
...and from the debugging notifications is clear that the effect is finishing just a couple of moments after the casting!
I am not able to understand why this happens!

Why the script does that?
(Does anyone have an hint about this?

Please, guys...please...please...help me!

Thanks,
Jashkar



