Pathfinder 1e for Foundry VTT
    Preparing search index...

    Class TokenSelector

    A specialized form application for selecting a Token from a list of available choices.

    Used for example when target limit is exceeded.

    Hierarchy

    • AbstractDocumentSelector
      • TokenSelector
    Index

    Properties

    Accessors

    • get documents(): TokenDocument[]

      Returns TokenDocument[]

    • get promise(): Promise<any>

      Returns Promise<any>

    • get selected(): string | string[]

      Returns string | string[]

    Methods

    • Returns Promise<{ documents: DocumentSelectorDocument[]; id: string; label: string }[]>

    • Given a source disposition it returns a ternary that can be used for later filtering allies and foes to the source.

      Parameters

      • sourceDisp: number

        Source disposition.

      • disposition: "friendly" | "hostile"

        Desired target disposition relative to source.

      Returns number

      • The disposition in which to filter targets.

      This does not handle neutral or secret dispositions. That might be added later with #3644

    • Render selector and wait for it to resolve.

      Parameters

      • options: object

        Options

      Returns Promise<string | false | Document<any, any, null> | null>

      • Document or string for selected item, null if cancelled, or false or empty string if none were selected.