Difference between revisions of "User:Paxed/Template:dicemin"
Jump to navigation
Jump to search
m |
m |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <onlyinclude><includeonly> | + | <onlyinclude><includeonly>{{#expr: {{#if:{{#explode:{{{1}}}|d|0}}|{{#explode:{{{1}}}|d|0}}|1}} {{#if: {{#pos:{{#explode:{{{1}}}|d|1}}|+}} | {{#sub: {{#explode:{{{1}}}|d|1}} | {{#pos:{{#explode:{{{1}}}|d|1}}|+}} }} | }} {{#if: {{#pos:{{#explode:{{{1}}}|d|1}}|-}} | {{#sub: {{#explode:{{{1}}}|d|1}} | {{#pos:{{#explode:{{{1}}}|d|1}}|-}} }} | }} }}</includeonly></onlyinclude> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </includeonly></onlyinclude> | ||
This template returns the minimum 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:dicemax]]. | This template returns the minimum 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:dicemax]]. | ||
Line 21: | Line 11: | ||
Output: | Output: | ||
− | *<tt><nowiki>{{dicemin| | + | *<tt><nowiki>{{dicemin|4}}</nowiki></tt> shows <tt>{{:User:Paxed/Template:dicemin|4}}</tt> |
− | *<tt><nowiki>{{dicemin| | + | *<tt><nowiki>{{dicemin|-4}}</nowiki></tt> shows <tt>{{:User:Paxed/Template:dicemin|-4}}</tt> |
− | *<tt><nowiki>{{dicemin| | + | *<tt><nowiki>{{dicemin|4d}}</nowiki></tt> shows <tt>{{:User:Paxed/Template:dicemin|4d}}</tt> |
− | + | *<tt><nowiki>{{dicemin|d4}}</nowiki></tt> shows <tt>{{:User:Paxed/Template:dicemin|d4}}</tt> | |
− | <nowiki> | + | *<tt><nowiki>{{dicemin|1d6}}</nowiki></tt> shows <tt>{{:User:Paxed/Template:dicemin|1d6}}</tt> |
− | {{ | + | *<tt><nowiki>{{dicemin|2d10}}</nowiki></tt> shows <tt>{{:User:Paxed/Template:dicemin|2d10}}</tt> |
− | + | *<tt><nowiki>{{dicemin|3d8}}</nowiki></tt> shows <tt>{{:User:Paxed/Template:dicemin|3d8}}</tt> | |
− | + | *<tt><nowiki>{{dicemin|1d8+5}}</nowiki></tt> shows <tt>{{:User:Paxed/Template:dicemin|1d8+5}}</tt> | |
− | + | *<tt><nowiki>{{dicemin|2d4-1}}</nowiki></tt> shows <tt>{{:User:Paxed/Template:dicemin|2d4-1}}</tt> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{ | ||
− | |||
− | |||
− | </ |
Latest revision as of 18:31, 4 March 2008
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. See also User:Paxed/Template:dicemax.
Usage: {{dicemin|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 added after the diceroll. Use only simple plusses or minuses here!
Output:
- {{dicemin|4}} shows 4
- {{dicemin|-4}} shows -4
- {{dicemin|4d}} shows 4
- {{dicemin|d4}} shows 1
- {{dicemin|1d6}} shows 1
- {{dicemin|2d10}} shows 2
- {{dicemin|3d8}} shows 3
- {{dicemin|1d8+5}} shows 6
- {{dicemin|2d4-1}} shows 1