var/grid[100][100]
Now lets say I have something at 40,40; 50,50; 55,55; 60,60:
grid[40][40]="me"
grid[50][50]="him1"
grid[55][55]="him2"
grid[60][60]="him3"
How to make proc, which will work like view() but in list?:
//range - range of view
//list - list to search in
//sx and sy - starting/current location
proc/lview(range,list,sx,sy)
//something...
for(var/A in lview(10,grid,40,40)
A<<"[A] you are stupid"
That should work. Just keep in mind what you're doing is just not that good in BYOND; just with that there you're about 1/6 of the way to hitting the list limit.