• Resolve the effect-key namespace an active effect's key dropdown should draw from, based on its system.scope:

    • "this" → the parent document's own type (falling back to the effect's type),
    • "actor" → the owning actor's type,
    • otherwise → the scope value itself (an item kind).

    Parameters

    • scope: undefined | string

      The effect's system.scope, or undefined.

    • documentType: string

      The effect document's own type.

    • parentType: undefined | string

      The parent document's type, or undefined.

    • actorType: undefined | string

      The owning actor's type, or undefined.

    Returns string

    The resolved metadata type (item kind / actor type).