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:Raise Count"

From Roll20 Wiki

Jump to: navigation, search
Line 2: Line 2:
 
|name=Raise Count
 
|name=Raise Count
 
|author={{user profile|235259|Brian}}
 
|author={{user profile|235259|Brian}}
|version=2.3
+
|version=2.5
 
|dependencies={{api repository link|Interpreted sendChat}}, {{api repository link|splitArgs}}
 
|dependencies={{api repository link|Interpreted sendChat}}, {{api repository link|splitArgs}}
|lastmodified=2015-01-24}}
+
|lastmodified=2016-04-09}}
  
 
'''Raise Count''' creates the API command <code>!rc</code>, which rolls dice and counts the number of raises for the [[Savage Worlds]] game system.
 
'''Raise Count''' creates the API command <code>!rc</code>, which rolls dice and counts the number of raises for the [[Savage Worlds]] game system.
Line 24: Line 24:
  
 
=== Installation ===
 
=== Installation ===
The format of the output can be customized by altering <code>config.outputFormat</code>, found near the top of the script. You may use the placeholders <code>{0}</code>, <code>{1}</code>, and <code>{2}</code> in the <code>outputFormat</code> string, which will become an inline roll, the value of ''target'', and the number of raises, respectively.
+
The format of the output can be customized by altering <code>Output Format</code>. You may use the placeholders <code>{0}</code>, <code>{1}</code>, and <code>{2}</code> in the <code>Output Format</code> string, which will become an inline roll, the value of ''target'', and the number of raises, respectively.
  
You can change the size of a raise use to calculate the number of raises by altering the value of <code>config.raiseSize</code>.
+
You can change the size of a raise use to calculate the number of raises by altering the value of <code>Raise Size</code>.
  
 
=== Changelog ===
 
=== Changelog ===
 +
{{changelog version|2.5|2016-04-12|* Update globalconfig support}}
 +
{{changelog version|2.4|2016-03-09|* Update for one-click install}}
 
{{changelog version|2.3|2015-05-20|* Handle changes to inlinerolls handling on dev server}}
 
{{changelog version|2.3|2015-05-20|* Handle changes to inlinerolls handling on dev server}}
 
{{changelog version|2.2|2015-01-24|* [bugfix] no-arg crash}}
 
{{changelog version|2.2|2015-01-24|* [bugfix] no-arg crash}}
 
{{changelog version|2.1|2015-01-22|* Fixed transcription error}}
 
{{changelog version|2.1|2015-01-22|* Fixed transcription error}}
 
{{changelog version|2.0|2015-01-08|* Release}}
 
{{changelog version|2.0|2015-01-08|* Release}}

Revision as of 05:08, 13 April 2016

API ScriptAuthor: Brian
Version: 2.5
Last Modified: 2016-04-09
Code: Raise Count
Dependencies: Interpreted sendChat, splitArgs
Conflicts: None

Raise Count creates the API command !rc, which rolls dice and counts the number of raises for the Savage Worlds game system.

Syntax

!rc <roll> <target>
Formally:

S → !rc dice expression integer
dice expressionroll
dice expressiondice expressionmodifier
dice expression → {expression list}group modifier
dice expressiondice expression operator dice expression
dice expressionfunction(dice expression)
rollmath expressiondf
rollmath expressiondmath expression
math expressioninteger
math expression → (math expression operator math expression)
operator → +
operator → -
operator → *
operator → /
function → floor
function → ceil
function → round
function → abs
modifiercompare
modifier → fcompare
modifier → !compare
modifier → !!compare
modifier → !pcompare
modifier → rcompare
modifier → rocompare
modifierkeep-drop
modifier → s
modifier → sd
compare → ε
compareinteger
compare → >integer
compare → <integer
keep-dropkeep
keep-dropkeepinteger
keep-dropdrop
keep-dropdropinteger
keep → k
keep → kh
keep → kl
drop → d
drop → dh
drop → dl
expression listdice expression, rest expression list
rest expression listdice expression
rest expression listexpression list
group modifierkeep-drop
group modifiercompare
group modifier → fcompare

Parameter Values
roll A dice roll, using Roll20's normal syntax. Do not include the /r command or inline brackets ([[ and ]]).
target The target number for the roll. The number of raises will be calculated against this target.

Installation

The format of the output can be customized by altering Output Format. You may use the placeholders {0}, {1}, and {2} in the Output Format string, which will become an inline roll, the value of target, and the number of raises, respectively.

You can change the size of a raise use to calculate the number of raises by altering the value of Raise Size.

Changelog

v2.5 (2016-04-12)

  • Update globalconfig support


v2.4 (2016-03-09)

  • Update for one-click install


v2.3 (2015-05-20)

  • Handle changes to inlinerolls handling on dev server


v2.2 (2015-01-24)

  • [bugfix] no-arg crash


v2.1 (2015-01-22)

  • Fixed transcription error


v2.0 (2015-01-08)

  • Release