Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Difference between revisions of "Script:InitiativeTrackerPlus"

From Roll20 Wiki

Jump to: navigation, search
(Created page with "Initiative Tracker Plus is derived from TrackerJacker written by Ken L. which was apparently related to The Aaron's TurnMarker. The author James C. (Chuz) has updated Tracker...")
 
Line 1: Line 1:
 +
{{script overview
 +
|name=Initiative Tracker Plus
 +
|author={{user profile|4306461|Chuz}}
 +
|version=1.0
 +
|lastmodified=2020-11-23
 +
|code=InitiativeTrackerPlus
 +
|dependencies=None
 +
|conflicts=None}}
 +
 
Initiative Tracker Plus is derived from TrackerJacker written by Ken L. which was apparently related to The Aaron's TurnMarker.  The author James C. (Chuz) has updated TrackerJacker to automatically detect token markers included in a lobby and allow their use in the status effects.
 
Initiative Tracker Plus is derived from TrackerJacker written by Ken L. which was apparently related to The Aaron's TurnMarker.  The author James C. (Chuz) has updated TrackerJacker to automatically detect token markers included in a lobby and allow their use in the status effects.
  
 
The intent is to continue supporting the script and update it with new features and functionality as they are requested or come to me.
 
The intent is to continue supporting the script and update it with new features and functionality as they are requested or come to me.
 +
 +
 +
== Installation and Configuration ==
 +
