I can't seem to think of a good simple way to determine whether an area is on the map or just a "room." I could maybe check the area's contents list for the presence of turfs, but I think there's probably a more direct way to do it... any ideas?
(Heh... I finished typing this message and instinctively hit "control-K" to preview it. Nothing happened, of course.)
ID:259193
Jul 23 2000, 4:20 pm
|
|
In response to Gabriel
|
|
Something like: Hmm--that tag-based method might work if tags are only assigned when areas go on the map. I'll try it. The /area/room method wouldn't work for me, though... what I'm doing in my code is defining areas and using locate() to bring them into existence (which will happen even if it isn't on the map), but there's a chance that I could define an area without remembering to put it on the map (which I've done by accident already), and that's mainly what I wanted to check for. Thanks! |
Something like:
if(isnull(A.tag)) or if(istype(/area/room))
- -