showgrid()
for(var/area/A in world)
if(!A.icon)
A.icon = 'cursor.dmi'
A.icon_state = "grid"
A.layer = 5
else
A.icon = null
A.icon_state = null
A.layer = 1
Problem description:
Bear with me, I'm kind of still newbish to coding. What I'm trying to do is create a grid:
Grid on black turf:http://img272.echo.cx/img272/9197/gridonblack3io.png
Grid on Dragon Warrior 4 grass turf:http://img200.echo.cx/img200/863/gridongrass3qc.png
Grid disabled on grass turf:http://img256.echo.cx/img256/2784/nogridongrass8ao.png
Ignore the sidebar.
The little square that's different is a cursor.
The problem I'm having is that even though the grid itself works fine, it's showing to everyone when I only want it to show to the user who specified it to be on. For the rest of the users, it should be off unless they click on the verb to turn on the grid.
I've tried searching the forums and the resources on BYOND if there was anything about making grids but unfortunately, I haven't been able to find anything. I've also tried a method of making an area for the grid, painting the map with it, and using invisible/see_invisible but that method didn't work. If anyone wants, I can post the coding I used in the other method, although since the above code seems to work better, that's the one I'm trying to work upon.
You could use image objects (look up "image objects" in the DM reference); though it's slight overkill when you could use invisibility.