Mapout Fix
Author
Submitted by
Version
D/L
File Size
Date Added
Last Updated
Khonsu
Khonsu
2.2.3
12
30.32 KB
Sep 21, 2024
Description
Updated mapout.cpp file to make this neat little feature work. It perhaps didn't work because of writing buffer changes I made in my game, but going back to other versions of Smaug that I could easily check, none of these mapout functions seemed to work, going back decades. I really think this is a cool way to build indoor areas, and supports something like a 28x28 grid of rooms.
It seemed to be an error with the way that map_stats, and functions that used the same logic, counted the rooms. It was getting bad column data. Also, the directions for making exists seemed to be reversed. So it was making a north or south exit the wrong way, but west and east might work. This was causing rooms to not connect. I also added support for X (crisscrossing NW-SW exits) for the map.
help mapout
Help level: 101
Syntax: mapout
mapout write: create a map in edit buffer.
mapout stat: get information about a written, but not yet created map.
mapout clear: clear a written, but not yet created map.
mapout show: show a written, but not yet created map.
mapout create: turn a written map into rooms in your assigned room vnum
range.
Example of a map:
[i]-[D]-[f] [j] | | X / [I]-[f]-[i]-[i] | \ / [j]-[G]-[F] [I] \ ^ [j]
This would create several linked rooms. Just paste the info into the
editor and it will map out all the rooms and exits.
[Letter to use] [Sector type given to room]
I SECT_INDOORS
C SECT_CITY
f SECT_FIELD
F SECT_FOREST
H SECT_HILLS
M SECT_MOUNTAIN
s SECT_WATER_SWIM
S SECT_WATER_NOSWIM
A SECT_AIR
U SECT_UNDERWATER
D SECT_DESERT
R SECT_RIVER
O SECT_OCEANFLOOR
u SECT_UNDERGROUND
J SECT_JUNGLE
W SECT_SWAMP
T SECT_TUNDRA
i SECT_ICE
o SECT_OCEAN
L SECT_LAVA
t SECT_TRAIL
G SECT_GRASSLAND
c SECT_SCRUB
[ELSE] SECT_INDOORS
[Exits to use] [Direction it gives]
^ UP or DOWN
= : Used in all directions except UP and DOWN
Makes a closed door in the direction its used in.
/ NORTHEAST or SOUTHWEST
\ NORTHWEST or SOUTHEAST
| NORTH or SOUTH
- EAST or WEST
Revisions: 0
Rating:
| Download
| Comments(0)