ID:156027
 
I was wondering is it possible to tell the distance between two mob's that are targeted by a usr. Also if the distance can be found is it possible to put objects around their area so they are inclosed in it.
Telling the distance between two mobs is pretty easy.
Have you bothered to look at the reference? You could easily search 'distance', and you'd find exactly what you're looking for, I'm sure.

As for the surrounding objects:
mob/verb/surround_with_walls(mob/m in world)
for(var/turf/t in oview(m,1)) // For every turf that is at most 1 tile away from the user...
new/turf/wall(t) // ... create a wall at the turf's location.


Take a look at the definition of the for() loop.
In response to Gooseheaded (#1)
lol i had just got the internet working in my dorm room and the idea popped in my head but not soon after i started visiting other sites and forgot about the post and what i was doing on the internet so i never opened up dream maker to look and see

edit:

And thanks i got it from here if not i shall be back.