Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

(Groupinitiative) Change initiative value in the tracker each time ?

1581250942

Edited 1581251799
Hello, is it possible to automatically decrease the initiative value by 10 each time a player finishes his turn ? I also use Turnmarker (by Aaron). Thank you
1581305915
The Aaron
Roll20 Production Team
API Scripter
Hmm. I could certainly write a script for that. Or possibly add an argument to GroupInitiative to apply a formula. 
I tried it with this in the RequestTurnAdvancement function but I could not get it to run without messing up the tracker:                  initiative  =  parseInt ( turnOrder [ 0 ][ "pr" ])                  if  ( initiative ) {                      newinitiative  =  initiative  -  10                      if  ( newinitiative  <  0 ) {                         turnOrder [ 0 ][ "pr" ] =  0                     }  else  {                         turnOrder [ 0 ][ "pr" ] =  newinitiative                     }                 }                  TurnOrder . Set ( turnOrder );
1581349678
The Aaron
Roll20 Production Team
API Scripter
Hmm. I'll take a look tonight.