To Do: Add logic to check for control of a token instead of character sheet when using !eot. If a token is not representing a character sheet but is controlled by a player, they will not be allowed to end that tokens turn. Add user configuration options for what status icon to use to mark initiative. It is currently hard coded to the green dot. July 15th, 2017 ~ 7:20 am eastern Version: 1.3.0 Link: <a href="https://gist.github.com/Sky-Captain-13/d6acd51388507c8b10b2931950100992" rel="nofollow">https://gist.github.com/Sky-Captain-13/d6acd51388507c8b10b2931950100992</a> Bugfix: Option to hide all npc names now works properly. June 22nd, 2017 ~ 8:30 pm eastern Version: 1.2.1 Update: Tokens on the GM Layer will no longer have their names announced in chat when their turn comes up. Update: Added an option to hide all npc names and replace them with NPC in chat. June 18th, 2017 ~ 12:10 am eastern Version: 1.2.0 Update: Added a new command !roll-init which uses the D&D 5e OGL character sheet attributes (dexterity, initmod, and jack_of_all_trades). Using this command will roll initiative for all selected tokens and add them to the turn order tracker or update initiative for a token already on the turn order tracker. If the token does not represent a character sheet, it will roll an unmodified 1d20 instead. April 26th, 2017 ~ 7:30 am eastern Version: 1.1.0 Bugfix: Players can no longer end the turn of someone else. A player can only use !eot if they have control of the character at the top of the turn order tracker. Bugfix: The script would crash if multiple players had control over the same character. This is because the script was trying to find a player color for the chat announcement and couldn't find what it was looking for. The script will now default to the player color of the first player that is in the controlled by field of the character sheet. Un-Fix: Removed listener for GroupInitiative script. It wasn't working anyway. Will work on getting it fixed at some point. March 12th, 2017 ~ 4:00 pm eastern Version: 1.0.4 Bugfix: Added listener for GroupInitiative script per TheAaron. Fixes a persistent green dot issue until the turn order has cycled past the first token added to the turn order tracker and auto sort is turned on in GroupInit. March 12th, 2017 ~ 8:15 am eastern Version: 1.0.3 Bugfix: Fixed logic to determine if a character sheet represents a PC or NPC. March 10th, 2017 ~ 12:45 am eastern Version: 1.0.2 Update: Added additional logic to show NPC in the chat announcement if the player's would not be able to see the token's name. Best used with the green dot turned on so you can see which npc whose turn it is. March 10th, 2017 ~ 12:30 am eastern Version: 1.0.1 Bugfix: Added logic to show NPC if the token does not have a name set. Without a name, the chat announcement box was messed up. Upon reading this, I will be looking at adding a way to not show NPC names in chat if players can't see the name normally. March 9th, 2017 ~ 10:00 pm eastern Version: 1.0.0 Initial Release: Please report any bugs you come across. Thanks! Simple Initiative This script is a lightweight turn order tracker that adds a green dot to the token at the top of the turn order, announces their turn in chat, and provides an option for players to end their turn and advance the turn order tracker to the next token. The GM also has a command to clear the initiative and close the tracker automatically. To Do Do the math for turn order calculations when the !eot command is used. This feature of Roll20 currently does not work when using the command instead of clicking the arrow on the tracker. Add option to hide NPC token names in chat announcements if players cannot see the token name. Add option to desginate which icon to use instead of the green dot. Commands !eot - Available to players and GM's alike, this command will advance the turn order one please. Players can only use this command if a token they control is at the top of the turn order. !clear-init - A GM only command, this clears the turn order tracker, removes the green dot, and closes the tracker. !sort-init - A GM only command to sort the tracker in descending order. !roll-init - A GM only command to roll initiative for all selected tokens using the D&D 5e OGL Character Sheet attributes (dexterity, initmod, jack_of_all_trades). If a token does not represent a character sheet, it will roll an unmodified 1d20 for initiative instead. Variables SHOW_GREEN_DOT Set to true to add a green dot to the token at the top of the turn order. ANNOUNCE_NEW_TURN Set to true to send an announcement to chat. PC_COLOR Use a six digit hex color code and this will show in chat when a token controlled by a player is announced. NPC_COLOR This is the default color all chat announcements will use if no other color is specified. PLAYER_COLOR Set to true to use the player color next to their name, beneath their avatar. This requires the token to be controlled by or represent a character controlled by that player. HIDE_NPC_NAMES Set to true to hide all npc token names in chat.