ID:165698
 
Hello dream makers. The question is, how do you make the default area dense without making ALL of the areas dense. What I mean by the default area is the black areas in the map that are not occupied with any turf, obj, or mob. I was thinking of something along the lines of this:
area/New()
density = 1
..()

But, ofcourse that wouldn't work because that would make all of the areas dense regardless of which one. Is there a way to distinguish between an occupied area and one that's not or, is there some way to do this?
The problem is that there is only one instance of an actual /area object, and one object spans multiple locations. For example, if your playable map area was named /area/place, and /area/place was also occupied in a black area, you wouldn't be able to make it dense without the playable map area being dense.

However, what you can do is set the default turf to a dense object (look up world/turf), and just make all the 'black' area to that type of turf.
While i wait for someone to answer my question I'm gonna help you with yours..Um not that I know of What i would do is outside certain areas that you dont want to have people cross is make a certain turf that is black make it dense and outline an area with it.
turf
Void
icon = 'black.dmi'//or w/e yurs is
density = 1

And add indents to that
In response to SS10trunks
You didn't even indent -_-.
In response to Pyro_dragons
So? Easy code to fix.