mwg API
    Preparing search index...

    Interface QuestStage

    One step of a quest: complete once its condition holds, or once its counter reaches a target - "kill 5 rats: 3/5" is a counter stage, "talked to the shopkeeper" a condition one, read off the same GameState switches/variables EventRunner's activePage conditions already do. A stage with neither is a pure milestone, complete the instant it becomes current - the shape a quest's very first or very last stage often wants.

    interface QuestStage {
        condition?: EventCondition;
        counter?: { target: number; variable: string };
        description?: string;
        location?: { map?: string; x: number; y: number };
    }
    Index
    condition?: EventCondition
    counter?: { target: number; variable: string }
    description?: string

    shown in a quest log's progress readout; mwg never reads this itself

    location?: { map?: string; x: number; y: number }

    Where this stage is satisfied, if anywhere in particular - "kill 5 rats" can optionally also say where the rats are. mwg only carries this data; turning it into a route or a compass arrow is roguelike.Pathfinder's job (already has everything needed: find/step/distanceMap) plus the game's own presentation.