Barotrauma

Barotrauma

Not enough ratings
Roll 1d20
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
41.022 KB
22 Dec, 2024 @ 4:23am
29 Dec, 2024 @ 10:06am
3 Change Notes ( view )

Subscribe to download
Roll 1d20

Description
Command: roll [dice] [buff] [debuff]

Description:
Rolls a specified dice type and optionally applies a buff and a debuff. Buff and debuff values can be flat numbers, dice rolls, or a combination of both.

Parameters:
1. [dice] (optional, default: "1d20") - Specifies the dice to roll. Format: [rolls]d[sides].
Example: "1d20" rolls one 20-sided dice.

2. [buff] (optional, default: "0") - Adds a positive modifier to the roll. Can be:
- A flat number: "5"
- A dice roll: "2d6"
- A combination: "5+1d6" (adds 5 and rolls one 6-sided dice).

3. [debuff] (optional, default: "0") - Subtracts a negative modifier from the roll. Format is the same as for [buff].

Output:
- Displays the original roll, the calculated buff and debuff, and the final total.
- Highlights the roll and total in appropriate colors:
- Red for low values.
- Yellow for middle values.
- Green for high values.

Examples:
1. roll
Rolls a single 1d20 and displays the result.

2. roll 2d10
Rolls two 10-sided dice and displays the result.

3. roll 1d20 5
Rolls a 1d20 with a flat buff of 5.

4. roll 1d20 1d6
Rolls a 1d20 with an additional roll of 1d6 as buff.

5. roll 1d20 5+1d6 2d4
Rolls a 1d20, adds a flat buff of 5, adds the result of 1d6, and subtracts the result of 2d4 as debuff.