Scriptname SuH_comES_vitalitystone extends activemagiceffect  

GlobalVariable property SuH_PCScaphealth auto
GlobalVariable property SuH_PCScapmagicka auto
GlobalVariable property SuH_PCScapstamina auto

Actor property playerRef auto

Event OnEffectStart(Actor akTarget, Actor akCaster)
	if akTarget == PlayerRef ; If player consumes
		int h = SuH_PCScaphealth.GetValue() as int
		int m = SuH_PCScapmagicka.GetValue() as int
		int s = SuH_PCScapstamina.GetValue() as int
		SuH_PCScaphealth.SetValue(h+5)
		SuH_PCScapmagicka.SetValue(m+5)
		SuH_PCScapstamina.SetValue(s+5)
		Debug.Notification("Vitality Stone - All status caps increased by 2")
	else ; If NPC consumes
		; [][][] Currently Disabled
	endIf
endEvent