Qdr /

(Obsolete) Exploding Upward

Qdr.ExplodeUp History

Hide minor edits - Show changes to output

Added lines 1-39:
(:title (Obsolete) Exploding Upward:)
(:category: ObsoleteFunction :)
(:Summary: Make an exploding roll using a threshold to tell if the roll explodes or not. :)
(:format: @@explodeUp(roll, threshold)@@ :)
(:sinceVersion: 1.2.0 :)
(:lastVersion: 2.0.0 :)

{$:Summary}

! Usage
:Format: {$:format}

:Parameters: \
@@roll@@: A formula representing the dice to explode. Must be an indeterministic formula.\\
@@threshold@@: A threshold used to determine if the roll explodes or not.

:Returns: The value of ''roll'', eventually exploded. Read the description for further details.

! Description
''Note: this function is obsolete. Please use [[ExpUp|Exploding]] instead.''

Make an exploding roll using a threshold to tell if the roll explodes or not.

The ''threshold'' represents the number of probability that the explosion occurs. Thus, the explosion happens if ''roll'' is evaluated greater or equal to it's maximum minus (''threshold'' - 1).

When the roll explodes, is evaluated again and added to the previous result. The new roll can explode again.

If ''roll'' is a fixed value or if its range is too short (ex. 1d2), exp simply returns the value of roll to avoid loops.

! Examples
The formula @@explodeUp(1d100,5)@@ will explode for values 96,97,98,99,100.\\
[88] = 88\\
[96,12] = 108\\
[99,100,36] = 235\\
[98,5] = 103\\

! History
Supported since Quick Dice Roller {$:sinceVersion}\\
Obsolete since Quick Dice Roller {$:lastVersion} - use [[ExpUp|Exploding]].
Page last modified on October 23, 2014, at 06:51 PM