Scriptname SuH_sexES_PCtraining extends activemagiceffect

SuH_Fun property _Fun auto

;ent/ Actors
Actor property PlayerRef auto
Actor char
;end/

Event OnEffectStart(Actor akTarget, Actor akCaster)
	if akTarget == PlayerRef
		char = akTarget
		RegisterForSingleUpdate(5.0)
	else
		debug.trace("SuH ERROR : PCtraining set on NPC - NULL Effect", 2) ;Error report to log
	endIf
endEvent

Event OnUpdate()

	; Call functions from SuH_Fun
	_Fun.XPcalc("PCtraining")
	_Fun.STATcalc(char, aPreset="PCtraining", stat="All")
	
	RegisterForSingleUpdate(5.0)
endEvent