Copy the script's code, available from the menu on the right and stored at Roll20's [https://github.com/Roll20/roll20-api-scripts/InitiativeTrackerPlus API GitHub Repository]. Paste the code into a new script in your campaign's [[API:Use_Guide#The_Script_Editor|API Script Editor]]. Save the new script and it will be available inside your campaign.
 +
Soon the script should be available on the one-click API installer.
 +
 +
== Script Use ==
 +
'''!itp -help'''<br />
 +
Display help message
 +
 
 +
'''!itp -start'''<br />
 +
Start/Pause the tracker. If not started starts; if active pauses; if paused, resumes. Behaves as a toggle.
 +
 
 +
'''!itp -stop'''<br />
 +
Stops the tracker and clears all status effects.
 +
 
 +
'''!itp -clear'''<br />
 +
Stops the tracker as the -stop command, but in addition clears the turnorder
 +
 
 +
'''!itp -pause'''<br />
 +
Pauses the tracker.
 +
 
 +
'''!itp -reset [round#]'''<br />
 +
Reset the tracker's round counter to the given round, if none is supplied, it is set to round 1.
 +
 
 +
'''!itp -addstatus [name]:[duration]:[direction]:[message]'''<br />
 +
Add a status to the group of selected tokens, if it does not have the named status.
 +
'''name''' name of the status.
 +
'''duration''' duration of the status (numeric).
 +
'''direction''' + or - direction (+# or -#) indicating the increase or decrease of the the status' duration when the token's turn comes up.  +0 or -0 for a permanent affect.
 +
'''message''' optional description of the status. If dice text, ie: 1d4 exist, it'll roll this result when the token's turn comes up.
 +
 
 +
'''!itp -removestatus [name]'''<br />
 +
Remove a status from a group of selected tokens given the name.
 +
 
 +
'''!itp -edit'''<br />
 +
Edit statuses on the selected tokens
 +
 
 +
'''!itp -addfav [name]:[duration]:[direction]:[message]'''<br />
 +
Add a favorite status for quick application to selected tokens later.
 +
 
 +
'''!itp -listfavs'''<br />
 +
Displays favorite statuses with options to apply or edit.
 +
 
 +
'''!itp -listfavs 1'''<br />
 +
Displays favorite statuses (in alphabetical order) with options to apply or edit.
 +
 
 +
'''!eot'''<br />
 +
Ends a player's turn and advances the tracker if the player has control of the current turn's token. Player usable command.
 +
 
 +
'''!itp -saveFavs'''<br />
 +
Save your current Favorites into in the GM notes section of a handout called "ITPFavsJSON". This can be copy/pasted into a handout with the same name in another lobby and then "!itp -loadFavs" can be run to load them there.
 +
 
 +
'''!itp -loadFavs'''<br />
 +
Load Favorites previously saved via "!itp -saveFavs". Requires the handout "ITPFavsJSON" to exist and have properly exported data in the GM notes section.
 +
 
 +
'''!itp -setIndicatorImage'''<br />
 +
Replaces the current initiative indicator with a new image
 +
'''Note:''' The token will be removed from the field, along with any others with the name 'tracker_image'
 +
* Place the image you wish to use as the indicator image (animated turn indicator) on the play field (any layer).  Please note, rollable tokens can be used for this as well.
 +
* Edit the new token and change it's name to 'tracker_image', save the change
 +
* Pause the tracker if it's currently active
 +
* Use this command
 +
* Unpause the tracker if it was active, else wise the next time the tracker is started your new indicator will be used.
 +
 
 +
 +
'''!itp -defaultIndicatorImage'''<br />
 +
Revert the initiative indicator to the original green one.
 +
* Pause the tracker if it's currently active
 +
* Use this command
 +
* Unpause the tracker if it was active, elsewise the next time the tracker is started the indicator will be the default green one.
 +
 +
 +
== Changelog ==
 +
{{changelog version|1.0| 2020-11-23 |* Changed references to Tracker Jacker to Initiative Tracker Plus.  I am doing this to differentiate the new and drastically changing codebase from Ken L.'s original codebase so users that are happy with OG Tracker Jacker can continue to use it without confusion.}}
 +
{{changelog version|| 2020-11-23 |* Updated initiative round indicator to have Play, Stop and Pause buttons instead of ? and ??}}
 +
{{changelog version|| 2020-11-23 |* Submit current codebase to Roll20's Script repository in the hopes of becoming a one-click API script.}}
 +
{{changelog version|| 2020-11-22 |* Added the ability to change the initiative indicator (spinning green thing by default) to any other image.}}
 +
{{changelog version|| 2020-11-22 |* The first actor's turn is now announced when starting the tracker.}}
 +
{{changelog version|| 2020-11-18 |* Added the ability to save and load favorite.  The save creates a Handout called "ITPFavsJSON", the load looks for that handout and loads the JSON from it.}}
 +
{{changelog version|| 2020-09-25 |* Added the ability to display favorites alphabetically, it remains in the first in first out order by default.  To get an alphabetical list change `!itp -listfavs` to `!itp -listfavs 1`  }}
 +
{{changelog version|| 2020-09-20 |* Added mouseover text to token marker selector list  }}
 +
{{changelog version|| 2020-09-20 |* Added EOT link to turn indicator  }}
 +
{{changelog version|| 2020-09-12 |* Added -cleanSlate command (!itp -cleanSlate) to completely wipe all persistent state data should not be used lightly but if effects get stuck in the system this will clear them  }}
 +
{{changelog version|| 2020-09-12 |* Updated heavily to pull all token markers enabled in the campaign and make them useable for condition/status effects  }}

Revision as of 05:09, 24 November 2020

API ScriptAuthor: Chuz
Version: 1.0
Last Modified: 2020-11-23
Code: InitiativeTrackerPlus
Dependencies: None
Conflicts: None

Initiative Tracker Plus is derived from TrackerJacker written by Ken L. which was apparently related to The Aaron's TurnMarker. The author James C. (Chuz) has updated TrackerJacker to automatically detect token markers included in a lobby and allow their use in the status effects.

The intent is to continue supporting the script and update it with new features and functionality as they are requested or come to me.


Installation and Configuration

Copy the script's code, available from the menu on the right and stored at Roll20's API GitHub Repository. Paste the code into a new script in your campaign's API Script Editor. Save the new script and it will be available inside your campaign. Soon the script should be available on the one-click API installer.

Script Use

!itp -help
Display help message

!itp -start
Start/Pause the tracker. If not started starts; if active pauses; if paused, resumes. Behaves as a toggle.

!itp -stop
Stops the tracker and clears all status effects.

!itp -clear
Stops the tracker as the -stop command, but in addition clears the turnorder

!itp -pause
Pauses the tracker.

!itp -reset [round#]
Reset the tracker's round counter to the given round, if none is supplied, it is set to round 1.

!itp -addstatus [name]:[duration]:[direction]:[message]
Add a status to the group of selected tokens, if it does not have the named status. name name of the status. duration duration of the status (numeric). direction + or - direction (+# or -#) indicating the increase or decrease of the the status' duration when the token's turn comes up. +0 or -0 for a permanent affect. message optional description of the status. If dice text, ie: 1d4 exist, it'll roll this result when the token's turn comes up.

!itp -removestatus [name]
Remove a status from a group of selected tokens given the name.

!itp -edit
Edit statuses on the selected tokens

!itp -addfav [name]:[duration]:[direction]:[message]
Add a favorite status for quick application to selected tokens later.

!itp -listfavs
Displays favorite statuses with options to apply or edit.

!itp -listfavs 1
Displays favorite statuses (in alphabetical order) with options to apply or edit.

!eot
Ends a player's turn and advances the tracker if the player has control of the current turn's token. Player usable command.

!itp -saveFavs
Save your current Favorites into in the GM notes section of a handout called "ITPFavsJSON". This can be copy/pasted into a handout with the same name in another lobby and then "!itp -loadFavs" can be run to load them there.

!itp -loadFavs
Load Favorites previously saved via "!itp -saveFavs". Requires the handout "ITPFavsJSON" to exist and have properly exported data in the GM notes section.

!itp -setIndicatorImage
Replaces the current initiative indicator with a new image Note: The token will be removed from the field, along with any others with the name 'tracker_image'

  • Place the image you wish to use as the indicator image (animated turn indicator) on the play field (any layer). Please note, rollable tokens can be used for this as well.
  • Edit the new token and change it's name to 'tracker_image', save the change
  • Pause the tracker if it's currently active
  • Use this command
  • Unpause the tracker if it was active, else wise the next time the tracker is started your new indicator will be used.


!itp -defaultIndicatorImage
Revert the initiative indicator to the original green one.

  • Pause the tracker if it's currently active
  • Use this command
  • Unpause the tracker if it was active, elsewise the next time the tracker is started the indicator will be the default green one.


Changelog

v1.0 ( 2020-11-23 )

  • Changed references to Tracker Jacker to Initiative Tracker Plus. I am doing this to differentiate the new and drastically changing codebase from Ken L.'s original codebase so users that are happy with OG Tracker Jacker can continue to use it without confusion.


v ( 2020-11-23 )

  • Updated initiative round indicator to have Play, Stop and Pause buttons instead of ? and ??


v ( 2020-11-23 )

  • Submit current codebase to Roll20's Script repository in the hopes of becoming a one-click API script.


v ( 2020-11-22 )

  • Added the ability to change the initiative indicator (spinning green thing by default) to any other image.


v ( 2020-11-22 )

  • The first actor's turn is now announced when starting the tracker.


v ( 2020-11-18 )

  • Added the ability to save and load favorite. The save creates a Handout called "ITPFavsJSON", the load looks for that handout and loads the JSON from it.


v ( 2020-09-25 )

  • Added the ability to display favorites alphabetically, it remains in the first in first out order by default. To get an alphabetical list change `!itp -listfavs` to `!itp -listfavs 1`


v ( 2020-09-20 )

  • Added mouseover text to token marker selector list


v ( 2020-09-20 )

  • Added EOT link to turn indicator


v ( 2020-09-12 )

  • Added -cleanSlate command (!itp -cleanSlate) to completely wipe all persistent state data should not be used lightly but if effects get stuck in the system this will clear them


v ( 2020-09-12 )

  • Updated heavily to pull all token markers enabled in the campaign and make them useable for condition/status effects