FLOODFILL
Syntax: mapedit fill
Syntax: mapedit undo

Floodfilling is the process of changing all of the terrain within a contained
section of the map into another kind of terrain. It operates much the same way
as Windows Paint, or any other floodfill function in a graphics editor would.

You will first need to use the mapedit command to walk an outline on the map
in the shape you'd like it to be. Once you've done this, turn off your mapedit
flag and then step to the inside of the area you've just surrounded ( or to
the outside if you want to fill what's on the outside instead ).
Then, type: mapedit fill where sectortype is any sector in the
sectortypes list, except exits. The floodfill function will the proceed to
change everything inside the boundry from what your standing on, into what you
want it to be.

So if your standing on oceans, and you want to fill grassland inside the boundry,
type: mapedit fill grassland. That will change all the oceans into grasslands.

Note that you CANNOT specify a terrain type to fill in that is the same as what
you are standing on. To force the code to allow for that would create an infinite
loop, and so the fill operation will just fail instead.

If for some reason you need to undo what you've just filled in, simply type:
'mapedit undo' and your last floodfill will be reversed.

See also: SECTORTYPES, MAPEDIT
Date Modified: Thu Apr 22 23:39:59 2021
Modified By: (null)
Back to Database