MUME Help
GMCP ROOM
These are the messages in the GMCP
Room
module.
Sent by server
Room.Info
- Sent when a player moves into a new room
- Contains information about the room that the player is in
-
Message body is an object with the following keys:
name
string with the room name without the preposition; null if not visible area
string containing the zone area name environment
string of the room terrain type id
room number (optional) in [1..0x7fffffff]; all rooms do not have numbers exits
desc
string of the room description; null if not visible -
Example:
Room.Info { "name": "The Inn's Rooms", "area": "Bree", "id": 1234, "environment": "building", "desc": "..." "exits": { "e": { "name": "gate" "id": 222 }, "d": {"id": 19} } }
-
Possible exit flag strings:
broken
door is broken climb-down
is a downward climb climb-up
is an upward climb closed
door is closed; if not set any door is open hidden
door is a hidden exit road
is a road sundeath
causes sundeath (Troll only) sunny
is sunny (Troll and Orc only) trail
is a trail water
leads to water
Room.UpdateExits
- Sent when the state of exits change
-
Message body is an object containing the new
state of exits like the
exits
field in theRoom.Info
message - Only exits that changed state are included
-
If an exit is removed, its value
becomes
false
-
Example:
Room.UpdateExits { "n": false, "e": { "flags": ["closed"], "name": "gate" } }
means the exit to the north was removed and that there now is a closed gate to the east
See also: | GMCP Room.Chars |
Generated on Thu Sep 5 18:09:40 2024