mwg API
    Preparing search index...

    Interface PackageScript

    interface PackageScript {
        code?: string;
        do: readonly PackageAction[];
        id: string;
        on: string;
        when?: string;
    }
    Index
    code?: string

    real code; needs the script capability, which a game is free to refuse

    do: readonly PackageAction[]
    id: string
    on: string
    when?: string

    a pure condition from the MWL condition language