How to embed rollable dice into your article in Gamemastering Knowledge Base | World Anvil

How to embed rollable dice into your article

Interactive dice roll buttons are a great way to make your articles more engaging in an RPG setting! On World Anvil, you can easily add rollable dice with support for most systems. Here's how!

 

How to create a dice roller

Dice rollers are generated with a BBCode tag. Take a look at this example:

 
[roll:3d10]
3d10
If this was on a World Anvil world, you would see a notification on the bottom left corner of the screen with the roll result.
 
[roll:3d10|Click me!]
Click me!
If this was on a World Anvil world, you would see a notification on the bottom left corner of the screen with the roll result.
 

As you can see, it's pretty simple. Just type the [roll:...] tag with the dice formula inside. And if you want to change the button label, just write it after a | pipe character.

 

Basic dice notation

World Anvil's dice system supports a large variety of formulas you can use to represent rolls in pretty much every RPG system. The basic dice notation is AdT, where A is the amount of dice and T is the die type. Here are some examples:

 
Code example Description
[roll:3d8] Rolls three 8-sided dice. It displays both the individual results and their sum.
[roll:1d%] Rolls a percentile die (d100).
[roll:2dF] Rolls a Fudge dice (6-sided dice whose values are 1, 1, -1, -1, 0 & 0).
[roll:3d4+5] or [roll:3d4-5] Rolls the specified dice, then adds or subtracts the given modifier.
[roll:3d4!] Exploding dice (dice that roll their maximum value are re-rolled).
[roll:3d8min3] Results lower than 3 are raised to 3.
[roll:3d8max5] Results higher than 5 are lowered to 5.
 

World Anvil's dice roller uses GreenImp's Dice Roller system. Check out their guide for even more options!