# How do I roll dice?

Litphoria offers a flexible and easy way to roll dice. The feature is there mainly to support roleplaying game systems such as Dungeons and Dragons or Fate Core, but it can come in handy for any time you need some random numbers.

Inside of every roleplay, you'll see the `Roll Dice...`

button below your text entry box, to the right of the `Send Post`

button. Clicking it brings up a new box with four more buttons, `A Six-Sided Die`

, `4 Fudge Dice`

, `Nothing`

, and `Something Else`

.

The first button, `A Six-Sided Die`

, rolls a single die like the kind you use in Monopoly or Backgammon, with a result ranging from one to six, also known as a 1d6.

The second button, `4 Fudge Dice`

, rolls four special dice whose result can be -1, 0, or +1. These are use for the Fate roleplaying system, and more information can be found here.

The third button `Nothing`

simply closes the box, and the fourth button is where things get interesting.

## Rolling Custom Dice - Basic

Litphoria can roll more than regular six-sided dice and fudge dice. When you click the `Something Else`

button, you're given the chance to enter in a custom dice roll. For a dice roll, you use an XdY syntax, where X is the number of dice you want to roll, and Y is the size of the dice you are rolling. For example, if you want to roll two normal dice like in Monopoly, you would enter

2d6

That would roll two dice, each with six sides. If you're playing an rpg like D&D, you can roll the classic twenty-sided die by simply putting in

1d20

## Rolling Custom Dice - Arithmetic

Often, the final number you're looking for is not just the die, but with an extra bonus attached to it. Perhaps there's a bonus and a penalty, and you also get to roll an extra die. These kind of rolls are easy. Just enter them all together, connected through `+`

and `-`

signs. For instance,

1d20+5+1d6

will roll a twenty-sided die, a six-sided die, add the two together, and add five on top of that. Putting in

1d100-50

will roll a die with one hundred sides, then subtract fifty from the result.

## Rolling Custom Dice - Special

In addition to the normal dice and arithemitic functions, there are a few special commands you can use.

#### Verbose

Adding `v`

or `verbose`

will make the rolls more detailed. For instance, if you put in

4d6v

It will show something like `X rolls 4d6v and gets 11 ([2, 4, 1, 4])`

, showing you what each individual die landed on. If you wanted to roll multiple groups of dice, you'll need to add v to the end of each group. Inputting `4d6v+2d20`

would show you the sum and individual rolls of the d6s, but just the sum of the d20s.

#### Exploding Dice

Exploding dice are special. When you roll the highest number on an exploding die, you get to add another die to you roll. For instance, if you rolled 3d6 exploding dice and got (1,6, 6), you'd roll an extra 2d6 dice to your roll. If you want to roll an exploding die, simply add `!`

or `explode`

to your roll, like

10d10!

If you want your exploding dice to have the ability to explode, use `!2`

instead. If you want the dice to just keep exploding forever and forever, too bad. The maximum limit is `!1000`

.

#### Coin Flipping

If you want to flip some coins, you can simply use two-sided dice and designate a number as being heads or tails. *Or* you can use the special coin-flipping command, `c`

or `coin`

. Examples:

1c

Flips a coin, with a result like `X rolls one coin and gets 0! (Heads)`

## Named Rolls

If you want to make your custom rolls look a bit flashier by adding some text to a roll. This can be done by adding that text in quotes. For example,

1d20+50 "is rolling for initiative"

would show something along the lines of "X is rolling for initiative (*54*)"

## Known Issues

Named rolls only show the result of the formula and do not show what formula was used to get there. Because of this, others will have no way of knowing if a roll of 20 was reached by rolling 1d20, 1d10+10, or simply entering 20. In the near future, showing this information will be added in.

Related to this, adding basic text to a dice roll command will mess things up. If you enter a command like

1d20+5 rolling for initiative

then the parts not in quotes will reduce the whole group to 0, meaning that the roll you get will be 1d20 without the +5 bonus.