Difference between revisions of "User:Paxed/Template:dicemax"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
<onlyinclude><includeonly>{{#if: {{#pos:{{{1}}}|d}} |{{#expr:{{#if:{{#explode:{{{1}}}|d|0}}|{{#explode:{{{1}}}|d|0}}|1}}*{{#explode:{{{1}}}|d|1}}}} |{{{1}}} }}</includeonly></onlyinclude> | <onlyinclude><includeonly>{{#if: {{#pos:{{{1}}}|d}} |{{#expr:{{#if:{{#explode:{{{1}}}|d|0}}|{{#explode:{{{1}}}|d|0}}|1}}*{{#explode:{{{1}}}|d|1}}}} |{{{1}}} }}</includeonly></onlyinclude> | ||
− | This template returns the maximum value a die roll in the standard [[d notation|d-notation]] can give. This cannot handle more than one d-notation, so no <tt>1d6+1d4</tt>. | + | This template returns the maximum value a die roll in the standard [[d notation|d-notation]] can give. This cannot handle more than one d-notation, so no <tt>1d6+1d4</tt>. See also [[User:Paxed/Template:dicemin]]. |
Usage: <tt><nowiki>{{dicemax|AdB+C}}</nowiki></tt> | Usage: <tt><nowiki>{{dicemax|AdB+C}}</nowiki></tt> |
Revision as of 18:29, 4 March 2008
This template returns the maximum value a die roll in the standard d-notation can give. This cannot handle more than one d-notation, so no 1d6+1d4. See also User:Paxed/Template:dicemin.
Usage: {{dicemax|AdB+C}}
Where:
- A is the number of dice to be rolled.
- B is the number of sides the dices have.
- C is an optional modifier. Should be a simple integer, either plus or minus.
Output:
- {{dicemax|4}} shows 4
- {{dicemax|-4}} shows -4
- {{dicemax|4d}} shows Expression error: Missing operand for *.
- {{dicemax|d4}} shows 4
- {{dicemax|1d6}} shows 6
- {{dicemax|2d10}} shows 20
- {{dicemax|3d8}} shows 24
- {{dicemax|1d8+5}} shows 13
- {{dicemax|2d4-1}} shows 7