Body, Mind & Soul — API Reference
    Preparing search index...

    Function useItemAction

    • Use an action embedded in an item (Items tab). Reads the parent's consumesParentCharge flag and, on instant resolution, consumes one charge from the parent item.

      Config:

      • actor: the owning actor (ownership is checked by useEmbeddedAction).
      • parentItem: the item that embeds the action. Its id is the combat source id.
      • embeddedActionItem: the action to use, looked up from parentItem.actions by the caller.
      • busyElement: optional element disabled while the in-combat queue call runs.

      Parameters

      • options: {
            actor: any;
            busyElement?: BusyElement;
            embeddedActionItem: any;
            parentItem: any;
        }

        Workflow inputs.

        • actor: any

          The actor using the action.

        • OptionalbusyElement?: BusyElement

          Optional element to disable during the in-combat queue call.

        • embeddedActionItem: any

          The embedded action to use.

        • parentItem: any

          The item that embeds the action.

      Returns Promise<void>

      Resolves when the workflow finishes.