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

    Function resolveActorVars

    • Resolve single-curly-brace actor variables in a string. Handles {mh}, {oh} (weapon damage mods) and any {dot.path} resolvable via foundry.utils.getProperty(actor, path) — e.g. {system.attributes.body.dex.total}. Context-specific tokens ({actor.name}, {target.name}, etc.) are NOT handled here.

      Parameters

      • str: string
      • actor: any
      • Optional_subs: object[] | null = null

        Optional array to push substitution records into

      Returns string