MUME Help
GMCP CHAR
These are messages in the GMCP
Char
module.
Sent by client
Char.Login
- Used to log in a character, only interpreted if no character is logged in for that connection
-
Message body is an object with keys
name
andpassword
-
Example:
Char.Login { "name": "gandalf", "password": "mellon" }
Sent by server
Char.Name
- Contains the characters's name and the complete name including title.
- This message is only sent on login.
-
Message body in an object with keys
name
andfullname
; the values are strings -
Example:
Char.Name { "name": "Gandalf", "fullname": "Gandalf the Grey"}
Char.Vitals
- Message body is an object containing several variables representing basic character attributes such as health, mana, etc.
-
Example:
Char.Vitals { "hp": 71, "maxhp": 100, "mana": 90, "maxmana": 100, "mp": 121, "maxmp": 121 }
-
Possible values:
hp
current health points (*) hp-string
health points description (*) maxhp
maximum health points mana
current mana points (*) mana-string
mana points description (*) maxmana
maximum mana points mp
current movement points (*) mp-string
movement points description (*) maxmp
maximum movement points xp
current experience points tp
current travel points carrying
string describing how heavy load you are carrying ridden
true if currently ridden by someone; otherwise false ride
true if currently riding; otherwise false climb
null, "c"
, or"C"
sneak
null, "s"
, or"S"
hidden
true if in a hiding place; otherwise false swim
true if currently trying to swim; otherwise false light
"*"
,"!"
,")"
, or"o"
fog
null, "-"
or"="
weather
" "
,"~"
,"'"
,"\""
,"*"
; or nullalertness
"normal"
,"careful"
, etc.mood
"wimpy"
,"prudent"
, etc.spell-effort
"quick"
,"fast"
, etc.position
"standing"
,"fighting"
,"sitting"
,"resting"
,"sleeping"
,"stunned"
,"incapacitated"
, or"dying"
mount-moves
"rested"
,"slow"
, etc.opponent
the short name of your current fight opponent; or null buffer
the short name of your current fight opponent's opponent; or null opponent-hits
"healthy"
,"fine"
, etc.buffer-hits
"healthy"
,"fine"
, etc.(*) See
help prompt
andhelp weather
for explanations on some of the values.
Char.StatusVars
- Sent by server after a successful login, after the module is enabled, or when any contained value changes.
- Message body is an object where each member is a name-caption pair; name is the internal name and caption the user-readable one
-
Example:
Char.StatusVars { "race": "Troll", "subrace": "Cave Troll" }
-
Possible values:
fullname
current character name and title level
character's level name
current character name next-level-tp
travel points needed to reach the next level; or null next-level-xp
experience points needed to reach the next level; or null race
player's race subclass
current subclass subrace
subrace
Generated on Thu Sep 5 18:09:40 2024