;=========================
;PROPERTIES
;=========================
Message Property ZyMenu Auto
Armor Property ArmorIronCuirass Auto
Armor Property ArmorSteelCuirass Auto
MiscObject Property Gold001 Auto
;=========================
;EVENT
;=========================
Event OnActivate (ObjectReference akActionRef)
Menu()
EndEvent
Function Menu (int aiButton = 0)
aiButton = ZyMenu.show()
If aiButton == 0
ElseIf aiButton == 1
If (Game.GetPlayer().GetItemCount(Gold001) >=100)
Game.GetPlayer().RemoveItem(Gold001, 100)
debug.messagebox("You have purchased Iron Armor")
Game.GetPlayer().AddItem(ArmorIronCuirass)
ElseIf aiButton == 2
If (Game.GetPlayer().GetItemCount(Gold001) >=150)
Game.GetPlayer().RemoveItem(Gold001, 150)
debug.messagebox("You have purchased Steel Armor")
Game.GetPlayer().AddItem(ArmorSteelCuirass)
EndIf
Thanks for any help!
#NOTE# I know that there may be some missing 'EndIfs' but when I add them, the error still occurs.