Difference between revisions of "Script:Savage Worlds - Raise Count"
From Roll20 Wiki
Line 2: | Line 2: | ||
|name=Raise Count | |name=Raise Count | ||
|author={{user profile|235259|Brian}} | |author={{user profile|235259|Brian}} | ||
− | |version=2. | + | |version=2.1 |
|lastmodified=2015-01-08}} | |lastmodified=2015-01-08}} | ||
Line 26: | Line 26: | ||
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>config.raiseSize</code>. | ||
+ | |||
+ | === Changelog === | ||
+ | {{changelog version|2.1|2015-01-22|* Fixed transcription error}} | ||
+ | {{changelog version|2.0|2015-01-08|* Release}} |
Revision as of 17:37, 22 January 2015
Version: 2.1
Last Modified: 2015-01-08
Code: Raise Count
Dependencies: None
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
→ !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. |
Installation
The format of the output can be customized by altering config.outputFormat
, found near the top of the script. You may use the placeholders {0}
, {1}
, and {2}
in the outputFormat
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 config.raiseSize
.
Changelog
v2.1 (2015-01-22)
- Fixed transcription error
v2.0 (2015-01-08)
- Release