interface D20ActorRollOptions {
    bonus?: string | number;
    chatMessage?: boolean;
    chatTemplateData?: object;
    compendium?: {
        entry: string;
        type: string;
    };
    dice?: string;
    flavor?: string;
    messageData?: object;
    noSound?: boolean;
    parts?: string[];
    rollData?: object;
    rollMode?: string;
    skipDialog?: boolean;
    speaker?: PropertiesToSource<ChatSpeakerDataProperties>;
    staticRoll?: null | number;
    subject?: object;
}

Hierarchy

  • Pick<D20RollConstructorOptions, "flavor" | "bonus" | "staticRoll">
  • Pick<D20RollChatOptions,
        | "noSound"
        | "compendium"
        | "rollMode"
        | "chatTemplateData"
        | "subject"
        | "speaker">
    • D20ActorRollOptions

Properties

bonus?: string | number

An additional bonus to be added to the roll.

chatMessage?: boolean

Whether a chat message should be created.

true

chatTemplateData?: object

Additional data passed to the chat message's content's renderTemplate.

compendium?: {
    entry: string;
    type: string;
}

Data used to create a link to a compendium entry in the chat message.

dice?: string

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

"1d20"

flavor?: string

The flavor of the roll

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

parts?: string[]

An array of strings from which the roll's formula is created.

[]

rollData?: object

Data object the roll is evaluated against.

{}

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

speaker?: PropertiesToSource<ChatSpeakerDataProperties>

The speaker of the chat message.

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

subject?: object

Data stored in the chat message's flags to allow for easier identification of the message's subject.