Qdr /

Maximum

Qdr.Max History

Hide minor edits - Show changes to output

Added lines 1-32:
(:title Maximum:)
(:category: Function :)
(:Summary: Return the highest of two values. :)
(:format: @@max(firstRoll, secondRoll)@@ :)
(:sinceVersion: 1.2.0 :)
(:lastVersion: 2.0.0 :)


{$:Summary}

! Usage
:Format: {$:format}

:Parameters: \
@@firstRoll@@: First formula to be tested.\\
@@secondRoll@@: First formula to be tested.\\

:Returns: The highest value obtained.

! Description
The values of ''firstRoll'' and ''secondRoll'' are evaluated. The function returns the highest value obtained.

! Examples
The formula @@max(1d6-2, 1)@@ will generate values ranging from 1 to 4, but these value aren't balanced: there are 3 chances out of 6 to obtain a 1.\\
The formula @@max(1d10, 1d8)@@ will return the higher value obtained from a roll of 1d10 and a roll of 1d8:\\
[!8>5] = 8\\
[!9>6] = 9\\
[2<3!] = 3\\

! History
Supported since Quick Dice Roller {$:sinceVersion}\\
New output since Quick Dice Roller {$:lastVersion}
Page last modified on October 23, 2014, at 07:10 PM