Template:Dice add to roll

Revision as of 19:02, 3 October 2021 by Egocarib (talk | contribs) (Created page with "<includeonly>{{#if:{{#pos:{{{1}}}|+}} |{{#explode:{{{1}}}|+|0}}+{{#expr:{{#explode:{{{1}}}|+|1}}+{{{2}}}}} |{{{1}}}+{{{2}}} }}</includeonly><noinclude> Adds an integer to a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Adds an integer to a dice roll, merging it into the existing added value if present.

Example 1

{{dice add to roll|1d2|3}}

1d2+3

Example 2

{{dice add to roll|3d2+1|1}}

3d2+2