https://dice.adamw.uk/
How to use
Rolling a die
Click one of the buttons at the top to roll that die.
Rolling multiple dice at once
Click the ⚙️⬇️ button and change the number in the “Roll this many” field to set the number of dice to be rolled with each click.
Re-rolling a die
Click a die's number to re-roll it.
Re-rolling all your dice at once
Click the 🔃 button.
Custom dice
To add a custom die, click the ⚙️⬇️ button to open settings, type the number of sides you want the custom die to have in the “Add custom die” field, then press enter or click +.
Hiding default dice
To show or hide the default dice (shown by default) click the ⚙️⬇️ button and check or uncheck “Enable default dice”.
Removing a die
Click a die's delete button - to remove it.
Removing all dice
Click the 🗑️ button to remove all dice.
Why is a die highlighted in gold?
That's a natural 20! Nice one.
Why don't the dice make sounds?
A good question. Of course, click-clack number rocks should click-clack. To turn on sounds, add ?sound=true
to the URL, e.g. https://dice.adamw.uk/?sound=true. This will also enable fun sound effects for d20 rolls of 20 and 1.
I've enabled sounds. Now a weird sound is played if I roll a 1 on a d20. Why?
This is the critical failure sound! If your DM doesn't care that you rolled a natural 1 then you can ignore it - there aren't any "official" D&D 5e rules about it. However, lots of DMs like to have fun with players who roll a natural 1. In the same way as rolling a 20 on a d20 is a critical hit or a critical success, this might be called a "critical failure".
I use the serif font option in my Notion character sheet!
Nice, so do I. The dice roller can account for this - just add ?font=serif
to the URL, e.g. https://dice.adamw.uk/?font=serif.
If you want to use both sounds and the serif font, the URL would be https://dice.adamw.uk/?sound=true&font=serif.
The dice roller is implemented into Notion using a standard Embed block. There's no way for Notion to pass through its own dark mode setting to embedded web apps like this one, so if you have manually set Notion to light or dark mode, the dice roller might not match.
Instead, I recommend setting Notion's appearance setting to "Use system setting". This will make Notion follow your operating system or browser's dark mode switch, and the dice roller automatically does the same - so they should appear to be in sync with one another if you use this setting.
Manually setting colour scheme
If you want to manually set the colour scheme to light or dark and disregard your system preference, this can be done by adding a color-scheme
parameter to the URL equal to either light
or dark
. For example, to make it always light even if your operating system is in dark mode, the URL would be https://dice.adamw.uk/?color-scheme=light. As before, this can be combined with other parameters, like https://dice.adamw.uk/?font=serif&color-scheme=light.
How do I know the rolls are fair?
See Technical stuff for information on how the rolls are generated.
Changelog
January 29, 2024
- New! The “Enable default dice” checkbox found in the config panel ⚙️⬇️ allows you to show or hide the default dice.
September 14, 2022
June 5, 2022
- New! By request, I’ve add a button ❌ to hide the survey link. If you click this, it will be moved into the config panel ⚙️⬇️. The state for this is stored in local storage, so it should persist until you clear the data for this site.
May 27, 2022
- New! Reroll all dice button 🔃 for rerolling all your dice at once. Thanks to the person who suggested this feature via the survey link!
- Tweak! The top row of buttons has been moved to the left of the statistics display — this is so the buttons don’t move around under your cursor as the statistics change in width.
- Tweak! Tooltips for all buttons to explain their function (hover over each button to see them).
- Tweak! More massive performance improvements. Adding and rerolling large numbers of dice is now even faster. Try rolling, like, 10,000 dice. It won’t crash any more.
May 25, 2022
- New! There’s now an option to add custom dice with any number of sides. Click the ⚙️⬇️ button to find it!
- Tweak! The 🔢⬇️ button has been relabelled ⚙️⬇️, as it now contains more configuration than just adjusting how many dice to roll.
- Tweak! Huge performance improvements to the add die function. Adding large numbers of dice should be much, much faster now.
May 23, 2022
- New! There’s now an input field to set how many dice you want to roll at once! Click 🔢⬇️ to reveal it.
- Tweak! Massive performance improvements to the delete all 🗑️ function.
March 8, 2022
December 17, 2021
- Tweak! Now uses Netlify for hosting instead of Cloudflare Pages. Cloudflare Pages has greater allowances on the free plan, but the build times suck (2+ minutes vs. a few seconds on Netlify).
- Fix! Don't mark a d100 as a nat 20 if it rolls 20 when rerolled.
- Fix! Construct totals properly after loading dice from local storage.
December 15, 2021
- New! Add d100.
- Tweak! Move the 🗑️ and ❔ buttons next to the totals. Better use of space!
- Fix! If there is only 1 die rolled, and you remove it using its own remove button instead of the 🗑️ button, local storage will be properly cleared so when you refresh the page the die won't come back.
August 20, 2021
- Tweak! Change info link to account for new Notion public page URLs.
June 21, 2021
- Tweak! Improve visibility for button focus when using a keyboard to navigate.
June 16, 2021
- New! Add a link to this page to the app (the ❔ button next to the 🗑️ button).
June 14, 2021
- New! Your rolls will now be remembered when the page is refreshed - useful if you want to check something else on Notion and still be able to refer to your last roll! To clear your rolls, just click the 🗑️ button.
June 6, 2021
- New! Critical failure sound. If you roll a 1 on a d20 and have sound turned on, you will here a critical failure sound. I hope this makes you feel better about yourself.
- Fix! Only rolls of 20 will be highlighted as critical successes. Previously, any die that rolled the highest number possible for that die would be highlighted as a critical success - that wasn't right, only d20s should do this.
May 18, 2021
- Tweak! Font size is now a little smaller, to better fit in with how Notion looks.
May 17, 2021
- New! Added support for using a serif font instead of the default sans serif. If you use the serif font in your character sheet, the dice roller will now fit in much better. To use this, add a
&font=serif
parameter to the URL of the embed, e.g. https://dice.adamw.uk/?sound=true&font=serif.
May 3, 2021
- New! Critical success highlighting. If you roll a 20 with a d20, the die will be highlighted in gold. If you have sound enabled, a critical hit sound will play. (It feels so good when this happens.)
- New! Remove all dice button. A 🗑️ button has been added. Clicking this removes all existing dice.
- Tweak! Improved button styling. Styling for buttons has been tweaked and prettified to better fit in with how buttons look in Notion. The app now feels super native.