Scriptname aaUCMark2SpellScript extends activemagiceffect  
{Script for the enhanced Mark spell}

ObjectReference Property Marker1 Auto
{Marker 1}

ObjectReference Property Marker2 Auto
{Marker 2}

ObjectReference Property Marker3 Auto
{Marker 3}

ObjectReference Property Marker4 Auto
{Marker 4}

Message Property MarkerMsg auto
{The Marker message}

Actor caster
ObjectReference casterRef

Event OnEffectStart(Actor akTarget, Actor akCaster)

	Int iButton = MarkerMsg.Show()

	If (iButton == 0)
		caster = akCaster
		casterRef = (caster as ObjectReference)
		Marker1.MoveTo(akCaster)

	ElseIf (iButton == 1)
		caster = akCaster
		casterRef = (caster as ObjectReference)
		Marker2.MoveTo(akCaster)

	ElseIf (iButton == 2)
		caster = akCaster
		casterRef = (caster as ObjectReference)
		Marker3.MoveTo(akCaster)

	ElseIf (iButton == 3)
		caster = akCaster
		casterRef = (caster as ObjectReference)
		Marker4.MoveTo(akCaster)

	ElseIf (iButton == 4)
		Return

	EndIf

endEvent