Qdr /

Roll again

Qdr.Reroll History

Hide minor edits - Show changes to output

Changed line 16 from:
@@boundary@@: The lower value to obtain with ''roll'' trigger another roll.\\
to:
@@boundary@@: Boundary value. Another roll is triggered if the result of ''roll'' is lower or equal to this value.\\
Changed lines 22-24 from:
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''.
to:
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''.
Changed lines 27-36 from:
TO BE FIXED
The formula
@@expUp(1d10)@@ is the same as @@expUp(1d10, 10, 1d10, 10, 0)@@.\\
Some results generated by @@expUp(1d10, 10, 1d10-1, 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

to:
Some results generated by @@reroll(1d6, 2, 1)@@:\\
[6] = 6\\
[1»4] = 4
(each "»" denotes an extra roll)\\
[2»2] = 2
Changed line 33 from:
Supported since Quick Dice Roller {$:sinceVersion}
to:
Supported since Quick Dice Roller {$:sinceVersion}
Added lines 1-38:
(: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 :)


{$:Summary}

! Usage
:Format: {$:format}

: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, 1d10-1, 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 {$:sinceVersion}
Page last modified on September 08, 2015, at 11:01 PM