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

    Function executeKeywordTriggers

    • Execute triggers from all keyword items matching the given keywords in the swing context. Looks up each keyword item by key from world items, resolves mirrorSwing iterators, then runs each keyword's triggers via executeSwingTriggers.

      Parameters

      • keywords: string[]

        Array of keyword keys (e.g. ["thousandRunes", "martial"])

      • ownerActor: Actor

        The actor performing the action

      • actionItem: Item

        The action item being resolved

      • actionData: object

        Tracker action data

      • currentSwing: object | null

        The swing being resolved (for mirrorSwing resolution)

      • swingIteratorCache: Map<any, any> | undefined

        Iterator cache from the parent swing triggers call

      • OptionalpriorAccumulator: any[] = []

        Accumulated results from prior trigger calls

      Returns Promise<{ accumulator: any[] }>