ScriptName aaaKimachuuBeheadingPotion Extends ActiveMagicEffect

Message Property mes01 Auto
Potion Property po01 Auto

Event OnEffectStart(Actor akTarget, Actor akCaster)
	bonusPoint()
EndEvent

Function bonusPoint()
	Int intIndex
	intIndex = Mes01.Show()
	If intIndex == 0
		Game.GetPlayer().SetActorValue("Health",( Game.GetPlayer().GetBaseActorValue("Health") + 10))
	ElseIf intIndex == 1
		Game.GetPlayer().SetActorValue("Stamina",( Game.GetPlayer().GetBaseActorValue("Stamina") + 10))
	ElseIf intIndex == 2
		Game.GetPlayer().SetActorValue("Magicka",( Game.GetPlayer().GetBaseActorValue("Magicka") + 10))
	ElseIf intIndex == 3
		Game.AddPerkPoints(1)
	Else
		Game.GetPlayer().AddItem(po01, 1, false)
	Endif
EndFunction