Scriptname SuH_ie_hxpgen extends activemagiceffect  

GlobalVariable Property SuH_PCSheartXP auto
GlobalVariable Property SuH_PCSheartXPgain auto

Actor Property PlayerRef Auto

Event OnEffectStart(Actor akTarget, Actor akCaster)
	if akTarget == PlayerRef
		RegisterForSingleUpdate(5.0)
	endIf
endEvent

Event OnUpdate()
	float phxp = SuH_PCSheartXP.GetValue()
	float hxpg = SuH_PCSheartXPgain.GetValue()
	phxp += Math.Floor(1*hxpg*0.01)
	SuH_PCSheartXP.SetValue(phxp)
	RegisterForSingleUpdate(5.0)
endEvent