## Qdr.Explode History

Hide minor edits - Show changes to output

Changed lines 20-21 from:

''Note: this function is obsolete. Please use [[Exp|~~Exploding/Collapsing~~]] instead.''

to:

''Note: this function is obsolete. Please use [[Exp|+]] instead.''

Changed line 43 from:

Obsolete since Quick Dice Roller {$:lastVersion} - use [[Exp|~~Exploding/Collapsing~~]].

to:

Obsolete since Quick Dice Roller {$:lastVersion} - use [[Exp|+]].

Changed line 2 from:

(:~~categoryz~~: ObsoleteFunction :)

to:

(:category: ObsoleteFunction :)

Changed line 2 from:

(:~~category~~: ObsoleteFunction :)

to:

(:categoryz: ObsoleteFunction :)

Deleted line 6:

Changed line 2 from:

(:category: ~~Function~~ :)

to:

(:category: ObsoleteFunction :)

Added lines 1-44:

(:title (Obsolete) Exploding:)

(:category: Function :)

(:Summary: Make an exploding/collapsing roll using a threshold. :)

(:format: @@explode(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 [[Exp|Exploding/Collapsing]] instead.''

Make an exploding/collapsing 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).

The same happens for lower values: if the value evaluated is minor or equal to roll's minimum value plus (''threshold'' - 1), the roll explodes downwards.

When the roll explodes, is evaluated again and added (or subtracted) 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 @@explode(1d100,5)@@ will explode upwards for values 96,97,98,99,100, while will explode downwards for the values 1,2,3,4,5.\\

[88] = 88\\

[96,12] = 108\\

[3,47] = -44\\

[99,100,36] = 235\\

[98,5,72] = 31\\

[100,4,96,62] = 70\\

! History

Supported since Quick Dice Roller {$:sinceVersion}\\

Obsolete since Quick Dice Roller {$:lastVersion} - use [[Exp|Exploding/Collapsing]].

(:category: Function :)

(:Summary: Make an exploding/collapsing roll using a threshold. :)

(:format: @@explode(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 [[Exp|Exploding/Collapsing]] instead.''

Make an exploding/collapsing 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).

The same happens for lower values: if the value evaluated is minor or equal to roll's minimum value plus (''threshold'' - 1), the roll explodes downwards.

When the roll explodes, is evaluated again and added (or subtracted) 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 @@explode(1d100,5)@@ will explode upwards for values 96,97,98,99,100, while will explode downwards for the values 1,2,3,4,5.\\

[88] = 88\\

[96,12] = 108\\

[3,47] = -44\\

[99,100,36] = 235\\

[98,5,72] = 31\\

[100,4,96,62] = 70\\

! History

Supported since Quick Dice Roller {$:sinceVersion}\\

Obsolete since Quick Dice Roller {$:lastVersion} - use [[Exp|Exploding/Collapsing]].

Page last modified on October 23, 2014, at 09:08 PM