Difference between revisions of "User:Yenwood/Sandbox/Template:Dice"

From DDO Compendium
Line 1: Line 1:
  <nowiki>{{{1}}} = amount of dice
  <nowiki>{{{1}}} = amount of dice
{{{2}}} = side of dice
{{{2}}} = side of dice
{{{3}}} = (optional) number to add
{{{3}}} = (optional) number to add, default 0
{{{4}}} = (optional) multiplier (multiplies base roll)
{{{4}}} = (optional) multiplier (multiplies base roll), default 1


Example:
Example:
1.25[2d8] + 6  
1.25[2d8] + 6  
{{Dice | 2 | 8 | 6 | 1.25}}</nowiki>
{{Dice | 2 | 8 | 6 | 1.25}}
 
 
{{#bootstrap_tooltip: {{{1}}}d{{{2}}} | text = {{{1}}} - {{#expr:{{{1}}}*{{{2}}}}} | placement = bottom }}
 
{{#bootstrap_tooltip: {{{1}}}d{{{2}}} + {{{3}}} | text = {{#expr:{{{1}}}+{{{3}}}}} - {{#expr:{{{1}}}*{{{2}}}+{{{3}}}}} | placement = bottom }}
 
{{#bootstrap_tooltip: {{{4}}}[{{{1}}}d{{{2}}}] + {{{3}}} | text = {{#expr:({{{1}}}+{{{3}}})*{{{4}}}}} - {{#expr:({{{1}}}*{{{2}}}+{{{3}}})*{{{4}}}}} | placement = bottom }}</nowiki>


<onlyinclude>
<onlyinclude>
{{#bootstrap_tooltip: {{{1}}}d{{{2}}} | text = {{{1}}}-{{#expr:{{{1}}}*{{{2}}}}} | placement = bottom }}
{{#bootstrap_tooltip: {{{4}}}[{{{1}}}d{{{2}}}] + {{{3}}} | text = {{#expr:({{{1}}}+{{{3}}})*{{{4}}}}} - {{#expr:({{{1}}}*{{{2}}}+{{{3}}})*{{{4}}}}} | placement = bottom }}
</onlyinclude>
</onlyinclude>

Revision as of 17:34, 30 April 2018

{{{1}}} = amount of dice
{{{2}}} = side of dice
{{{3}}} = (optional) number to add, default 0
{{{4}}} = (optional) multiplier (multiplies base roll), default 1

Example:
1.25[2d8] + 6 
{{Dice | 2 | 8 | 6 | 1.25}}


{{#bootstrap_tooltip: {{{1}}}d{{{2}}} | text = {{{1}}} - {{#expr:{{{1}}}*{{{2}}}}} | placement = bottom }}

{{#bootstrap_tooltip: {{{1}}}d{{{2}}} + {{{3}}} | text = {{#expr:{{{1}}}+{{{3}}}}} - {{#expr:{{{1}}}*{{{2}}}+{{{3}}}}} | placement = bottom }}

{{#bootstrap_tooltip: {{{4}}}[{{{1}}}d{{{2}}}] + {{{3}}} | text = {{#expr:({{{1}}}+{{{3}}})*{{{4}}}}} - {{#expr:({{{1}}}*{{{2}}}+{{{3}}})*{{{4}}}}} | placement = bottom }}


{{{4}}}[{{{1}}}d{{{2}}}] + {{{3}}}