Jump to content

Need Help With Menu Script Not Working


HeirOfTheSeptims

Recommended Posts

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()

EndEvent

Function Menu(int aibutton = 0)

aiButton = FixMessage.Show()

If aibutton == 4

 

ElseIf AiButton == 1

Game.GetPlayer().RemoveItem(GemGrand, 1)

Game.GetPlayer().RemoveItem(StaffBroken, 1)

Game.GetPlayer().RemoveItem(StaffGrand, 1)

 

ElseIf AiButton == 2

Game.GetPlayer().RemoveItem(GemBlack, 1)

Game.GetPlayer().RemoveItem(StaffBroken, 1)

Game.GetPlayer().RemoveItem(StaffBlack, 1)

 

ElseIf AiButton == 3

Game.GetPlayer().RemoveItem(GemStar, 1)

Game.GetPlayer().RemoveItem(StaffBroken, 1)

Game.GetPlayer().RemoveItem(StaffStar, 1)

 

ElseIf AiButton == 4

Game.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 by HeirOfTheSeptems
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...