area
Entered()
src << ""
src << "<font color=blue><b>[name]</b></font>" //shows name of area
src << "<font color=blue><i>[desc]</i></font>" //shows desc of area
usr << "You see:"
for(var/O as obj|mob in oview())// <-- I need to find mob's in the same grid as me (It's a MUD)
usr << "\a [O]"
ID:155168
Aug 27 2011, 11:00 am
|
|
Hi all I know this might seem like a stupid noob question but here goes. I need to initiate the action in the same grid. Here is the code:
|
As for the second part, since one /area can contain multiple turfs you'll have to loop over the turfs inside of the area, and then loop over the mobs inside of those turfs before outputting something to them.