Qdr.Reroll History
Hide minor edits  Show changes to markup
boundary
: The lower value to obtain with roll trigger another roll.\\
boundary
: Boundary value. Another roll is triggered if the result of roll is lower or equal to this value.\\
Rolls dice as long as the result is equal or below to a given value.
The value of roll is evaluated once. If its value is lesser or equal to boundary, roll is evaluated again and it's result replace the previous. This is done as long as the new result is lesser or equal to boundary and the number of new rolls is lesser to maxRoll.
Rolls dice as long as the result is lesser or equal to a given value.
The value of roll is evaluated once. If its value is lesser or equal to boundary, roll is evaluated again and it's result will replace the previous. This is done as long as the new result is lesser or equal to boundary and the number of new rolls is lesser to maxRoll.
TO BE FIXED
The formula expUp(1d10)
is the same as expUp(1d10, 10, 1d10, 10, 0)
.
Some results generated by expUp(1d10, 10, 1d101, 9, 0)
:
[8] = 8
[10»3] = 13 (each "»" denotes an extra roll)
[1»7] = 6
[10»9»6] = 25
[10»0] = 10
[10»9»9»6] = 34
Some results generated by reroll(1d6, 2, 1)
:
[6] = 6
[1»4] = 4 (each "»" denotes an extra roll)
[2»2] = 2
Supported since Quick Dice Roller 2.1.2
Supported since Quick Dice Roller 2.1.2
(:title Roll again:) (:category: Function :) (:Summary: Roll again if result is equal or below the boundary. :) (:format: @@reroll(roll, boundary, maxRoll)@@ :) (:sinceVersion: 2.1.2 :) (:lastVersion: 2.1.2 :)
Roll again if result is equal or below the boundary.
Usage
 Format

reroll(roll, boundary, maxRoll)
 Parameters

roll
: A formula representing the dice to roll. Must be an indeterministic formula.boundary
: The lower value to obtain with roll trigger another roll.maxRoll
: Maximum number of extra roll that can be triggered.  Returns
 The value of the last evaluation of ''roll'.
Description
Rolls dice as long as the result is equal or below to a given value.
The value of roll is evaluated once. If its value is lesser or equal to boundary, roll is evaluated again and it's result replace the previous. This is done as long as the new result is lesser or equal to boundary and the number of new rolls is lesser to maxRoll.
Examples
TO BE FIXED
The formula expUp(1d10)
is the same as expUp(1d10, 10, 1d10, 10, 0)
.
Some results generated by expUp(1d10, 10, 1d101, 9, 0)
:
[8] = 8
[10»3] = 13 (each "»" denotes an extra roll)
[1»7] = 6
[10»9»6] = 25
[10»0] = 10
[10»9»9»6] = 34
History
Supported since Quick Dice Roller 2.1.2