ScriptName _amm_SelectionControlScript Extends ObjectReference

Actor Property acPlayer Auto
GlobalVariable Property gvActiveSelection Auto
Int Property iSelectedButton Auto

Event OnActivate(ObjectReference akActionRef)

	String sMsg
	
	If (akActionRef == acPlayer)
		gvActiveSelection.SetValue(iSelectedButton)
		If (iSelectedButton == 0)
			sMsg = "Coffee Black "
		ElseIf (iSelectedButton == 1)
			sMsg = "Cafe Latte "
		ElseIf (iSelectedButton == 2)
			sMsg = "Capuchino "
		ElseIf (iSelectedButton == 3)
			sMsg = "Coffee with Milk "
		ElseIf (iSelectedButton == 4)
			sMsg = "Tea Regular "
		ElseIf (iSelectedButton == 5)
			sMsg = "Canis Root Tea "
		ElseIf (iSelectedButton == 6)
			sMsg = "Lavender Tea "
		Else
			sMsg = "Mugwort Tea "
		EndIf
		sMsg += "selected."
		Debug.Notification(sMsg)
	EndIf

EndEvent
