Log inGet started
Package

questKit.package

This package holds more than this page lists. See all of its files in its world.

README.md

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).

fieldmeaning
idthe quest's id (letters, digits, _, -)
stringstranslation namespace for its words (default: the id)
giverthe QuestGiver id that offers it
party, repeatable, autoStart, timeLimitshared 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.