HeirOfTheSeptims Posted December 13, 2015 Share Posted December 13, 2015 (edited) I wrote a new script, which makes a new menu pop up: Message Property FixMessage Auto WEAPON Property StaffGrand Auto WEAPON Property StaffBlack Auto WEAPON Property StaffStar Auto WEAPON Property StaffBlackStar Auto SoulGem Property GemGrand Auto SoulGem Property GemBlack Auto SoulGem Property GemStar Auto SoulGem Property GemBlackStar Auto WEAPON Property StaffBroken Auto Event OnEquip(Actor PlayerActor)Menu()EndEventFunction Menu(int aibutton = 0)aiButton = FixMessage.Show()If aibutton == 4 ElseIf AiButton == 1Game.GetPlayer().RemoveItem(GemGrand, 1)Game.GetPlayer().RemoveItem(StaffBroken, 1)Game.GetPlayer().RemoveItem(StaffGrand, 1) ElseIf AiButton == 2Game.GetPlayer().RemoveItem(GemBlack, 1)Game.GetPlayer().RemoveItem(StaffBroken, 1)Game.GetPlayer().RemoveItem(StaffBlack, 1) ElseIf AiButton == 3Game.GetPlayer().RemoveItem(GemStar, 1)Game.GetPlayer().RemoveItem(StaffBroken, 1)Game.GetPlayer().RemoveItem(StaffStar, 1) ElseIf AiButton == 4Game.GetPlayer().RemoveItem(GemBlackStar, 1)Game.GetPlayer().RemoveItem(StaffBroken, 1)Game.GetPlayer().RemoveItem(StaffBlackStar, 1)EndIf EndFunction It compiles properly, and when I attach it to an activator instead of a miscobject it works perfectly. The problem is that when it is on a miscobject it does absolutely nothing. Does anybody know why it won't work? Edited December 13, 2015 by HeirOfTheSeptems Link to comment Share on other sites More sharing options...
lofgren Posted December 13, 2015 Share Posted December 13, 2015 (edited) The event is OnEquipped(Actor akActor), not OnEquip. Edited December 13, 2015 by lofgren Link to comment Share on other sites More sharing options...
Recommended Posts