While I keep adding more and more feats to my mod, I've encountered with a little dilemma (or whatever you want to call it)
I want to introduce a new perk, which makes Undead corpses absorb health with every attack. I've had no problem with this, but now I also want them to transfer a small portion of that HP to the caster, which means minions will heal the caster with every attack. I was wondering if there is any existing mechanic I could use (with proper modifications) in order to achieve this.
Any ideas are welcomed.
EDIT: I found this on the internet
Scriptname RodentToPlayerTransferHealth extends activemagiceffect {Transfers a portion of health absorbed by your pet to the owner }Actor Property PlayerRef AutoActor Property caster Auto HiddenMagicEffect Property MFx_RodentAbsorbHealth_NECMAS AutoSpell Property SP_PlayerToRodentAbsorbHealth_NECMAS AutoEvent OnEffectStart (Actor akCaster, Actor akTarget) caster = GetCasterActor() SP_PlayerToRodentAbsorbHealth_NECMAS.cast (PlayerRef, caster) debug.notification ("Absorb to player cast")EndEventEvent OnEffectFinish (Actor akCaster, Actor akTarget) caster.DispelSpell(SP_PlayerToRodentAbsorbHealth_NECMAS)EndEvent