interface D20RollOptions {
    bonus?: string | number;
    check?: boolean;
    critical?: number;
    flavor?: string;
    misfire?: number;
    rollMode?: string;
    staticRoll?: null | number;
}

Hierarchy (view full)

Properties

bonus?: string | number

An additional bonus to be added to the roll.

check?: boolean

Is this actually a check.

true

critical?: number

The number on the d20 that is considered a critical success.

20

flavor?: string

The flavor of the roll

misfire?: number

The number and below on the d20 that is considered a misfire.

rollMode?: string

The rollMode with which the chat message is created.

game.settings.get("core", "rollMode")

staticRoll?: null | number

A number used as a static roll result of the d20. If null, the d20 is rolled normally and the result is used.

null