Dice Roller

Instructions

In general, you press a button and it rolls the roll on the button. The 'd20 adv' and 'd20 dis' buttons are for advantage and disadvantage. The d% button rolls 1-100, Yes/No is just a random yes or no, Direction is one of eight random compass directions, and Likert is a random value on a five point Likert scale from 'Strongly Against' to 'Strongly For'.

The text entry box in the top right adds a modifier to all of the numerical rolls above the other text entry box. You can enter a value as normal, or you can use the scroll wheel to increase or decrease the value. Double clicking on the value deletes it.

You can combine rolls with the shift and alt key. If you shift-click on a basic roll button, it adds the roll to the previous roll. If you alt-click on a basic roll button, it subtracts the roll from the previous roll.

The larger text entry box near the bottom allows you to enter in more complicated dice rolls. It can handle addition, subtraction, division, multiplication, powers, modulo, and parentheses for dice rolls and integers.

The basic syntax for a die roll in NdS, where N is the number of dice and S is how many sides each die has. For example, 3d6 would be three six-sided dice. If N is not supplied, it is assumed to be one. The syntax also allows for up to four modifiers to the die roll, each consisting of a letter and a numeric value. The letters for the modifiers are:

d
Drop a number of the lowest dice equal to the value.
h
Hold a number of the lowest dice equal to the value.
k
Keep a number of the highest dice equal to the value.
p
Pop (remove) a number of the higest dice equal to the value.
c
Count any roll equal to or higher than the value as a critical.
f
Count any roll equal to or lower than the value as a fumble.
r
Reroll (once) any roll equal to or lower than the value.
e
For each die in the original roll equal to or higher than the value, roll another die and add it to the total. This is often called exploding dice.

The last two rows of buttons (that start with 'TBD') are the recent rolls and the saved rolls. The first row of TBD buttons is the last four rolls made, not counting non-numeric rolls and immeditately repeated rolls. You can save these rolls to one of the recent rolls or by dragging a recent roll button onto one of the saved roll buttons, or by control-clicking on a recent roll.

The display at the bottom will show you the last five rolls. Criticals will be shown in red, and fumbles in white. You can hover over a result to see what dice were rolled to get the result.

Copyright 2023 Craig "Ichabod" O'Brien. Licensed under GPL v3.0. Mersenne Twister code Copyright 1997-2002 by Takuji Nishimura and Makoto Matsumoto. Javascript wrapper for Mersenne Twister code by Sean McCullough.