@alpaca-software/40kdc-data
    Preparing search index...

    Interface Trigger

    A single reactive trigger: the game event (closed dispatch key), subject (whose action triggered it), proximity (spatial gate in inches), optional move_types (restricts a move event to given move kinds), condition (extra gate reusing the condition tree), optional ('you can' reactions), cost (stratagem-style CP), and window (how long the granted reaction stays open).

    This interface was referenced by 0KdcBundledSchemas's JSON-Schema via the definition "trigger".

    interface Trigger {
        event: GameEvent;
        subject?:
            | "self"
            | "bearer"
            | "enemy-unit"
            | "friendly-unit"
            | "any-unit"
            | "model-in-bearer";
        proximity?: { of?: "self"
        | "bearer"
        | "attached-unit"; range: number };
        move_types?: [
            "charge"
            | "fall-back"
            | "advance"
            | "normal",
            ...("charge" | "fall-back" | "advance" | "normal")[],
        ];
        condition?: AbilityCondition2;
        optional?: boolean;
        cost?: { cp?: number };
        window?: string;
    }
    Index

    Properties

    event: GameEvent
    subject?:
        | "self"
        | "bearer"
        | "enemy-unit"
        | "friendly-unit"
        | "any-unit"
        | "model-in-bearer"
    proximity?: { of?: "self" | "bearer" | "attached-unit"; range: number }
    move_types?: [
        "charge"
        | "fall-back"
        | "advance"
        | "normal",
        ...("charge" | "fall-back" | "advance" | "normal")[],
    ]

    Restricts a move-related event (e.g. enemy-unit-ended-move) to these move kinds — e.g. [normal, advance, fall-back] for 'a Normal, Advance or Fall Back move'.

    1

    condition?: AbilityCondition2
    optional?: boolean
    cost?: { cp?: number }
    window?: string