Scriptname SuH_ss_statcheckerScript extends activemagiceffect  

Actor Property playerRef Auto

int ch
int cbh
int cm
int cbm
int cs
int cbs

Event OnEffectStart(Actor cTarget,Actor cCaster)
	if cCaster == playerRef
		ch = cTarget.GetActorValue("health") as int
		cm = cTarget.GetActorValue("magicka") as int
		cs = cTarget.GetActorValue("stamina") as int
		cbh = cTarget.GetBaseActorValue("health") as int
		cbm = cTarget.GetBaseActorValue("magicka") as int
		cbs = cTarget.GetBaseActorValue("stamina") as int
		
		debug.MessageBox("Health "+ch+"/"+cbh+" Stamina "+cs+"/"+cbs+" Magicka "+cm+"/"+cbm)
	endIf
endEvent