A common data object used to store and share data between stages of an action's usage.

Hierarchy

  • SharedActionData

Properties

action: ItemAction

The ItemAction this use is based on

attackBonus: string[]

Bonus values to be added to the attack roll formula

attacks: ActionUseAttack[]

Array of attacks

casterLevelCheck: boolean
chatAttacks: ChatAttack[]

Array of chat attacks for this action's use

chatData: object

Data to be passed to ChatMessage.create, excluding content rendered using templateData and template.

chatMessage: boolean

Whether a chat message should be created at the end of the action's usage. Defaults to true.

chatTemplate: undefined | string

The template to be used for the creation of the chat message.

concentrationCheck: boolean
conditionalPartsCommon: object
conditionals: null | object[]
damageBonus: string[]

Bonus values to be added to the damage roll formula

dice: string

The base dice used for the action's attack rolls. Defaults to return value of pf1.dice.D20RollPF.standardRoll.

event: null | Event

The event that triggered the action. Defaults to null.

fullAttack: boolean

Whether the action is a full attack. Defaults to true.

item: ItemPF

The ItemPF this use is based on

message: ChatMessage

Chat message once it is created.

rollData: object

The singular rollData object used for all rolls in the action

rollMode: string

The roll mode to be used for the creation of the chat message. Defaults to the core.rollMode setting.

scriptData: object
skipDialog: boolean

Whether the user-facing dialog should get skipped. Defaults to false.

targets: Token[]

Targeted tokens

template: MeasuredTemplateDocument

Template document.

templateData: object

Data used to render the chat card, passed to foundry.utils.renderTemplate.

useMeasureTemplate: boolean

Whether to use a measure template

Generated using TypeDoc