GMCP Reference
Here are the messages that SWmud will send via GMCP:
Room.Info
- Sent any time the player moves or types <look>
- Contains a JSON object with the following fields:
- "short" is the room's short description (a string)
- "exits" is a list of the room's obvious exits (a list of strings)
Char.Buffs
- Sent any time the player's buffs change or they type <buffs>
- Contains a JSON object mapping buff names (a string) to a list of that buff's effects (a list of strings).
Char.Status
- Sent any time the player's status changes or they type <score>
- A "status change" means any of the pieces of data in Char.Status changes
- The included data are: name, hp, maxhp, sp, maxsp, exp, align, jedi-align, druggedness, wimpy, wimpydir, invis, shield, weapon, weapontype, ammo, ammomax, vehiclename, vehiclehp, vehiclehpmax, strength, dexterity, mechanical, technical, force, charisma, guild<guildname>
Char.Cooldowns
- Sent any time the player's cooldowns change, or when they type <delays>
- Contains a JSON object mapping cooldown names to the time they will expire
Char.Inventory
- Sent any time an object moves in or out of the player's inventory, or when they use <inventory> or associated commands.
- Contains a JSON array, where each entry is either a string, or a JSON object mapping a bag name to a string list of its contents
- Note that actions that change an item in your inventory without moving it will *not* cause a GMCP inventory update! So if you use part of a medkit, the bacta count will *not* be updated until an object (any object) moves into or out of your inventory, or you use the <inventory> command!