ID:159350
 
Basically, I've put a bunch of objects in a grid, with a custom skin. But the problem is that I can't connect to their click function.

So I ask.

How can I put objects in a grid so that their Click() function is accessible?
Chances are, you're outputting them to the grid without referencing them, and then the garbage collector is picking them up while leaving the image of them in the grid. Reference the objects somewhere.

mob/verb/This_wont_work()
src << output("Grid",new /obj)

mob/var/list/grid_objs = list(new /obj) //this is considered a reference
mob/verb/This_will_work()
src << output("Grid",locate(/obj) in grid_objs)
In response to Jeff8500
Ah! Thanks! That's pretty much what I was doing, yeah!