Post by blaird on Jul 14, 2021 6:35:39 GMT -8
I've been asked a few times to make the die roller roll something other than a d6. The syntax to do so has been updated as follows:
e6bozkPe
where range specifies the range of the roll.
In all cases the plugin ignores whitespace and quotes, hence is the same as range is the same as range.
Supported syntaxes for the range are:
Syntax Description Added in... Example(s)
low-high
rolls a single die with face values between low and high inclusive 1.0.0
10-20
1-6
dS
rolls a single die with S faces valued from 1 to S; the roll is followed* by = total, where total is the face value of the die
1.0.3
d6
d100
NdS
rolls N dice, where each die has S faces valued from 1 to S; the roll is followed* by = total, where total is the sum of all face values of the dice
1.0.3
3d6
5d2
S+F
rolls a single die with S faces valued from 1 to S; the roll is followed* by + F = total, where F is a positive offset, and where total is the sum of the face value of the die and F; if F is zero (0), this syntax is identical to dS
1.0.1
5+5
60+25
NdS+F
rolls N dice, where each die has S faces valued from 1 to S; the roll is followed* by + F = total, where F is a positive offset, and where total is the sum of all face values of the dice and F; if F is zero (0), this syntax is identical to NdS
1.0.1
4d6+2
5d20+20
NdS-F
rolls N dice, where each die has S faces valued from 1 to S; the roll is followed* by - F = total, where F is a positive offset, and where total is the sum of all face values of the dice minus F**; if F is zero (0), this syntax is identical to NdS
1.0.1
4d6-2
5d21-5
*This can be suppressed using the 'nosum' tweak.
**Note that the total can go negative if F > N.
Update to v1.1.6
- fixed bug where dice values appeared inconsistent across different browsers
···range·range
e6bozkPe
where range specifies the range of the roll.
In all cases the plugin ignores whitespace and quotes, hence is the same as range is the same as range.
Supported syntaxes for the range are:
Syntax Description Added in... Example(s)
low-high
rolls a single die with face values between low and high inclusive 1.0.0
10-20
1-6
dS
rolls a single die with S faces valued from 1 to S; the roll is followed* by = total, where total is the face value of the die
1.0.3
d6
d100
NdS
rolls N dice, where each die has S faces valued from 1 to S; the roll is followed* by = total, where total is the sum of all face values of the dice
1.0.3
3d6
5d2
S+F
rolls a single die with S faces valued from 1 to S; the roll is followed* by + F = total, where F is a positive offset, and where total is the sum of the face value of the die and F; if F is zero (0), this syntax is identical to dS
1.0.1
5+5
60+25
NdS+F
rolls N dice, where each die has S faces valued from 1 to S; the roll is followed* by + F = total, where F is a positive offset, and where total is the sum of all face values of the dice and F; if F is zero (0), this syntax is identical to NdS
1.0.1
4d6+2
5d20+20
NdS-F
rolls N dice, where each die has S faces valued from 1 to S; the roll is followed* by - F = total, where F is a positive offset, and where total is the sum of all face values of the dice minus F**; if F is zero (0), this syntax is identical to NdS
1.0.1
4d6-2
5d21-5
*This can be suppressed using the 'nosum' tweak.
**Note that the total can go negative if F > N.
Update to v1.1.6
- fixed bug where dice values appeared inconsistent across different browsers
···range·range