Login
User Name:

Password:



Register

Forgot your password?
SmaugFUSS 1.8/1.9
Sep 21, 2024 5:04 am
By Elwood
Bug: char_check( )
Aug 31, 2024 12:27 am
By GatewaySysop
Bug: move_char( )
Aug 30, 2024 3:52 am
By GatewaySysop
Bug: spell_animate_dead
Aug 25, 2024 10:48 pm
By GatewaySysop
ROOM_NO_MAGIC Inconsistencies...
Jul 8, 2024 12:32 am
By GatewaySysop
Discord Websocket Server
Author: Khonsu
Submitted by: Khonsu
Mapout Fix
Author: Khonsu
Submitted by: Khonsu
Progfind command
Author: Khonsu
Submitted by: Khonsu
do_owhere recursive
Author: Khonsu
Submitted by: Khonsu
Changes list / Addchange
Author: Khonsu
Submitted by: Khonsu
Users Online
CommonCrawl, AhrefsBot, Google, Bing

Members: 0
Guests: 3
Stats
Files
Topics
Posts
Members
Newest Member
492
3,803
19,665
608
TerranceMa

Today's Birthdays
There are no member birthdays today.
Files
Upload Rules | File Index | Search | Recent Uploads
» Root » AFKMud » AFKMud Snippets
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)