Menu

Overland map

Matt Johnson

Overland Map

The overland map works in the following way:

  • When the MUD starts, an image file is uploaded and read. Each pixel represents a 'room' in the map. The colors that map to each room are found in the overland.c file.
  • Players go in an out of the map by setting the flag PLR_ONMAP .. mobs do so by using ACT_ONMAP. Functions enter_map() and leave_map() are used for this purpose.
  • There's one room, vnum 30000, that represents the 'real' room that the map is based. Other maps would use different rooms. Exits to the map can be written to this room.
  • The map can be edited by using the mapedit command (if you're a large enough immortal).
  • mapedit save will save the map to the image file in order to read it again at launch

Related

Wiki: features

MongoDB Logo MongoDB