Hi all,
I am writing a new enchantment and part of it involves writing my own Magic Effect.
I seem to have got everything running right but I don't know how to use the Magnitude value of the Magic Effect.
This is what I have so far.
Scriptname DamageMagickaRegenMult extends activemagiceffect {Applies a magical effect that reduces the rate at which a player regenerates magicka.};Int Property piPercentPerSecond =Auto ;{The % per second at which to reduce magicka generation.}Bool continue = TRUEEvent OnEffectStart(Actor akTarget, Actor akCaster) RegisterForSingleUpdate(0.1)EndEventEvent OnEffectFinish(Actor akTarget, Actor akCaster) continue = FALSEEndEventEvent OnUpdate() Game.GetPlayer().DamageAV("Magicka", Game.GetPlayer().getav("MagickaRate") * 0.015) ; 1.5% 10 times a second. Instead of 1.5 it should be Magnitude/10 If continue RegisterForSingleUpdate(0.1) EndIfEndEvent
Thanks in advance