Template:Dice
Jump to navigation
Jump to search
Outputs a damage number. Primarily used for large tables where lots of numbers repeat (or nearly repeat). Call as follows:
{{Dice}}
Parameters (first two are MANDATORY):
- (unnamed1) = number of dice to roll. E.g. 2d6 would require a "2" here.
- d = the die size (values: 4, 6, 8, 10, 12, 20). Do not add a "d" here; just the number.
- add = any adder you wish to apply. Do not include the "+".
- You can also use "x1", "x2", "x3", etc. in this field to add a multiple of the number of dice being rolled. E.g. 2d6+4 would use "x2" (no quotes) to add twice the number of dice rolled.
Examples:
- {{dice|2|d=6|add=x2}} - yields: 2d6+4
- {{dice|3|d=4|add=20}} - yields: 3d4+20
- {{dice|7|d=8}} - yields: 7d8