Quests that come with an adventure
Quests that come with an adventure: an Adventure compendium can carry a ready-made quest log. When a GM imports the adventure, its quests are added to the log, hidden from players (unless the adventure marks a quest as visible), ready for the GM to reveal when the party gets there. Quests that are already in the log are left as they are, so importing the adventure again never resets the party's progress (a quest you deleted comes back, though). The import window lets the GM choose what is added (see below); Import quests from adventures in Settings sets where its choices start.
If an adventure was made from a world that used the quest log and brings the module's two data journals along, their quests are merged into this world's quest log and the extra journals are removed.
Choosing what to import
The adventure's import window lists what the adventure brings for the quest log as rows of its own Contents list with their counts; only the kinds the adventure has are listed.
- While Import All is ticked, the rows are ticked too and everything is added.
- Untick Import All to choose: each row then decides whether its quests, rewards or notes are added. The rows start from the Import quests from adventures setting.
A reward or note of a quest the adventure keeps hidden stays hidden, even when the quests themselves aren't imported.
Making an adventure that brings quests
The rest of this page is for adventure makers.
An Adventure document can carry a ready-made quest log: quests, quest rewards and notes (handouts). It is stored in the Adventure's flags, in the same format as an export file:
"flags": {
"dxcufgbs-quest-log": {
"questLog": {
"module": "dxcufgbs-quest-log",
"format": 1,
"quests": [
{ "id": "myAdvQuest000001", "hidden": true, "title": "The Missing Blacksmith",
"questType": "main", "chapter": "Chapter 1",
"giver": "Mayor Holt", "acquiredAt": "The Green Dragon", "reward": "200 gp", "description": "…",
"tags": ["Blacksmith"], "hiddenFields": ["reward"],
"locations": ["The old mine", { "name": "The smugglers' cave", "hidden": true }],
"stages": { "s1": { "title": "The mine", "text": "…", "sort": 1 },
"s2": { "title": "The truth", "text": "…", "sort": 2, "hidden": true } },
"objectives": { "o1": { "text": "Find the blacksmith", "stage": "s1", "sort": 1 },
"o2": { "text": "Confront the mayor", "stage": "s2", "sort": 2 } },
"notes": { "c1": { "type": "clue", "text": "Soot on the mayor's boots.", "hidden": true } },
"gallery": { "g1": { "src": "modules/my-adventure/images/mine.webp" } },
"items": { "i1": { "name": "Silver key", "have": false, "sort": 1 } },
"npcs": { "n1": { "name": "Bertha Stone", "faceId": "<Familiar Faces & Places id>", "hidden": true } } }
],
"rewards": [
{ "id": "myAdvReward00001", "name": "Favour of the Harbour Guild", "maxUses": 1,
"questId": "myAdvQuest000001", "links": [{ "type": "faction", "name": "Harbour Guild" }] }
],
"partyNotes": [
{ "id": "myAdvNote0000001", "title": "The smuggler's map", "text": "…", "tags": ["Chapter 1"],
"questId": "myAdvQuest000001", "images": ["modules/my-adventure/images/smugglers-map.webp"] }
]
}
}
}
Putting it on the adventure
Putting it on the adventure. The easiest way is to build the quests, rewards and notes in a world (hidden, with the GM's quest window) and run game.modules.get("dxcufgbs-quest-log").api.storeInAdventure(uuid) with the adventure's compendium unlocked. It stores the whole log, hidden entries included (they stay hidden); {includeHidden: false} leaves out hidden quests, rewards, notes and hidden parts. Run it again after changing the log: it replaces what the adventure carried.
Or, when building the adventure with the Foundry CLI, paste an export file's contents into questLog (see Import and Export). Images are file paths, so keep them inside the adventure module (modules/<your module>/…).
What happens on import
What happens on import. When a GM imports the adventure, the quests, rewards and notes ticked in the import window (see Choosing what to import; without the window, what Import quests from adventures says) are added to the log:
- Anything without
"hidden"is imported hidden; set"hidden": falsefor one players should see right away. A reward or note whosequestIdis a hidden quest is hidden with it. - Quests, rewards and notes already in the log (same id) are left as they are, so importing the adventure again never resets the party's progress or a reward's uses. Something the GM deleted comes back, though.
- If the adventure also brings the module's two data journals (it was made from a world that used the quest log), their contents are merged into this world's log and the extra journals are removed.
With the setting off, or to add the quests later, run importAdventureQuests(uuid) from the API ({quests: false}, {rewards: false} or {partyNotes: false} leaves that kind out).
Fields
Fields.
- Give every quest, reward and note a fixed
id(letters and digits, up to 32): the ids are how a re-import recognises entries that are already in the log, and what links point to. The keys of stages, objectives, notes, images, items and NPCs follow the same rule and are what part links point to (lists instead of keyed objects work too, with generated keys). - Quests:
"questType"("main"or"side") and"chapter"set the categories;"status"is"active"(default),"completed"or"failed". Places go in"locations", as a list of names or{"name": "…", "hidden": true}(an old single"location"text still works). Stages are{title, text, hidden, sort}, with"stage": "s1"on their objectives (an objective of a hidden stage is hidden with it). Notes are{type: "note" | "clue", text, images, hidden}, images{src, hidden}. Items needed are{name, have, hidden, sort}(optionally"uuid"and"img"of a linked item), related NPCs{name, faceId, hidden, sort}(faceIdof a Familiar Faces & Places NPC, optionally"uuid"and"img")."hiddenFields"lists fields hidden on their own:questType,chapter,giver,acquiredAt,location(every place),reward,description,tags. Hidden parts and fields stay hidden after the quest itself is revealed, until the GM unhides them. - Rewards:
name,description,img,maxUses(0 = no limit),perCharacter(uses per character for a "one each" reward; the total then follows the party size of the world that imports it, andmaxUsesis only a fallback),questId, andlinks({type: "place" | "npc" | "faction" | "other", name, uuid}). - Notes:
title,text,tags,questId,links(as rewards),images(a list of paths) andpinned.
Linking from the adventure's journals
Linking from the adventure's journals. @Quest[<quest id>]{label} links a quest, and @Quest[<quest id>/objectives/<objective id>]{label} one part of it (/stages/, /notes/, /locations/, /items/, /npcs/ the same way). @Reward[<reward id>]{label} and @PartyNote[<note id>]{label} link a reward and a note. For the GM a link to something hidden is dashed and has a Reveal (or Unhide) button, so the adventure's text can say "reveal this quest now" right where it happens. See Quest Links.
This page mirrors the Quest Log wiki on GitHub.