ScriptName SuH_NPCssubmitScript extends ActiveMagicEffect

actor c

Event OnEffectStart(Actor akTarget, Actor akCaster)
	c = akTarget
	RegisterForSingleUpdate(5.0)
EndEvent

Event OnUpdate()
	;ent/ Variables
	float cH = c.GetBaseActorValue("health")
	float cS = c.GetBaseActorValue("stamina")
	float cM = c.GetBaseActorValue("magicka")
	int cL = c.GetLevel()
	int cA = Math.Floor(1+(cL*0.2))
	;end/
	cH += Math.Floor(cA*0.2)
	cM += Math.Floor(cA*0.2)
	cS += Math.Floor(cA*0.2)
	c.SetActorValue("health", cH)
	c.SetActorValue("stamina", cS)
	c.SetActorValue("magicka", cM)
	RegisterForSingleUpdate(5.0)
endEvent