MUME Help
CHANGE XML, XML
The XML mode is a client mode, an alternative to the
default VT100 mode, that special clients can use.
The game output will be (not very strict) XML with the following tags (and attributes) supported:
prompt
|
game prompt |
room
|
|
name
|
room name; or message that you cannot see it |
description
|
room description |
terrain
|
extra terrain information such as trails, snow, and water |
magic
|
magic effects, portals, detect magic, etc. |
exits
|
information about exits |
exit
|
a single exit's information; has
dir=<dir> and optional
id=<id> attributes
|
weather
|
weather message |
achievement
|
you accomplished an achievement |
gratuitous
|
output the player doesn't want to see, like room descriptions with
change spam off
|
movement
|
empty tag; sent when you move; includes a
dir=<direction> attribute if the direction of
movement is known
|
move_in
|
observing someone move into the room |
move_out
|
observing someone move out of the room |
social
|
a social message |
emote
|
the emote command
|
narrate
|
the narrate command
|
pray
|
the pray command
|
say
|
the say command
|
shout
|
an Ainu shouting |
song
|
the song command
|
tell
|
the tell command
|
yell
|
the yell command
|
character
|
the name of a character (player or NPC); some NPCs that are meant to seem like plants do not have this markup |
enemy
|
the name of an enemy player character; usually
inside <character>
|
player
|
the name of a non-enemy player character;
usually inside <character>
|
hit
|
you hit someone else |
damage
|
you take damage |
avoid_damage
|
you avoid taking damage |
miss
|
an attack that misses its mark |
object
|
the name of an object |
code
|
a command or code |
em
|
emphasized text |
header
|
a (table or section) header |
status
|
a status value |
highlight
|
text highlight as per its type=<name> ;
<name> is one of the tag names
|
familiar
|
seen by a familiar |
snoop
|
seen by snooping someone (for Ainur); the
symbol=<string> attribute specifies the
prefix string
|
xml
|
sent when enabling/disabling XML mode |
You can enable or disable XML mode with change xml
or by sending
<MPI>X1\n<state>\n
where <MPI>
is the MUME
Protocol Initiator ~$#E
and
<state> is 0
to disable or
1
to enable XML mode. 2
and 3
disables/enables XML mode without sending any <xml>
or
</xml>
tag.
Attribute values use HTML syntax and may be unquoted or quoted as per https://www.w3.org/TR/2012/WD-html-markup-20120329/syntax.html#syntax-attributes
There will be more, and all of the above is subject to change.
See also: | GMCP, MUME CLIENT PROTOCOL, TLS |
Generated on Thu Sep 5 18:09:39 2024