Difference between revisions of "Script:Savage Worlds - Raise Count"
From Roll20 Wiki
m (235259 moved page User:235259/Raise Count to Script:Raise Count) |
Andreas J. (Talk | contribs) m (1223200 moved page Script:Raise Count to Script:Savage Worlds - Raise Count: API was renamed) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{script overview | |
+ | |name=Raise Count | ||
+ | |author={{user profile|235259|Brian}} | ||
+ | |version=2.6 | ||
+ | |dependencies={{api repository link|Interpreted sendChat}}, {{api repository link|splitArgs}} | ||
+ | |lastmodified=2016-08-01}} | ||
− | + | '''Raise Count''' creates the API command <code>!rc</code>, which rolls dice and counts the number of raises for the [[Savage Worlds]] game system. | |
− | + | <br clear="all"> | |
− | {| | + | === Syntax === |
− | | | + | {{syntaxbox top|Raise Count|formal=true}} |
− | + | {{API command|rc}} {{API parameter|name=roll}} {{API parameter|name=target}} | |
− | + | {{Formal API command| | |
− | | | + | {{token|S}} {{rarr}} {{API command|rc}} {{token|dice expression}} {{integer|-}} |
− | | | + | {{dice expression}} |
− | | | + | }} |
− | |- | + | {{syntaxbox end}} |
− | + | ||
− | + | ||
− | + | ||
− | == | + | {{param description top}} |
− | < | + | {{param description|name=roll|value=A dice roll, using Roll20's normal syntax. Do '''not''' include the <code>/r</code> command or inline brackets (<nowiki>[[ and ]]</nowiki>).}} |
− | + | {{param description|name=target|value=The target number for the roll. The number of raises will be calculated against this target.}} | |
+ | {{param description bottom}} | ||
− | + | === Installation === | |
− | + | 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. | |
− | // Output | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | 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 version|2.6|2016-08-01|* Corrected reported ReferenceError | |
− | + | * Corrected output styling}} | |
− | + | {{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.2|2015-01-24|* [bugfix] no-arg crash}} | |
− | + | {{changelog version|2.1|2015-01-22|* Fixed transcription error}} | |
− | + | {{changelog version|2.0|2015-01-08|* Release}} | |
− | + | ||
− | } | + | |
− | + | ||
− | + | [[Category:Savage Worlds]] | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | [[Category: | + |
Latest revision as of 09:19, 17 January 2022
Version: 2.6
Last Modified: 2016-08-01
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.
[edit] Syntax
!rc <roll> <target>Formally:
S
→ !rcdice expression
integer
dice expression
→roll
dice expression
→dice expression
modifier
dice expression
→ {expression list
}
group modifier
dice expression
→dice expression
operator
dice expression
dice expression
→function
(
dice expression
)
roll
→math expression
df
roll
→math expression
d
math expression
math expression
→ integer
math expression
→ (math expression
operator
math expression
)
operator
→ +
operator
→ -
operator
→ *
operator
→ /
function
→ floor
function
→ ceil
function
→ round
function
→ abs
modifier
→compare
modifier
→ fcompare
modifier
→ !compare
modifier
→ !!compare
modifier
→ !pcompare
modifier
→ rcompare
modifier
→ rocompare
modifier
→keep-drop
modifier
→ s
modifier
→ sd
compare
→ ε
compare
→ integer
compare
→ >integer
compare
→ <integer
keep-drop
→keep
keep-drop
→keep
integer
keep-drop
→drop
keep-drop
→drop
integer
keep
→ k
keep
→ kh
keep
→ kl
drop
→ d
drop
→ dh
drop
→ dl
expression list
→dice expression
,
rest expression list
rest expression list
→dice expression
rest expression list
→expression list
group modifier
→keep-drop
group modifier
→compare
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. |
[edit] 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
.
[edit] Changelog
v2.6 (2016-08-01)
- Corrected reported ReferenceError
- Corrected output styling
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