A script to simplify Turn Order Management, and move it into chat.
Sort the Turn Counter numerically descending, and add a turn counter to the top of the order
Clear the turn order. There is no confirmation, but the GM gets a whisper with a load command to restore what was just cleared, if done in error.
Add an item to the list that counts down from n. By default this is added to
the current end of the order. If --before
or --after
is provided, the
argument is used as a prefix search for a name to put the item before or
after.
Add an item to the list that counts up from n. By default this is added to the
current end of the order. If --before
or --after
is provided, the argument
is used as a prefix search for a name to put the item before or after.
Remove all elements with a counter of 0 (or less).
Remove the element first with the given prefix.
Load the turn order from a blob of JSON data.
Append the turn order data from a blob of JSON data to the current list.
Clearing, loading, and starting the encounter is limited to GMs. Adding counters is open to anyone. YMMV if this is a bug or a feature.
Feedback is welcome!
All of the code of the API scripts in this repository is released under the MIT license (see LICENSE file for details). If you contribute a new script or help improve an existing script, you agree that your contribution is released under the MIT License as well.