quest.dataType
A quest a player can take: one `.data` file per quest, bound with `contract: questKit.quest`. It models the whole quest as data: who gives it (`giver`), whether the party shares it (`party`), prerequisites (`requires.quests`, `requires.flags`, `requires.level`), the ordered `step…
quest (questKit data contract)
A quest a player can take: one .data file per quest, bound with contract: questKit.quest. It models the whole quest as data: who gives it (giver), whether the party shares it (party), prerequisites (requires.quests, requires.flags, requires.level), the ordered steps, the objectives inside each step (kind is one of goto, collect, defeat, talk, use, escort, defend, deliver, find, inspect, or a kind a game registered with Quest.defineObjective), and the rewards (saveKit XP and unlocks, inventoryKit items, pickupsKit coins, dialogueKit story flags).
| field | meaning |
|---|---|
id | the quest's id (letters, digits, _, -) |
strings | translation namespace for its words (default: the id) |
giver | the QuestGiver id that offers it |
party, repeatable, autoStart, timeLimit | shared by the party; can be done again; starts by itself; seconds before it fails (0 = no limit) |
requires | { quests, flags, level } |
steps[] | { id, objectives[] } |
objectives[] | { id, kind, target, item, counter, count, seconds, radius, conversation, optional, extra } |
rewards | { xp, items[{ id, count }], flags, unlocks, coins } |
questKit checks each file beyond this schema (unknown kinds, a kind's required fields) and names the field at fault: steps[1].objectives[1].kind: "colect" is not an objective kind. See questKit's README for every kind and an example.
Scoped to this part · feeds back into the world's score.