interface ActorRollOptions {
    bonus?: string | number;
    chatMessage?: boolean;
    dice?: string;
    messageData?: object;
    noSound?: boolean;
    rollMode?: string;
    skipDialog?: boolean;
    staticRoll?: null | number;
}

Hierarchy

  • Omit<D20ActorRollOptions,
        | "rollData"
        | "parts"
        | "subject"
        | "flavor"
        | "chatTemplateData"
        | "compendium"
        | "speaker">
    • ActorRollOptions

Properties

bonus?: string | number

An additional bonus to be added to the roll.

chatMessage?: boolean

Whether a chat message should be created.

true

dice?: string

The roll's d20 die (replacement), or the static result the d20 should have.

"1d20"

messageData?: object

Additional data to add to the chat message.

noSound?: boolean

Whether no dice sound should be played when the chat message is created.

false

rollMode?: string

The rollMode with which the chat message is created.

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

skipDialog?: boolean

Whether a user facing dialog should be shown.

true

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