ID:177554
 
How would I make in if statement that checks if you have a certain object in your menu!!!
First of all explain what this "menu" is. Is it the statpanel like I think you mean? And this "object" is it an obj? Is it a verb? You need to be more specific.
Codesterz wrote:
How would I make in if statement that checks if you have a certain object in your menu!!!

Depends on how the menu is represented, but for example's sake let's say you have a list of items in the menu:
if(locate(/obj/button/attack) in menuitems)
...

That's pretty much how it'd be done.

Lummox JR
by menu I mean inventory it is an object.
In response to Lummox JR
thanx Lummox JR