Skip to content

Instantly share code, notes, and snippets.

@oestrich
Last active March 12, 2019 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oestrich/f68a04b3afe48539af3562c973bb06ac to your computer and use it in GitHub Desktop.
Save oestrich/f68a04b3afe48539af3562c973bb06ac to your computer and use it in GitHub Desktop.
Grapevine GMCP Action Bars

GMCP Action Bar

Actions.List {
  "actions": [
    {
      "key": "2b557868-1b1d-4ba0-8306-e7a2ebf6f965",
      "display": "Magic Missile",
      "send": "magic missile"
    },
    {
      "key": "0fdfe622-ed6b-4448-8882-35abefb5e7dc"
      "display": "Fireball",
      "send": "fireball"
    },
    {
      "key": "0fdfe622-ed6b-4448-8882-35abefb5e7dc"
      "display": "Look",
      "send": "look"
    }
  ]
}

Sends the full action bar list, up to 10 items. key is a string that uniquely identifies the action item in the rest of the messages.

Actions.OffCoolDown {
  "key": "2b557868-1b1d-4ba0-8306-e7a2ebf6f965"
}

Mark an action item as off cooldown.

Actions.OnCoolDown {
  "key": "2b557868-1b1d-4ba0-8306-e7a2ebf6f965",
  "delay": 3000
}

Mark an action item as on cooldown. delay is number of milliseconds the cooldown is for.

Actions.AdvanceCoolDown {
  "key": "2b557868-1b1d-4ba0-8306-e7a2ebf6f965",
  "amount": 1000
}

Move an action item's cooldown forward by delay milliseconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment