var/ball = new/obj/red_ball
src << output(ball, "grid1: 1,1")
Problem description: I am trying to add an object to a cell of a grid. For that, I make an instance of it and add it like the above code. It works fine, the object is displayed on the cell but I am trying as soon as it is clicked a message to be printed, which does not work if I click it from the grid. If I added it normally from the map then it does print... I use:
obj
red_ball
icon = 'ball.dmi
Click()
world << "Test"
What I think is happening, is after you add the ball to the grid, it is being deleted [via garbage collection] and doesn't actually exist anymore, hence clicking not working.