
So I have created a status tracker based on a request. I have used the state object so status maintains between sessions. The purpose of this script is to keep track of a token/players status, and count down the number of rounds until it is lost. It also allows for the storage of permanent effects which need to be ended manually. It will give indicators as you see fit (described below) and it will give a status marker of your choice on the token. Here are the commands:
Adding a status will flag the character/token named with the status name.Commands: First select the tokens you wish to be affected. !StatusAdd <status name> <duration, -1 for perm> <description> <GM Only> <status indicator: blank means uses your default>
!StatusDel <status name> (affects all tokens selected)
!StatusAll
!StatusClearAll
So an example:
This will add a Bless effect to the selected tokens for 10 rounds. It will also note that each gets +1 to attacks each round when their turns comes up. At the end of the duration, the status will be deleted.!StatusAdd Bless 10 +1 to attacks
The GM only flag will only show the status to the GM and not the players. To use the flag, just end the line with GM. An example:
This will flag the selected tokens as Diseased, remind the GM that Josh gets -1d6 CON per day, but only shows it to the GM.!StatusAdd Diseased -1 -1d6 CON per day GM
There are some personal settings as well:
StatusTracker.statusIndicator = "purple"; //none means no indicators, you choose the color of the marker to indicate a status exists
StatusTracker.GMName = "DM (GM)"; // The GM's name so he/she can give instructions
StatusTracker.Chat = true; //Uses chat window to give indicators
StatusTracker.ChatDescriptions = true; //displays descriptions (set to false if you do not want to see them)
StatusTracker.ChatOnlyGM = false; //All chat only goes to the gm, players do not receive notifications
Here is a link to the code: https://gist.github.com/DarokinB/5776368