Help Index :: Misc :: GMCP|
MUD Client Integration / GMCP Support
Some clients support the ability for a game to send information to the client
that doesn't show up on the screen. This can be used by your client to set
variables that can be used in triggers, scripts, etc. TFE supports the GMCP
standard. This help file outlines the data available to your client via GMCP.
Char - information about your character
Group - Information about your group
Room - information about the room your character is in
External - information about Discord
Channels - public/private chats your character can see
Status.flags - burdened, parry, etc.
Status.conditions - hungry, thirsty, etc.
Vitals - hp, maxhp, en, maxen, mv, maxmv
Score - level, xp, xp_needed, xp_level
Fighting - array containing who you are fighting + their condition
Info - name, vnum, weather, wind, area, area_id
Info.flags - safe, pkill, bank, etc.
Info.exits - direction name is key, target room vnum is value
Group - leader, looter, minmv
Group.members - player/pet name is key, will contain hp, en, mv, etc.
Discord.Info - inviteurl, applicationid (used by Mudlet)
Discord.Status - details, state (information about your character)
Channels.OOC - who, when, message
Channels.Tell - who, when, message, direction (sent/received)
(All major channels should be present in the Channels object)
Note: only the last chat message will be present in the Channels object for
each channel. The intention is that players will use GMCP events to intercept
message as they arrive and move to a chat tab, process, etc.
See 'help GMCP.Channels' for more information.
Char.Vitals.hp will contain your current hitpoints
Room.Info.area will contain the name of the area you are in
Room.Info.exits.north will contain the vnum of the room to the north
Room.Info.exit_info.north will contain name, vnum, terrain, etc. of the room to the north