@vestra-player/sdk - v1.11.3
    Preparing search index...

    Interface CommandRunOptions

    How Commands.run runs a command.

    1.7.9

    interface CommandRunOptions {
        ticket: string;
        step?: number;
        of?: number;
        then?: string[] | null;
    }
    Index
    ticket: string

    The ticket of the user action the run is for (PaletteLeadRun.ticket).

    step?: number

    This run's step number (1–99), for the on-screen line; with of.

    of?: number

    The request's number of steps (step–99); with step.

    then?: string[] | null

    The rest of the request's plan: the global ids of the commands this ticket runs next, in order. At most 7, so a plan has at most 8 commands; the same id may appear more than once. Absent or null: no new plan; the run is judged as a later run below (one left in an approved plan uses up an entry and does not ask). An empty array: a new plan of this command alone, which replaces the rest of an earlier one.

    The player looks at the whole plan, this command first. When none of it asks first (see Commands.run), nothing is asked and nothing is remembered. When any of it does, the player asks once, before this command runs, listing every command of the plan:

    • Run runs this command and remembers the rest of the plan for the ticket. Each later run of a planned command with the same ticket, in any order, uses up one of its entries and does not ask. A command not left in the plan (never in it, or its entries used up) is judged on its own and asks first as usual.
    • Don't Run runs nothing and remembers nothing: the result is { ran: false, declined: true }.

    A later run that gives then again ([] included) starts a new plan: the rest of the earlier one is forgotten and the new plan is judged as above. The plan ends with its ticket. The ids of then must be listed commands now (missing otherwise; host/palette is invalid); whether each is enabled and not busy is checked when it runs, as for any run. then itself is no run: only runs count against the rate limits.

    Players before the approval sheet (Ask Vestra UX, step 3) ignore the field and ask before each command that asks first; a built-in plugin ships with its player.

    1.7.16