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

    A non-blocking dialog that allows the user to place NPC tokens onto the canvas from a pool of configured NPC actors.

    Each NPC in the pool shows a button with name + remaining count. Clicking an NPC button arms placement mode: the next click on the canvas places a token for that NPC and decrements its remaining count.

    Hierarchy

    • ApplicationV2
      • SummonNpcDialog
    Index
    • Parameters

      • pool: { actor: Actor; remaining: number }[]
      • Optionaloptions: { onClose?: () => void } = {}
        • OptionalonClose?: () => void

          Invoked once when the dialog closes.

      Returns SummonNpcDialog

    DEFAULT_OPTIONS: {
        actions: {
            closeSummon: (event: any, target: any) => void;
            selectNpc: (event: any, target: any) => void;
        };
        classes: string[];
        id: string;
        tag: string;
        window: { resizable: boolean; title: string; width: number };
    } = ...
    • get template(): null

      Returns null

    • Parameters

      • options: any

      Returns Promise<any>

    • Parameters

      • context: any
      • options: any

      Returns Promise<HTMLDivElement>

    • Parameters

      • result: any
      • content: any
      • options: any

      Returns void

    • Parameters

      • options: {} = {}

      Returns Promise<any>

    • Parameters

      • event: any
      • target: any

      Returns void

    • Parameters

      • event: any
      • target: any

      Returns void