User:Paxed/Template:dicemax

From NetHackWiki
< User:Paxed
Revision as of 15:48, 4 March 2008 by Paxed (talk | contribs)
Jump to navigation Jump to search


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.

Usage: {{dicemax|AdB}}

Where:

  • A is the number of dice to be rolled.
  • B is the number of sides the dices have.

Output:

  • {{dicemax|1d6}} shows 6
  • {{dicemax|2d10}} shows 20
  • {{dicemax|3d8}} shows 24
  • {{dicemax|1d8+5}} shows 13