User:Paxed/Template:dicemin

From NetHackWiki
< User:Paxed
Revision as of 15:14, 4 March 2008 by Paxed (talk | contribs) (testing)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


This template returns the minimum value a die roll in the standard d-notation can give. This cannot handle more than one d-notation, so no 1d6+1d4.

Usage: {{dicemin|A|B|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 added after the diceroll.

Output:

  • {{dicemin|1|6}} gives 1
  • {{dicemin|2|10|5}} gives 7
  • {{dicemin|3|8|-2}} gives 1