# questKit
Quests for any Zero world, written as data. Give a character a quest to hand out, and your players get the whole loop: a marker over the giver, a conversation that offers the quest, an on-screen tracker that counts every step, waypoints to the next objective, a quest log they can open with mouse, keyboard, gamepad or a tap, and XP and items when they hand it in. Ten objective kinds come built in, and a game can add its own. Party quests progress for the whole party, with one machine deciding so nothing counts twice; personal quests stay private to their player. Every player's progress is saved and is back when they return, and every word comes from translation catalogs (English and Brazilian Portuguese).
**Get it:** search ZeroMind for "questKit" and install it. One install brings every kit it needs in about a minute, and the *First example* below has a quest running from four short files.
Version **1.2.1**. Home and showcase: the world *Questing Grounds: Quests, Objectives, Logs and Trackers Kit*.
## Guides
Three guides ship inside the package, in `guides/`, so every world that installs questKit has them:
- **How to add quests to my game: quest log, objective tracker and quest givers with an exclamation mark.** Writing a quest and its objectives, the ten objective kinds and adding your own, XP and levels, item and coin rewards, party versus personal quests in multiplayer, picking and switching a quest log, a tracker and a giver marker, and how progress is saved and comes back.
- **Example: a quest chain from an empty world (collect 5 mushrooms, talk to Ada, deliver the basket).** From an empty world to a two-quest chain with a tracker on screen and XP rewards, with why each choice is made.
- **How to add daily goals that change every day to my game.** A daily goals board (daily quests, daily challenges) that resets at UTC midnight: writing the goal pool, the same goals for everyone or a set of each player's own, reporting progress, paying rewards, the ready phone-friendly board, translations with plurals, saving, and jumping to tomorrow to test it. Read it with `zero guides read how-to-add-daily-goals-that-change-every-day-to-my-game`.
| Where | How-to guide | Example guide |
|---|---|---|
| The editor's **Docs** panel: type in its search box, then pick the entry under QUESTKIT | `how-to-add-quests` | `example-quest-chain` |
| The shell | `zero guides read how-to-add-quests-to-my-game` | `zero guides read example-quest-chain-collect-mushrooms-talk-to-ada-deliver-basket` |
| An agent's `guides` tool, `path` = | `how-to-add-quests-to-my-game` | `example-quest-chain-collect-mushrooms-talk-to-ada-deliver-basket` |
| The files | [guides/how-to-add-quests-to-my-game.guide/guide.md](guides/how-to-add-quests-to-my-game.guide/guide.md) | [guides/example-quest-chain-collect-mushrooms-talk-to-ada-deliver-basket.guide/guide.md](guides/example-quest-chain-collect-mushrooms-talk-to-ada-deliver-basket.guide/guide.md) |
Both end with links to the related kits' guides on ZeroMind (saveKit on saving player progress, navUiKit on the minimap, compass and a waypoint to the next objective, pickupsKit on coins, gems and power-ups, MatchFlow on rounds and a countdown), each with a `zm show @<guid>:guide.md` line that opens it in any world.
## Install
Install **questKit** from ZeroMind (search "questKit"), or in one call: `zeromind_install guid=<questKit package guid>` (from the engine: `zero zeromind installAsset --guid <guid>`). It lands at `/source/questKit.package`. One install brings everything it needs: **saveKit** (saves, XP), **inventoryKit** (items, bag), **dialogueKit** (conversations), **pickupsKit**, **interactKit** (prompts, trigger zones) and **navUiKit** (tracker, waypoints, toasts, minimap), and the kits those bring. The install takes about a minute (47 to 94 s, #21420). Nothing to place in a scene: questKit starts itself the first time something uses it in play.
## First example: collect 5 mushrooms, then talk to Ada
Paste these four files into a brand-new world that has questKit installed, then press **Play**.
**1. The quest**, `/source/quests/mushrooms.data/values.yaml`:
```yaml
contract: questKit.quest
values:
id: mushrooms
giver: ada
steps:
- id: gather
objectives:
- { id: shrooms, kind: collect, item: mushroom, count: 5 }
- id: report
objectives:
- { id: ada, kind: talk, target: ada }
rewards:
xp: 120
items:
- { id: healthPotion, count: 1 }
```
and beside it `/source/quests/mushrooms.data/.metadata`:
```json
{ "description": "Collect 5 mushrooms, then talk to Ada.", "tags": ["quest"] }
```
**2. Its words**, `/source/locales/en/mushrooms.json` (keys: `title`, `summary`, `offer`, `accepted`, `declined`, `progress`, each step's id, `<step>_<objective>` for the tracker line, `<step>_<objective>_say` for what the giver says on a hand-in):
```json
{
"ada": "Ada the Herbalist",
"title": "A Basket of Mushrooms",
"summary": "Ada needs five mushrooms from the meadow for her famous stew.",
"offer": "Oh, hello! My stew needs five mushrooms from the meadow. Would you gather them for me?",
"accepted": "Wonderful! They grow just past the trees.",
"declined": "No matter, dear. The stew can wait.",
"progress": "Five mushrooms, dear. Look for the red caps.",
"gather": "Gather mushrooms",
"gather_shrooms": "Collect mushrooms",
"report": "Bring them to Ada",
"report_ada": "Talk to Ada",
"report_ada_say": "Five perfect mushrooms! Here, take this potion, and thank you."
}
```
**3. The scene**: replace `/source/scenes/main.scene/entrypoint.luau` with:
```lua
local Quest = require("questKit.api")
function onLoad()
Quest.setup({ log = "journal", tracker = "list", markers = "floating" })
end
function onHostLoad()
Quest.spawnGiver("ada", { 0, 0, 6 }, { name = "mushrooms.ada", yaw = 180 })
for i = 1, 5 do
Quest.spawnItem("mushroom", 1, { -4 + i * 1.6, 0.1, 10 })
end
end
```
Press Play. Ada has a gold **!** over her head. Walk up and press **E** (gamepad west button; on a phone the on-screen Interact button), and she asks for five mushrooms: choose *I'll do it.* The tracker shows *Collect mushrooms 0/5* and counts each mushroom you walk over (they go into your inventoryKit bag). At 5 the step moves on to *Talk to Ada*, and her marker turns into a gold **?**. Talk to her: her line completes the quest, a toast says *Quest complete!*, and you get 120 XP (saveKit) and a Health Potion (inventoryKit). Press **J** (gamepad left shoulder, or the Quests button) for the log. Stop play, or close the engine and open it again: the quest is still done, the 120 XP and the potion are still yours, and talking to Ada again pays nothing.
Add a Brazilian Portuguese copy at `/source/locales/pt-BR/mushrooms.json` with the same keys and the whole quest, tracker and conversation read in Portuguese for those players.
## Quests are data
A quest is one `.data` asset bound to the `questKit.quest` contract, anywhere in the world. Adding a quest is adding one file; `Quest.define(table)` does the same from code. A broken file says which field is wrong, in the log and from `Quest.validate`:
```
quests/mushrooms.data: steps[1].objectives[1].kind: "colect" is not an objective kind (known: goto, collect, defeat, talk, use, escort, defend, deliver, find, inspect)
quests/herbs.data: steps[2].objectives[1].target: required for a deliver objective (the quest giver to hand it to)
```
| field | default | meaning |
|---|---|---|
| `id` | required | letters, digits, `_`, `-` |
| `strings` | the id | translation namespace: `locales/<lang>/<strings>.json` |
| `giver` | `""` | the QuestGiver id that offers it |
| `party` | `false` | progress shared by the whole party (see Multiplayer) |
| `repeatable`, `autoStart`, `timeLimit` | `false`, `false`, `0` | can be done again; starts by itself when its prerequisites hold; fails after that many seconds |
| `requires.quests` | `[]` | quests that must be done first |
| `requires.flags` | `[]` | dialogueKit story flags that must be set (`"!flag"` = must not be) |
| `requires.level` | `0` | saveKit level |
| `steps[]` | required | `{ id, objectives[] }`, done in order |
| `steps[].objectives[]` | required | `{ id, kind, target, item, counter, count, seconds, radius, conversation, optional, extra }` |
| `rewards` | none | `xp` (saveKit), `items: [{ id, count }]` (inventoryKit), `coins` (pickupsKit counter), `flags` (dialogueKit story flags set true), `unlocks` (saveKit unlock ids) |
Translation keys are lowercase (`gather_shrooms`), as the engine's catalogs require; ids are lowercased when looked up.
## Objective kinds
| kind | tags | needs | progresses when |
|---|---|---|---|
| `goto` | movement, location, exploration | `target` (QuestZone id, entity name or `"x,y,z"`), `radius` | the player arrives (interactKit trigger zone, or within `radius`, default 4 m) |
| `collect` | items, gathering, inventory | `item` (inventoryKit item) or `counter` (pickupsKit counter), `count` | the player gains that item / counter |
| `defeat` | combat, enemies | `target` (QuestTarget id or entity name; empty = anything), `count` | the player lands the killing blow (SecondWind, through pickupsKit) |
| `talk` | dialogue, npc | `target` (giver id), or `conversation` (any dialogueKit conversation id) | the giver's hand-in line plays, or that conversation finishes |
| `use` | interaction, world | `target` (entity name of any interactKit device) | the player uses it |
| `escort` | npc, protection, movement | `target` (QuestEscort id), `extra` (destination), `radius` | the escorted character reaches the destination; fails if they fall |
| `defend` | combat, timed, area | `target` (zone), `seconds`, `radius` | seconds spent inside; a countdown shows on screen while the player holds the area (inside it, or just stepped out with "Get back to the area!"), and hides once they are 15 m past its edge or before they first step in |
| `deliver` | items, npc, dialogue | `item`, `count`, `target` (giver id) | the player talks to the giver holding the items (they are taken) |
| `find` | exploration, hidden | `target` (QuestTarget find id), `count` | the player searches a hidden spot up close |
| `inspect` | interaction, exploration, lore | `target` (QuestTarget inspect id) | the player holds Inspect on it |
**Your own kind**, without editing the kit:
```lua
Quest.defineObjective("photograph", {
validate = function(o) if o.target == "" then return "target: what to photograph" end return nil end,
icon = "eye",
tags = { "camera", "exploration" },
})
-- then, when your camera takes a picture of an owl:
Quest.report("photograph", "owl", 1)
```
`def` may also carry `total(o)`, `matches(o, target, info)`, `tick(ctx, dt)` (per-frame, with `ctx.set / add / complete / fail / avatarPos / position`) `extra` (`"countdown"` or `"health"`) and `tags` (words that say what the kind is about). `Quest.describeKinds()` lists every kind, built-in and your own, with its tags: `{ { kind, tags, extra, icon, builtin } }`. The built-in kinds are defined through the same call (`questKit.kinds`). `Quest.report(kind, target, n)` moves every active objective of that kind whose target matches.
## Conversations start, advance and finish quests
Givers talk through dialogueKit. A **QuestGiver** builds, for the player talking, an offer (Accept / Decline), a hand-in, a delivery or an in-progress line from the quest's words, and plays it as a dialogueKit conversation (in the world's dialogueKit presentation and style). Your own dialogueKit conversations can drive quests with `emit` effects:
| emit | does |
|---|---|
| `quest:start:<id>` | starts the quest |
| `quest:advance:<id>:<objective>[:n]` | moves an objective of the current step on |
| `quest:complete:<id>` | finishes the current step(s) |
| `quest:fail:<id>`, `quest:abandon:<id>`, `quest:track:<id>` | fails / abandons / tracks it |
| `quest:report:<kind>:<target>[:n]` | `Quest.report` |
| `quest:deliver:<id>:<objective>` | takes the items and completes a deliver objective |
Conversations can branch on quests: questKit keeps the story flag `quest_<id>` at 0 (not started), 1 (active), 2 (done), 3 (failed), and `quest_<id>_step` at the current step, so `"if": "quest_mushrooms == 1"` works in any conversation. A `talk` objective with `conversation = "<id>"` completes when that conversation finishes.
## Styles: one setting each
```lua
Quest.setup({ log = "datapad", tracker = "questCard", markers = "ground", theme = "scifi" })
Quest.setLog("cards"); Quest.setTracker("checklist"); Quest.setMarkers("nametag")
```
Or the **QuestSetup** component in the inspector.
| family | styles |
|---|---|
| quest log (`log`), 8 styles | `journal` (fantasy journal, an open book), `datapad` (sci-fi datapad), `panel` (compact side panel), `cards` (phone-friendly card sheet), `scroll` (a parchment scroll unrolled between wooden rods, sealed with red wax), `storybook` (a hardback picture book with a ribbon bookmark and numbered pages), `pixel` (an 8-bit role-playing game menu: blue windows, white frames, a ▶ cursor), `casefile` (a detective's manila folder: the index on the folder, the chosen case typed on a clipped sheet under an *Open case* / *Case closed* stamp) |
| tracker (`tracker`), 6 styles | `list` (progress bars), `line` (one line), `checklist` (ticks and strike-through), `questCard` (a card with a big 3/5), all drawn by navUiKit; `banner` (a ribbon banner with the quest's name, its objectives under it and a pip for every count) and `radial` (a progress ring per objective with the count inside it), questKit's own, added to navUiKit's tracker family and drawn with its theme so they follow the HUD look like the other four; extras where a kind needs one: a countdown for `defend`, the escorted character's health for `escort` |
| giver markers (`markers`) | `floating` (! and ? over the head), `ground` (glowing ring and beam), `nametag` (icon on the name tag; a giver without a name shows the icon alone); each shows *quest available*, *in progress* and *ready to hand in*, per player; givers also show on navUiKit's minimap |
| boards (`QuestBoard.style`) | any tracker or log style as an in-world board (a town notice board, a gallery exhibit) |
| HUD look (`theme`) | navUiKit's `fantasy`, `scifi`, `cartoon`, `pixel`, `minimal`, `gothic` |
Other `setup` options:
| option | default | what it does |
|---|---|---|
| `logKeys` | `true` | `false`: questKit binds no key to open or close the log (no J, L or gamepad left shoulder); open it from your own keys with `Quest.toggleLog()` (see *Your own keys*). Setting it back to `true` takes the toggle again at once, in play |
| `autoTrack` | `true` | a quest the player starts is tracked |
| `toasts` | `true` | quest started, completed, failed and reward toasts |
| `minimap` | `true` | navUiKit's minimap |
| `hud` | `true` | start navUiKit's HUD |
| `samples` | `false` | offer the kit's twelve sample quests |
| `party` | `"world"` | the party id party quests are shared in |
`require("questKit.logs").define(id, theme, layout)` adds a log style of your own.
### The quest log
| | keyboard / mouse | gamepad | touch |
|---|---|---|---|
| open / close | J or L, the Quests button (J and L stand down with `logKeys = false`) | left shoulder (stands down with `logKeys = false`) | the Quests button |
| choose a quest | ↑ ↓ / W S, click | d-pad | tap |
| track it | Enter / Space, the Track button | A (south) | Track button |
| Active / Completed | Q / Tab, the tabs | right shoulder | tabs |
| abandon | Delete, the Abandon button | Y (north) | Abandon button |
| close | Escape, ✕ | B (east) | ✕ |
While the log is open the player's walking, looking and jumping stand down, so the arrows and the stick move the selection instead; the moment it closes (by J, Escape, the gamepad's left shoulder or B, or the ✕ and the Quests button on a phone) they are handed back. The log holds its controls only while it is open, so the player can walk from the very first frame of play. Every style lays out for a desktop window and for a phone held upright or sideways (portrait layouts stack the list over the details and size text and buttons for a 430-point-wide phone; buttons are at least 44 points tall).
### Your own keys
When J, L or the left shoulder already mean something in your game (a farm game switching tools on the bumpers, say), turn questKit's toggle off and open the log from your own binding:
```lua
Quest.setup({ logKeys = false })
-- in your own input handler
Quest.toggleLog()
```
Only the toggle stands down. The Quests button still opens and closes the log, and while it is open Escape / B, the arrows, Enter and the rest of the table above work as before. Turning the toggle off is the way to do it: suppressing the `questKit` input group would also silence the open log's own controls, which share that group.
### On screen, clear of the minimap
The Quests button sits under navUiKit's minimap on the side away from the tracker, or beside it when a phone held sideways leaves no room below. It is placed against the minimap as navUiKit actually draws it (the bezel and the N badge reach past the minimap's layout box), with a clear gap of at least 10 points, on a desktop and on a phone in either orientation; on a screen too short for the full button it shows the scroll icon alone, still a full-size touch target. It also keeps clear of the compass, the tracker and, while the player plays by touch, the on-screen Interact and Jump buttons. The open log covers the screen beside or under the minimap, never over it, and the defend countdown and escort health slide clear of the HUD too. Everything is re-placed when the screen turns or navUiKit's widgets move. A screen's root ignores `position` and `top` (#11895), so questKit places each of these inside an area root at an explicit position.
### Placing, hiding and sharing the Quests button
By default questKit places the Quests button itself (above). A game, or another kit sharing the HUD, can read where it is, move it, hide it, and reserve its own parts of the screen so the button keeps clear of them. Everything here is in screen points (the space `ui.screenSize()` measures) and local to this peer, so call it on every peer, in play or before.
```lua
local Quest = require("questKit.api")
-- read where it is (nil while hidden, during a conversation, or before the HUD is up)
local r = Quest.ui.buttonRect() -- { x, y, w, h, [1..4] the same, compact, anchor }
local off = Quest.ui.onButtonRect(function(r) relayoutMyHud(r) end)
-- keep it clear of your own HUD: a rect, a list, or a function read each time it is placed
Quest.ui.reserve("farmHud", function() return { toolbar, clock, seasonBadge } end)
Quest.ui.release("farmHud")
-- put it where your layout wants it, or hide it
Quest.ui.button({ anchor = "bottomRight", offset = { 0, -90 } })
Quest.ui.button({ pos = { 24, 300 } }) -- exact top-left, not moved
Quest.ui.button({ visible = false }) -- Quest.toggleLog() still opens the log
Quest.ui.resetButton() -- back to questKit's own placement
```
| `Quest.ui.button` option | default | what it does |
|---|---|---|
| `anchor` | `"auto"` | `"auto"`: questKit's own placement under the minimap. `"topLeft"`, `"top"`, `"topRight"`, `"left"`, `"right"`, `"bottomLeft"`, `"bottom"`, `"bottomRight"`: that side or corner of the safe area, sliding away from the edge past navUiKit's HUD, the touch buttons and every reserved rect; with no clear spot along that edge it stays on the anchored spot |
| `offset` | `{ 0, 0 }` | points added after placement, +x right, +y down |
| `pos` | none | `{ x, y }`: an exact top-left, which overrides `anchor` and is not moved (`false` clears it) |
| `visible` | `true` | `false` hides it; `buttonRect()` reads nil |
| `compact` | questKit decides | `true`: the scroll icon alone; `false`: always the label |
| `hint` | the pad's left shoulder while the player uses a pad and `logKeys` is on | the key or pad glyph shown after the label: a string, a function returning one, or `false` for none. With `logKeys = false`, pass your own binding's glyph here |
| `avoid` | none | a rect list or a function returning rects to keep clear of, besides `Quest.ui.reserve`'s (`false` clears it) |
In `"auto"` the button tries its usual spots and takes the first that covers no reserved rect; if none is clear it falls back to a bottom corner clear of them, so existing worlds that reserve nothing place it exactly as before. `Quest.ui.reserved()` lists every rect it is avoiding now, `Quest.ui.buttonSettings()` the options.
**On a pad.** The engine's pad focus moves only inside a menu (a screen holding the pointer), never onto a HUD, so the HUD button is opened on a pad by its binding (the left shoulder, or yours with `logKeys = false`) and shows that glyph. For a game's own pause or main menu, `Quest.ui.menuEntry()` returns a ready "Quests" button node (click id `Quest.ui.CLICK`) to put in it; the d-pad reaches it and south opens the log.
### Talking to a giver
E (the gamepad's west button, the on-screen Interact button on a phone) reaches a giver through interactKit's own Interact control, the same one every interactKit prompt uses; questKit adds no binding of its own and never reads another kit's controls.
### The player's body
Some dependency installs bring older pinned copies of the engine's player-body link (`PlayerAvatar`), and a player can spawn with one of those attached, which leaves the character controller ignoring their keys, stick and touch stick. questKit checks this peer's own body in play and, when the controller cannot find its link, adds the engine's one with the same owner and name, so the player always walks. It never touches another player's body.
## Daily goals board
A board of goals that changes every UTC day: each player gets `count` goals (3 by default) drawn from a pool your game defines, the same set for every player that day, counts them up as your game reports what the player did, and pays the reward through your own callback when the player taps **Claim**. It comes with a ready **Daily** button (showing how many goals wait to be claimed) and a board that fits a phone held upright: big tap targets, a progress bar per goal, the reward, and the time until new goals. G or the pad's Select / View opens it, the d-pad and arrow keys move between its buttons, A / Enter claims, B / Escape closes it, and it redraws at once when the player's language changes. English and Brazilian Portuguese. New in 1.2.0: a **daily streak** (days in a row the player finished, or claimed, every goal), shown on the board, with an optional streak bonus your game gives.
```lua
local Daily = require("questKit.daily") -- inside another package: require("~questKit.daily")
Daily.setup({
count = 3,
pool = {
{ id = "bake", textKey = "mygame.daily_bake", counter = "bake", target = 20, reward = { coins = 50 } },
{ id = "serve", textKey = "mygame.daily_serve", counter = "serve", target = 10, reward = { coins = 30 } },
{ id = "earn", textKey = "mygame.daily_earn", counter = "earned", target = 5000, mode = "max", reward = { xp = 100 } },
{ id = "tip", textKey = "mygame.daily_tip", counter = "tip", target = 3, reward = { textKey = "mygame.reward_gems", amount = 2 } },
},
onReward = function(reward, goal)
if reward.coins then addCoins(reward.coins) end -- your game hands the reward out
if reward.xp then require("~saveKit.save").addXP(reward.xp, "daily") end
end,
})
-- wherever your game counts what the player did (on that player's machine):
Daily.progress("bake", 1)
Daily.progress("earned", totalToday) -- a "max" goal keeps the highest value reported
```
with plural-aware words in your catalogs (the goal's `target` is the `count`):
```json
"daily_bake_one": "Bake {{ count }} loaf", "daily_bake_other": "Bake {{ count }} loaves"
```
and in pt-BR `daily_bake_one`, `daily_bake_many` and `daily_bake_other`. A goal's `params` are handed to its words too. Words kept in a game package's own `locales/` are read with `Daily.setup({ textRoot = "<package folder>" })`.
- **A goal** is `{ id, textKey, params?, counter, target, reward?, weight? = 1, mode? = "add" | "max", icon? }`. `weight` makes a goal come up more or less often (0: never). `reward` is anything your callback understands; the board shows `{ xp }`, `{ coins }`, `{ items = { { id, count } } }` or `{ textKey, amount }` in words by itself, and `rewardText = fn(reward, goal) -> string` replaces that line.
- **The same goals for everyone** (`seed = "day"`, the default): the draw is a hash of the day and your `salt`, so every machine picks the same set with no network. `seed = "player"` gives each player their own set (the saveKit identity is mixed in), and `seed = function(day) return ... end` lets you decide.
- **Claiming:** `Daily.claim(id)` (the Claim button calls it) runs `onReward(reward, goal)` once; returning `false` refuses the claim and the goal stays claimable.
- **The day change** is UTC midnight: at the first frame of a new day the board is drawn again, progress and claims are cleared, and `rolled` fires. `Daily.secondsUntilReset()` says when. **Testers:** `Daily.setDayOffset(1)` jumps to tomorrow at once, `Daily.setDayOffset(0)` comes back.
- **Saved per player:** the board (day, goals, progress, claims) is in the player's saveKit profile under `questKitDaily`, written only on that player's machine and never sent to anyone, so it is back after a reload or a rejoin the same day. A save from an earlier day is replaced by today's board.
- **Options:** `button = false` (no Daily button; open the board with `Daily.open()` from your own UI), `button = { anchor = "right" | "left" | "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight", offset = { x, y }, pos = { x, y } }`, `panel = false` (draw your own board from `Daily.goals()`), `keys = false` (G / Select left to your game), `theme` (any quest log look: `cards` by default, `journal`, `datapad`, `panel`, `scroll`, `storybook`, `pixel`, `casefile`), `toasts = false`, `save = false`. The Quests button keeps clear of the Daily button.
- **Reading:** `Daily.goals()` (each `{ id, text, counter, progress, target, fraction, done, claimed, reward, rewardText, icon }`), `goal(id)`, `claimable()`, `allClaimed()`, `today()`, `draw(day)`, `pool()`, `samplePool()` (six goals worded in questKit's catalogs, the default pool), `isReady()`, `open()`, `close()`, `toggle()`, `isOpen()`.
- **Events:** `Daily.on(event, fn)` with `rolled` (`day, previous, goals`), `progress` (`id, progress, target, counter`), `completed` (`id, reward`), `claimed` (`id, reward`), `changed` (`reason`), `ready`; `"*"` hears them all.
### Daily streak (new in 1.2.0)
The board counts the player's **streak**: the days in a row on which they finished every goal of that day (`streakOn = "done"`, the default) or claimed every one (`streakOn = "claimed"`). The day counts once, the moment its last goal is done (or claimed), and fires `streak`. Missing a day starts it again at 0 (`streakLost` fires when the new day rolls in); the best streak stays. The board shows it under its title, "🔥 3-day streak · Best: 5 days" ("🔥 Sequência de 3 dias · Recorde: 5 dias"), with a line saying how to start it, how to keep it, or that today already counts.
```lua
Daily.setup({
pool = { ... },
streakOn = "done", -- or "claimed"
streakReward = function(days) -- optional: your game's bonus, or nil for none that day
if days % 7 == 0 then return { coins = 500 } end
return { coins = 20 * math.min(days, 7) }
end,
onReward = function(reward, goal) -- also hands over the streak bonus: goal.id == "streak", goal.streak == days
addCoins(reward.coins or 0)
end,
})
Daily.streak() -- { days, best, last, countedToday, atRisk, bonus = { days, reward, rewardText, claimed } | nil }
Daily.claimStreakBonus() -- the board's streak Claim button calls it
Daily.on("streak", function(e) print(e.days, e.best, e.reward) end)
```
- **The bonus** from `streakReward(days)` waits on the board in a row of its own with a **Claim** button (it counts on the Daily button) and is paid through your `onReward(reward, goal)` with `goal.id == "streak"`; returning `false` keeps it waiting. An unclaimed bonus is paid when the next day counts.
- **Saved per player** in the player's saveKit profile under `questKitDailyStreak` (`days`, `best`, `last` day counted, `bonus`), written only on that player's machine.
- **Testers:** `Daily.setDayOffset(n)` moves the streak's days too: offset 1 is tomorrow (the streak is `atRisk` until today counts), offset 2 after a counted offset 0 skips a day and starts it again at 0.
- **Options:** `streak = false` hides the streak line and counts nothing; `streakOn`, `streakReward = false` removes a bonus function.
- **Events:** `streak` (`days, best, previous, day, reward`), `streakLost` (`previous, last, day`), `streakClaimed` (`days, reward`).
Call `Daily.setup` in play (from a component's `start`); it starts the board on that player's machine. The guide *How to add daily goals that change every day to my game* walks through it.
## Components
| component | what it does |
|---|---|
| `QuestGiver` | `giver`, `name` (translation key), `marker`, `body` (`humanoid` / `none`), `minimap`, `range`, `height`, `tagHeight`, `preview` (show a marker state whatever the player's quests) |
| `QuestZone` | a place: `zone`, `radius`, `ring`, `damagePerSecond` (hurts escorted characters); an interactKit TriggerVolume |
| `QuestTarget` | `kind` = `use`, `inspect`, `find` (hidden, per player), `defeat` (SecondWind health, respawns); `id`, `look`, `range`, `holdTime`, `health`, `damage`, `respawn` |
| `QuestEscort` | a character that follows the escorting player; `id`, `name`, `health`, `speed`, `follow`, `leash` |
| `QuestBoard` | a quest's progress on a board in the world, in any tracker or log style |
| `QuestSetup` | the settings from the inspector |
| `QuestHost` | spawned for you in play on each player's machine |
| `QuestMesh` | draws questKit's own models (the mushroom): holds a `model` mesh, a `material` and `castsShadows`, and adds the engine's Model component when the entity appears, so the kit's models install and draw in any world |
`Quest.spawnGiver(giver, pos, opts)` and `Quest.spawnItem(itemId, count, pos)` (host only) are shortcuts for scenes. questKit ships one item of its own for inventoryKit, `mushroom`.
## Events
`Quest.on(event, fn)` returns an unsubscribe function; `"*"` hears them all.
| event | info |
|---|---|
| `offered` | `id, giver` |
| `started` | `id, party` |
| `progress` | `id, step, objective, count, total, done, text` |
| `stepAdvanced` | `id, from, step, stepId` |
| `completed` | `id, party` |
| `failed` | `id, reason` |
| `abandoned` | `id` |
| `rewarded` | `id, xp, items, flags, unlocks, coins` |
| `tracked`, `changed`, `ready` | `id` / `id, reason` / `quests` |
## API
`local Quest = require("questKit.api")` (inside another package: `require("~questKit.api")`).
- **Setup:** `setup(opts)` (`log`, `tracker`, `markers`, `theme`, `party`, `autoTrack`, `samples`, `logKeys`), `settings()`, `setLog`, `setTracker`, `setMarkers`, `LOGS`, `TRACKERS`, `MARKERS`, `EVENTS`, `VERSION`.
- **Definitions:** `define(table)`, `reload()`, `validate(nameOrTable)`, `problems()`, `list()`, `definition(id)`, `defineObjective(kind, def)`, `kinds()`, `describeKinds()` (every kind with its tags), `defineReward(kind, fn)`.
- **Playing:** `start(id)`, `offer(id, giver)`, `abandon(id)`, `reset(ids?)` (forget quests for the local player, as if never started: for a story that starts again), `fail(id, reason)`, `complete(id)`, `advance(id, objective, n, mode)`, `report(kind, target, n)`, `deliver(id, objective)`, `handleEmit(topic)`, `reportConversation(id)`, `track(id)` (`track(nil)` turns the tracker off until the player tracks a quest again or starts a new one), `tracked()`.
- **Items:** `spawnItem(id, count, pos)` drops a world item players pick up by walking over it; `ensureItems()` defines questKit's own `mushroom` item in inventoryKit from code (a world's own `mushroom` item wins).
- **Reading:** `status(id)` (none / locked / available / active / done / failed / abandoned), `canStart(id)`, `view(id)` (everything a screen needs), `quests(filter)`, `active()`, `record(id)`, `giverState(giver)`, `text(q, key)`, `objectiveText(...)`.
- **Party:** `party()`, `joinParty(id)`, `partyPeers()`, `authority()`, `isAuthority()`.
- **Screens:** `openLog()`, `closeLog()`, `toggleLog()`, `isLogOpen()`.
- **Quests button:** `ui.button(opts)` (`anchor`, `offset`, `pos`, `visible`, `compact`, `hint`, `avoid`), `ui.resetButton()`, `ui.buttonSettings()`, `ui.buttonRect()`, `ui.onButtonRect(fn)`, `ui.reserve(name, rects)`, `ui.release(name)`, `ui.reserved()`, `ui.menuEntry(opts)`, `ui.CLICK`, `ANCHORS`. Lower level: `questKit.logs` (`build`, `model`, `define`), `questKit.boards`, `questKit.markers`, `questKit.hud`.
## Multiplayer
The world is always multiplayer, and questKit runs on every player's machine for that player.
- **Personal quests stay private.** A personal quest lives only on its player's machine, is saved in their own saveKit profile, and is never sent to anyone: its tracker objectives are personal navUiKit objectives and its waypoints are that player's alone. Other players never see it.
- **Party quests are shared, and counted once.** Everyone with the same party id (`"world"`, everyone in the play room, by default; `Quest.joinParty(id)` for groups) shares party quests. The party member with the lowest peer id decides: the others send it their progress (each report carries an id, so the same event reported twice counts once) and copy the state it sends back. When that player leaves, the next lowest takes over.
- **Saved per player.** Every player keeps their copy of every quest (party ones included) in their own saveKit save, so progress is there after leaving and coming back. A rejoining party member tells the party what it remembers and the deciding machine merges it.
- **Rewards** are handed out by each player's own machine, once per quest, into their own XP and bag.
- Messages travel on the `questKit` multiplayer channel.
## Translations
Every word a player reads comes from translation catalogs: the kit's own `questkit` namespace and each quest's namespace, in English and Brazilian Portuguese (`locales/en`, `locales/pt-BR`). A world overrides any word by stating the same key in its own `/source/locales`.
A game shipped as a package keeps its quest words beside its quests, in `<package>/locales/<tag>/<namespace>.json`, and questKit reads them there: a quest whose data file sits inside a package (or any folder with a `locales/` folder) reads its title, summary, objective lines and giver lines from that folder's catalogs, in the language `i18n.pick` chooses among them, then `en` (the world's `/source/locales` still wins). Words a game hands questKit outside a quest (a `QuestGiver` name, a `QuestTarget` label, a `QuestEscort` name, friendshipKit's `questNameKey`) may be a key of the world's, questKit's or such a package's catalogs, or plain words such as `"Open the Harvest Fair"`, shown as written with no warning. `Quest.addTextRoot(folder)` adds a folder whose catalogs are read for keys used outside a quest (returns a remover); `Quest.say(text)` turns a key or plain words into what the player reads. Giver conversations are translated by questKit and handed to dialogueKit as finished lines, because dialogueKit reads only its own catalogs and the world's.
## Tests
`questKitTests` (58 tests): most run in edit mode with no waits, and the rest enter play with the engine's starter player scene and drive real input. The samples cover all ten kinds, a broken quest names its field, the README's first example end to end (offer, 1..5, Ada's hand-in, 120 XP and the potion, every event), a game's own objective kind, the chain, fail and abandon, party quests counted once on the deciding machine and copied by members, personal quests never sent, every log style on desktop and phones, every board and marker, every English key in pt-BR, a giver's Talk prompt reading in the player's language and following a switch, the kit's samples staying opt-in, untracking, an escort reaching its destination, the mushroom item defined from code, every objective kind carrying tags, and a name-tag marker showing its state icon without a name. In play: the player walks at the very start on keyboard, gamepad and touch; twelve tests, one for each quest log (journal, datapad, panel, cards) on each device, open and close the log on keyboard (J / Escape), gamepad (left shoulder / B) or touch (the Quests button / ✕), check it stands walking down while open and gives it back, and then check the player really moves; a game that sets `logKeys = false` finds J and the left shoulder leave the log alone while `Quest.toggleLog()`, the Quests button and Escape still work, and the toggle comes back with `logKeys = true`; a player whose `PlayerAvatar` link goes missing still walks; the README example is finished and the engine is closed and opened again three times (everything questKit and saveKit held in memory dropped, on a store of the test's own), and the quest, XP, level and potion come back, handing in again pays nothing, and XP earned right before stopping is kept; three tests measure the Quests button against the minimap as drawn on screen on a 1920x1080 desktop, a phone held upright (390x844) and a phone held sideways (844x390), and require a clear gap; and the Quests button's public placement is checked: its settings and reserved rects, every anchor, offset, pos and hiding measured where it is drawn, opening the log by mouse, touch and pad (its glyph and a game menu's Quests entry), and at 1920x1080, 1280x720, 1024x576, 390x844 and 844x390 it covers none of navUiKit's HUD, the touch buttons or a rect another kit reserves over its spot. Run it here or in any world with questKit:
```lua
tools.use("tests", "run", { suite = "questKitTests" })
```
## Sample quests
Twelve ship in `quests/`. They are **off by default**: a world plays only its own quests, so a giver of yours never offers one of the kit's. Turn them on with `Quest.setup({ samples = true })` (the showcase world and the test suite do).
| quest | giver | kinds | what it shows |
|---|---|---|---|
| `mushrooms` | ada | collect, talk | this README's example |
| `qk_herbs` | ada | collect, deliver | needs `mushrooms` first |
| `qk_training` | tobin | defeat | |
| `qk_veteran` | tobin | defeat, talk | **level-gated**: unlocks at saveKit level 3 |
| `qk_lookout` | warden | goto | |
| `qk_patrol` | warden | goto ×2, talk | three steps; rewards XP and coins |
| `qk_watch` | bram | defend | the countdown extra |
| `qk_siege` | bram | defend, talk | **timed**: hold 45 s, all within 2 minutes; needs `qk_watch` |
| `qk_escort` | | escort | the escorted character's health extra |
| `qk_lost_notes` → `qk_stone` | mira | find; inspect + use | a two-quest chain, gated by the first quest and its story flag |
| `qk_beacons` | | use, defend | a **party** quest, repeatable |
## Known limits
- **Party and personal quests on two machines (#14448).** Two engines signed in to the same account collide as one player, so a party quest moving on for both players and a personal quest staying invisible to the other could not be shown live on two engines here. The party rules (one machine deciding, the same report counted once, members copying the decider's state) and personal-quest privacy (never sent to another machine) are covered by the test suite, which plays both machines' roles in one engine. Check it live with two accounts.
- **Installing takes a while (#21420).** questKit brings six kits and the kits those bring, and an install with several dependencies takes 47 to 94 s.
- **Screen roots ignore `position` and `top` (#11895).** questKit places its Quests button, open log, countdown and escort health inside area roots at explicit positions; a log style of your own (`logs.define`) should do the same.
- **3D text keeps its previous string (#7781).** A Text3D label whose text changes in place can keep drawing the old words, so questKit makes a giver's ! / ? marker, its name tag and a QuestBoard's text again whenever their words change. Do the same for labels of your own.
- **saveKit's save module arrives twice on a fresh install (#22737).** One install of questKit places saveKit's save module at two releases: the one questKit, inventoryKit and dialogueKit use, and the one saveKit's own host loads. Since 1.0.19 questKit points the host's copy at the kits' copy every time the host starts, so a player has one profile and it is saved; a fresh install can still log one harmless `~saveKit.save names no package` line per play.
- **Quest files added during a session.** questKit reads the world's quest files the first time it is used in an engine session, so a quest file added after that (after an earlier Play or a test run) is not offered until `Quest.reload()` runs or the world is opened again. A brand-new world following the first example is not affected.
- **Author in edit mode.** Write quests, catalogs and scenes in edit mode, then press Play.
- **The ZeroMind search description can lag (#19258).** Right after a release, ZeroMind's search can still describe the previous one for a while; this README and the package listing are current.
- **The web engine (#20750, #20946).** Frame rate on the web engine is a known platform issue (#20750). Releases are tested on the desktop engine; an agent cannot start a web engine (#20946), so the web check is done by hand.
- Non-player character bodies can show a placeholder player-name tag; QuestGiver and QuestEscort hide it.
## Changelog
- **1.2.1**: built on the current saveKit 1.3.27 and dialogueKit 1.1.6 (which now follows the current saveKit too, where dialogueKit 1.0.4 held saveKit 1.3.13), with inventoryKit 1.0.35, interactKit 1.6.22, navUiKit 1.3.31, pickupsKit 2.3.18 and the current engine library; package.yaml no longer pins the saveKit or dialogueKit version, so a game that installs questKit runs one saveKit copy. No questKit code changed.
- **1.2.0**: a **daily streak**: days in a row on which the player finished (`streakOn = "done"`, default) or claimed (`streakOn = "claimed"`) all of that day's goals, saved per player in saveKit (`questKitDailyStreak`), reset by a missed day, moved by the tester's day offset, shown under the board's title ("3-day streak" / "Sequência de 3 dias", best, a hint) with an optional bonus the game gives (`streakReward = fn(days) -> reward`, claimed on the board, paid through `onReward` with `goal.id == "streak"`). New: `Daily.streak()`, `Daily.claimStreakBonus()`, events `streak`, `streakLost`, `streakClaimed`. A DailyHost spawned while a scene still loads no longer stays held: one that has not ticked for two seconds is replaced (the board did not redraw after a language switch in that case). Every pt-BR daily and log line back-translated and marked `ai_reviewed`; streak lines checked at 0, 1, 2 and 1000000 days. `dailyTests` 14 (was 10). Built against the current engine library. Released through a pull request; it also records 1.1.1 and 1.1.2, which went to main without one.
- **1.1.2**: built against saveKit 1.3.26 (was 1.3.13 in the dependency list, which left a second, older saveKit copy in games that also install saveKit 1.3.26; that copy drew its own level bar) and the current engine library. Unused dependency copies removed. No questKit code change.
- **1.1.1**: the daily goals board below, released, with the pad focus handed back when the board closes (a Claim button left focused kept the player's keys in the UI).
- **1.1.0**: a daily goals board. `questKit.daily` draws `count` goals (3 by default) every UTC day from a pool the game defines, the same set for everyone that day (`seed = "day"`) or one of each player's own (`seed = "player"` or a seed function), counts them with `Daily.progress(counter, amount)` (add or max), and pays the reward through the game's `onReward(reward, goal)` on Claim. It turns over at UTC midnight, `Daily.setDayOffset(n)` jumps days for testers, and each player's board is saved in their own saveKit profile, written only on their machine. A ready Daily button and a phone-friendly board (44-point-plus tap targets, keyboard and gamepad navigable, G or Select opens it, Escape or B closes it) in English and Brazilian Portuguese, following a language switch at once. New test suite `dailyTests` (10) and the guide *How to add daily goals that change every day to my game*.
- **1.0.39**: built against navUiKit 1.3.30, whose map gallery records navUiKit's own words module (1.3.29's pointed at a copy one game held, which an install placed as an extra file; where navUiKit sits under `deps/` that copy hid the words module and the gallery failed to load). No questKit code change.
- **1.0.38**: no `names no package` lines and no components that fail to load once while a world loads. The packages an install places under `deps/` register after the world's own packages compile, so QuestGiver, QuestTarget and QuestZone (which required interactKit when their file loaded), the HUD's dialogueKit hook and the optional kit lookups logged `~interactKit.api names no package` or `~dialogueKit.present names no package`, most often in the browser. Each now asks `asset.tryResolve` first, which does not log, and tries again each frame (components) or on the next lookup until the kit is there. Built against navUiKit 1.3.29 (dafdc7b) and SecondWind 1.4.21, and no longer carries a stray single-file copy of navUiKit's words module, which hid navUiKit's own `~.words` from its gallery.
- **1.0.37**: the Quests button tries both sides of the screen before it falls to a bottom corner. It only looked on the side away from the minimap (or the tracker), so once a game pinned the tracker right of centre on a phone held sideways (farmLifeKit with navUiKit 1.3.29), the button took the far side, found it full and dropped to the bottom corner, onto the Use button. New test: "Quests button: tries the other side before a bottom corner".
- **1.0.36**: the Quests button keeps clear of every on-screen control, whatever device navUiKit last saw. It read only the touch buttons the engine draws, and only once navUiKit had seen a touch, so on a phone before the first tap (and in a sub-client forcing touch) it read none and could sit on the Jump button; and a button giving way to the Quests button is not drawn, so the Quests button could hide the very button it covered. It now reads every rect in `ui.safeArea().controls` (the engine's touch buttons, its Menu, the fan and its open sheet, and any rect a world states with `ui.setControlRegions`) and every button the overlay lays out, drawn or giving way, and a spot that covers one is never taken. New test: "Quests button: keeps clear of stated control regions on any device".
- **1.0.35**: no `~saveKit.save names no package` line at load. While a world loads, the packages an install places under `deps/` register after the world's own packages compile, so questKit's save hand-off (and its first `save` kit lookup) required saveKit before its name existed, and the engine logged that line even inside `pcall`. questKit now asks with `asset.tryResolve` first, which does not log, and looks again when play starts.
- **1.0.34**: quest words that live in a game's own package are read. `i18n.t` from questKit's code reads the world's catalogs, questKit's and the library's, never the package that holds a game's quests, so a game that moved its `locales/` into its package saw raw ids (`bw_banners`, `Inspect fair_ledger`) and blank summaries in the tracker, log and giver talk. The new `questKit.catalogs` module reads `<package>/locales/<tag>/<ns>.json` for the package around every quest data file (language by `i18n.pick`, base language, then `en`; `{{ name }}` values and `count` plurals). Giver names, target labels and escort names read the same way, and plain words given as a label (`"Open the Harvest Fair"`) are shown as written instead of being looked up as a key and warned about. New `Quest.say` and `Quest.addTextRoot`. Two new tests (58).
- **1.0.33**: the Quests button can be placed, hidden and shared. `Quest.ui.button({ anchor, offset, pos, visible, compact, hint, avoid })` anchors it to any side or corner of the safe area, nudges it, pins it, or hides it; `Quest.ui.buttonRect()` and `Quest.ui.onButtonRect(fn)` report where it is drawn; `Quest.ui.reserve(name, rects)` lets another kit's HUD claim screen rects the button keeps clear of at every screen size. On a pad the button shows the left-shoulder glyph (or your own `hint`), and `Quest.ui.menuEntry()` puts a Quests entry in a game's own pad menu. The default placement is unchanged when nothing is reserved. New tests: settings and reserved rects, anchors / offset / pos / hiding measured on screen, opening by mouse, touch and pad, and the button clear of the HUD and of a reserved rect at 1920x1080, 1280x720, 1024x576, 390x844 and 844x390.
- **1.0.32**: `Quest.setup({ logKeys = false })` stands down questKit's own log toggle (J, L, gamepad left shoulder), so a game whose keys clash (say the bumpers switch tools) opens the log from its own binding with `Quest.toggleLog()`. `logKeys = true` (the default) takes the toggle back at once, in play. The Quests button, Escape / B and the open log's controls work either way. New test: the toggle off and back on in play, by keyboard, gamepad and the button.
- **1.0.31**: the release in Questing Grounds of what 1.0.28, 1.0.29 and 1.0.30 brought (they were first published inside Crossroads Tales), built against interactKit 1.6.17 and navUiKit 1.3.18. No change in behaviour.
- **1.0.30**: hands navUiKit's compass, minimap and tracker rects to dialogueKit (1.1.5+) through its HUD provider hook, so conversation answers keep clear of them without dialogueKit knowing questKit. No other change.
- **1.0.29**: a quest giver's *Talk* prompt reads in the player's language each time it is drawn (*Conversar* in Brazilian Portuguese) and follows a language switch in play: questKit hands interactKit its own `questkit.talk` as live text (`Interact.setLabelText`, interactKit 1.6.16). Before, the label was rendered once when the giver spawned. A test checks it in both languages. And questKit's banner and radial trackers wrap navUiKit's current tracker after navUiKit reloads, not the one kept from before (the HUD kept drawing navUiKit's old tracker code until the engine restarted). The Quests button steps aside while a conversation is on screen, so dialogue answers never sit under it.
- **1.0.28**: Quest progress is saved the moment it changes (a deferred save could be lost when play stopped or the engine closed right after), and every play session listens for the party again, so friends who play together form one party in every session, not only the first. Four new quest logs, picked with the same `log` setting: `scroll` (a parchment scroll between wooden rods with a wax seal), `storybook` (a picture book with a ribbon bookmark), `pixel` (an 8-bit game menu) and `casefile` (a detective's case folder with an *Open case* / *Case closed* stamp), eight in all. Two new trackers, picked with the same `tracker` setting: `banner` (a ribbon with the quest's name and a pip per count) and `radial` (a progress ring per objective), drawn with navUiKit's theme so they follow all six HUD looks, six in all. Every new style works with keyboard and mouse, gamepad and touch like the others, reads from the kit's English and Brazilian Portuguese words, and has an in-world board look. Tests: 44. The Finnish catalog (1.0.25) is removed: the platform registers only English and Brazilian Portuguese, so a `fi` catalog failed the translation check and no player could choose it.
- **1.0.27**: A player who joins a party late now learns who is already in it. Every `hello` is answered with a small `hi` (never answered itself), and while a connected peer is still unknown the machine says hello again every 2 seconds, so a hello sent before the machine was connected is no longer lost for good. Before, a late joiner could count only itself as the party, decide party quests on its own and drift from the rest. Checked in the editor with two clients on one account: the late joiner's hello reaches the room; a full two-player check on two accounts with fresh engines is still to do.
- **1.0.26**: `Quest.reset(ids?)` forgets quests for the local player as if they were never started (the ids given, or all), saves at once and fires `changed` with reason `reset`, so a story game can start its story again and its quests can be done and rewarded again. `Quest.VERSION` reads the package version again (1.0.25 still said 1.0.24).
- **1.0.25**: Finnish for the kit's own words (`locales/fi/questkit.json`): the quest log, tracker, toasts, prompts and default giver lines read in Finnish when a game switches to it, so a Finnish game no longer shows "Quest started". No behaviour changed.
- **1.0.24**: built against pickupsKit 2.3.12, whose files record SecondWind 1.4.7, MatchFlow 1.4.0 and Lifeline 1.0.4 again, so installing questKit beside arpgKit no longer brings older single-file copies of SecondWind and MatchFlow. No questKit behaviour changed.
- **1.0.23**: installs next to arpgKit, economyKit and townsfolkKit with one release of each shared kit: built against dialogueKit 1.0.4, interactKit 1.6.4, navUiKit 1.3.9, inventoryKit 1.0.27, saveKit 1.3.13 (menusKit 1.3.19, controlsKit 1.3.2) and pickupsKit 2.3.11 (SecondWind 1.4.7, Lifeline 1.0.4, MatchFlow 1.4.0, juiceKit 1.2.10); every file naming them re-derived; package.yaml states saveKit 1.3.13 and dialogueKit 1.0.4; current engine library. No questKit behaviour changed.
- **1.0.22**: the package description and this README's opening now read as a store description that says what the kit gives you and how to install it, with no change to how the kit plays.
- **1.0.21**: published against the newest built-in engine library (@builtin a9870f6) with no change to how the kit plays, the Known limits for #11895 and #7781 are back in this README (both issues are still open and the kit still works around them), and both guides are exactly as they were in 1.0.19 again.
- **1.0.20**: published against the built-in engine library of the day (@builtin 41af9ae) with no change to how the kit plays; this README gained Known limits for #22737, #19258, the web engine and a quest file added mid-session (which needs `Quest.reload()`) but wrongly dropped #11895 and #7781, and both guides were edited (the how-to guide's #7781 gotcha swapped for the mid-session note, the example guide's intro reworded), all of which 1.0.21 puts right.
- **1.0.19**: quest progress, XP, level and items now survive closing and reopening the engine on a fresh install, and a quest change made at the moment play stops is saved too.
- **1.0.18**: walk-over pickups count again on a fresh install. Picking up the README's five mushrooms removed them but added nothing to the bag or to the tracker, so the quest could not be handed in. The cause was in questKit itself: its own references to inventoryKit's `inventory` and `items` modules had been recorded against an older inventoryKit release than the one an install brings, so a fresh install placed a second, older copy of those modules just for questKit. The pickup went into inventoryKit's own bag and questKit counted from the other copy. questKit is now published against the same inventoryKit release its install brings (and against the same pickupsKit and saveKit releases inventoryKit itself uses), so there is one copy of each. The per-frame inventoryKit tick added in 1.0.15 is removed: it was a guess at the same problem and only drove questKit's own copy. `Quest.VERSION` reports the package's version again, so the test suite is 38 of 38. Verified by following the README's first example on a brand-new world. The Known limits no longer cite reports that are about something else.
- **1.0.15 to 1.0.17**: a per-frame inventoryKit tick and two documentation releases that blamed the missing pickups on the platform. Both were wrong about the cause; see 1.0.18.
- **1.0.14**: interactKit and navUiKit, the other two dependencies behind the install problem below, state no version too, for the same reason pickupsKit's line was changed in 1.0.12. Verified on a brand-new world: the install now completes, and E at Ada opens her conversation (interactKit's own `Interactable` component had been landing on a broken partial copy of itself in a fresh install, which questKit could not route around; updating interactKit's own pin clears it). Walking over the mushrooms was not re-verified clean after this fix, in the same session: see the note below.
- **1.0.12**: the pickupsKit dependency states no version. 1.0.11 pinned it to the version pickupsKit shipped that day, but pickupsKit republishes often enough (2.3.6 to 2.3.7 inside the same afternoon) that a stated version goes stale within hours and the install's own version-match gate then refuses the package; questKit's own code never reads a version number, so there is nothing to lose by not stating one. README and notes.
- **1.0.11**: a fresh install works again. The ZeroMind closure error on dialogueKit (every version answering HTTP 404 on one asset) cleared on its own; the install was then refused by a version mismatch of questKit's own making, pickupsKit's dependency line still saying 2.3.0, a version pickupsKit no longer serves (inventoryKit requires pickupsKit without pinning a version, so a full install always resolves it to pickupsKit's current release). Fixed in 1.0.12, see above. Verified on two separate brand-new worlds.
- **1.0.10**: two guides ship inside the package: *How to add quests to my game* (quest log, objective tracker, quest givers, objective kinds, rewards, party and personal quests, styles, saving) and *Example: a quest chain from an empty world* (collect 5 mushrooms, talk to Ada, deliver the basket), followed step by step in a brand-new world; the README links both. Published from the current engine library (@builtin a624f91). No behaviour change.
- **1.0.9**: the defend countdown shows only while the player is defending. Before, a defend step that was current (one restored from a save, or one the player had walked away from) kept the countdown on screen everywhere with *Get back to the area!*, over whatever the player was looking at; in the showcase it covered the gallery from the moment Play started. Now it appears when the player steps into the area, stays while they hold it or have just stepped out, and hides once they are 15 m past the edge; the tracker keeps the objective and its waypoint the whole time. The showcase world has a new cover.
- **1.0.8**: documentation only. The 1.0.7 entry and the components table now describe how the mushroom is drawn (through `QuestMesh`); no behaviour changed.
- **1.0.7**: installs into a fresh world again. 1.0.6 was refused by a fresh world because its references to the engine's Model component (in the giver markers and the mushroom model) had been recorded against a dependency's pinned copy of Model and were published with no version. The markers, QuestTarget and QuestZone now name the Model component at run time, so the installing world's own engine copy is used. The mushroom model no longer stores a Model component at all: it carries the new `QuestMesh` component, which holds its mesh and material and adds the engine's Model when the mushroom appears, so it draws the same in any world.
- **1.0.6**: the Quests button keeps a clear gap from the minimap as it is drawn, bezel and badge included (1.0.5 measured against the minimap's smaller layout box and touched it by a few points), on desktops and on phones held upright or sideways; a short screen gets an icon-only button instead of one pushed onto the minimap, and the open log is set beside or under the minimap. The touch Interact and Jump buttons are avoided only while the player plays by touch. Installing questKit no longer pulls in the showcase world's gallery pieces (a test listed every component in the world, which recorded them as dependencies). Tests: 38, with each quest log's open, close and walk check on each device as its own test, and three on-screen gap checks.
- **1.0.5**: the player can always walk. The quest log takes its controls only while it is open and gives them back when it closes, by keyboard, gamepad or touch, in all four styles (before, the log's controls stayed live from the start of play and stood walking down for good). A player who spawns with an older pinned copy of the engine's `PlayerAvatar` link (some dependency installs bring one) is linked again, so the character controller hears their keys, stick and touch stick. The Quests button and the open log keep clear of the minimap at every screen size, phones held upright or sideways included, and the button keeps clear of the on-screen touch buttons. E at a giver goes through interactKit's own Interact control (the extra relay through inventoryKit's controls is gone). Giver markers, name tags and quest boards make their text again when it changes (#7781). Tests: 24, three of them in play with real keyboard, gamepad and touch input.
- **1.0.4**: name-tag givers always show their tag: the tag is made even before the giver's name has loaded (or when it has none), so the name-tag style shows its available / in progress / ready icon from the first frame, and a giver without a name shows the icon alone instead of an internal name. Objective kinds carry tags, listed by `Quest.describeKinds()`. The Quests button sits under the minimap, on the side away from the tracker, and moves whenever navUiKit's tracker, compass or minimap move or resize; it and the defend countdown are now placed where they are meant to be (a screen's root ignored their offset before). The journal's selected tab and filled buttons (Track) draw their dark background, so their cream labels read clearly.
- **1.0.3**: a fresh install loads again (the mushroom item is defined from code instead of a data file naming inventoryKit's item type, and the mushroom art's Model reference is pinned to @builtin). Items picked up by walking over them count for collect objectives. The kit's sample quests appear only with `setup({ samples = true })`, so they never leak into a world that did not ask for them; three new samples (a timed defend, a level-gated quest, a three-step patrol) make twelve. Pressing E (gamepad west) at a giver opens the conversation even though inventoryKit binds the same key to opening chests. Escorts complete when the escorted character reaches the destination, and the escort health readout shows the character's translated name. `track(nil)` and the log's *Stop tracking* button turn the tracker off. The Quests button and the defend countdown move clear of navUiKit's compass, minimap and tracker on any screen shape. An open log, the tracker and the mushroom's name switch language live. Portuguese: the lost-notes quest's words load, the last untranslated texts are translated, and every translation has its review record.
- **1.0.2**: giver name tags and gallery labels never show a raw translation key or an internal entity name: they wait until the catalogs have loaded and re-read their words when the language or catalogs change (new `markers.setName`). Ground rings and beams no longer cast shadows.
- **1.0.1**: a fresh install loads: questKit's references to the engine's Model component are pinned to @builtin (1.0.0 recorded them against a copy only the showcase world held, so installing into a new world was refused). Giver name tags stand in front of ground beams, beams are shorter, and QuestGiver has a `tagHeight` field.
- **1.0.0**: first release.