Qdr /

Dystopian Wars

Qdr.Dwars History

Show minor edits - Show changes to output

Added lines 1-38:
(:title Dystopian Wars:)
(:category: Function :)
(:Summary: This function is used to support Dystopian Wars rules. :)
(:format: @@dwars(roll, poolSize, target, rollAgain)@@ :)
(:sinceVersion: 1.3.5 :)
(:lastVersion: 1.3.5 :)


{$:Summary}

! Usage
:Format: {$:format}

:Parameters: \
@@roll@@: The formula to be tested.\\
@@poolSize@@: Number of times ''roll'' is evaluated.\\
@@target@@: Value to reach with ''roll'' to obtain a success.\\
@@rollAgain@@: Value to reach to obtain an extra success and an extra roll.

:Returns: Number of times that ''roll'' is evaluated greater than or equal to ''target'' plus the number of times that roll is evaluated greater than or equal to ''rollAgain''.

! Description
This function is used to support '''Dystopian Wars''' rules.

The value of ''roll'' is evaluated ''poolSize'' times. Each time the value obtained is greater than or equal to ''target'', a success is achieved.

If the value obtained is greater or equal to ''rollAgain'', an extra success is achieved and a new roll is made.

The function returns the number of success totalized.

! Examples
Some results generated by @@dwars(1d6, 5, 4, 6)@@.\\
[4!,2,1,4!,1] = 2 (each "!" denotes a success)\\
[5!,3,3,3,1] = 1\\
[4!,4!,3,6!!»4!,2] = 5 (each "»" denotes an extra roll)\\

! History
Supported since Quick Dice Roller {$:sinceVersion}
Page last modified on October 21, 2014, at 09:27 PM