ID:1509235
 
(See the best response by Koshigia.)
Code:
mob
var
list/Build = new/list()


obj/Build
icon = 'BuildingTurfs1.dmi'
screen_loc = "12,3"
layer = 1000001

Grass
icon_state="grass"
naturalsuffix = "Purchase Grass to build"
Click()
usr.Grass()
mob
verb
Grass()
set hidden = 1
var/c=locate(/obj/Build/grass) in usr.Build
if(c)
new/obj/Build/grass(usr.loc)


Problem description:

I have been trying to make a building system for a side project I have been working on. The issue I am having is that in the statpanel that I put in, the verb is not getting located into that statpanel. Another issue that I am having is that I want the user to be able to see what they would be building. Example: Having the icon appear next to the verb name. If anyone could help me, that would be greatly appreciated.

Best response
If you want it in a statpanel other than the default verbs panel, you'll need to have some sort of object with a Click() interface defined to run the desired procedure. Then you'll need a method of keeping track of those clickable objects so that you can properly display them in the stat panel.
Issue Resolved. Thanks