Template:Dice add to roll

From Caves of Qud Wiki
Jump to navigation Jump to search

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

Example 3

{{dice add to roll|2|1}}

3

Example 4

{{dice add to roll|1d8-2|1}}

1d8-1

Example 5

{{dice add to roll|1d12-1|1}}

1d12