lutfenbot Help

/roll

The /roll command allows users to roll dice using common role-playing-game syntax.

Parameters

d

the dice directive

Syntax

Basic dice rolls are expressed as XdY where X is the number of dice to roll and Y is the number of sides on each die. If X is omitted, it is assumed to be 1, e.g. d6 is equivalent to 1d6.

Drops are expressed using the letter D, followed optionally by the either the letter H to denote dropping the highest rolls, or the letter L to denote dropping the lowest rolls; followed by a number to denote the number of dice to drop. If H or L is omitted, the lowest rolls will be dropped by default.

Keeps are expressed using the letter K, followed optionally by the either the letter H to denote keeping the highest rolls, or the letter L to denote keeping the lowest rolls; followed by a number to denote the number of dice to keep. If H or L is omitted, the highest rolls will be kept by default.

Arithmetic operations can be used to combine or modify the results rolls. Operator precedence is not respected, the operations are performed from left to right.

Examples

2d6K1

Roll 2 6-sided dice and keep the highest roll.

4d8DL2

Roll 4 8-sided dice and drop the lowest 2 rolls.

2d20KH1 + 4

Roll 2 20-sided dice and add 4 to the highest roll.

Last modified: 06 November 2024