Difference between revisions of "Script:Auto Initiative"
From Roll20 Wiki
(→Configuration) |
Andreas J. (Talk | contribs) (Api discontinued, link to closest replacement) |
||
(12 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | #redirect[[Script:Group_Initiative]] | |
− | + | script overview | |
+ | |name=Auto Initiative | ||
+ | |author={{user profile|84478|Josh}} | ||
+ | |lastmodified=2013-12-30 | ||
+ | |version=2.2 | ||
− | = | + | '''Auto Initiative''' creates the API commands <code>!CombatBegins</code> and <code>!CombatEnds</code>. The former will roll initiative for all selected tokens and show the turn tracker window, while the latter will clear the turn tracker and hide it. Only the GM may execute these commands. |
+ | <br clear="both"> | ||
− | + | === Syntax === | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | CombatBegins | |
+ | CombatEnds | ||
− | + | === Installation === | |
+ | There are four configuration variables near the top of the script. You may alter them to customize the script functionality: | ||
− | + | * '''Combat_Begins.statName''' – Stats to be added to roll, commas between values | |
− | + | * '''Combat_Begins.rollValue''' – Size of die to roll for initiative (for example, 1d20) | |
− | Combat_Begins.statName | + | * '''Combat_Begins.sendChat''' – Set to <code>true</code> if you want the chat log to show the initiative results, or <code>false</code> otherwise |
− | Combat_Begins.rollValue | + | * '''Combat_Begins.includeChars''' – Set to <code>false</code> if you want to roll for players. It determines players based on if the token is linked to a character in the journal pane. |
− | Combat_Begins.sendChat | + | |
− | Combat_Begins.includeChars | + | === Changelog === |
− | + | {{changelog version|2.2|2013-12-30|* Release}} | |
− | + | ||
− | + | ||
− | + | ||
− | on | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
Latest revision as of 22:07, 20 September 2021
- redirectScript:Group_Initiative
script overview |name=Auto Initiative |author=Josh |lastmodified=2013-12-30 |version=2.2
Auto Initiative creates the API commands !CombatBegins
and !CombatEnds
. The former will roll initiative for all selected tokens and show the turn tracker window, while the latter will clear the turn tracker and hide it. Only the GM may execute these commands.
[edit] Syntax
CombatBegins CombatEnds
[edit] Installation
There are four configuration variables near the top of the script. You may alter them to customize the script functionality:
- Combat_Begins.statName – Stats to be added to roll, commas between values
- Combat_Begins.rollValue – Size of die to roll for initiative (for example, 1d20)
- Combat_Begins.sendChat – Set to
true
if you want the chat log to show the initiative results, orfalse
otherwise - Combat_Begins.includeChars – Set to
false
if you want to roll for players. It determines players based on if the token is linked to a character in the journal pane.
[edit] Changelog
v2.2 (2013-12-30)
- Release