Working on an alternative absorb effect, instead of using the spell to drain health points, i'd rather use the spell to drain by a percentage (30%) of the target's Max health. Here is what I have...
ScriptName TIS_Ench_S_AbsorbHP_3p Extends ActiveMagicEffect
{...Of The Leech}
Event OnEffectStart(Actor akTarget, Actor akCaster)
Float TargetMaxHealth = akTarget.GetAVPercentage("Health")
debug.trace("We got the target's max health!")
akTarget.DamageActorValue("Health", TargetMaxHealth * 0.3)
debug.trace("We damaged the target's health!")
akCaster.RestoreActorValue("Health", TargetMaxHealth * 0.3)
debug.trace("We healed the player the drained damage")
EndEvent
I tried to look at the logs, and it seems that the script never fires, but the effects of the magic effect that the script is attached to work. Any ideas?