Skip to main content

Chapters

Chapters group story quests into narrative arcs. They provide structure to the storyline, track player progress across multiple quests, and grant bonus rewards when all quests in a chapter are completed.

How Chapters Work

  1. Each chapter defines an ordered list of quest IDs
  2. Players progress through the quests in sequence (each quest has prerequisites pointing to the previous one)
  3. When all quests in a chapter are completed, the chapter itself is marked complete
  4. Chapter completion grants bonus rewards and sets a fact that can unlock the next chapter

chapters.json Structure

Chapters are defined in chapters.json in the quest config folder. Here is the structure:

{
"_config_version": "2",
"chapters": [
{
"id": "chapter_0_tutorial",
"name": {
"en-US": "Prologue: Awakening",
"de-DE": "Prolog: Erwachen"
},
"description": {
"en-US": "Learn the basics of survival in Orbis.",
"de-DE": "Lerne die Grundlagen des Ueberlebens in Orbis."
},
"quests": [
"tutorial_awakening",
"tutorial_first_steps",
"tutorial_workbench",
"tutorial_safe_base"
],
"order": 0,
"category": "main",
"rewards": [
{ "type": "currency", "currency": "quest_tokens", "amount": 50 },
{ "type": "title", "title_id": "newcomer" }
],
"setsFact": "tutorial_completed"
}
]
}

Field Reference

FieldTypeRequiredDescription
idstringYesUnique chapter identifier
nameobjectYesLocalized chapter name (keyed by locale, e.g. en-US, de-DE)
descriptionobjectNoLocalized chapter description
questsstring[]YesOrdered list of quest IDs belonging to this chapter
orderintegerYesSort position (lower numbers appear first)
categorystringNo"main" (default), "side", or "event"
unlockConditionstringNoFact condition that must be true to unlock this chapter
rewardsobject[]NoBonus rewards granted when the chapter is completed
setsFactstringNoFact key set to true when the chapter is completed
hiddenbooleanNoIf true, chapter is hidden until unlocked (default: false)

Unlock Conditions

Chapters can require a fact condition to be met before they become available to the player. This creates a chain where completing one chapter unlocks the next:

{
"id": "chapter_1_emerald",
"unlockCondition": "tutorial_completed == true",
"setsFact": "chapter_1_completed"
}

The unlockCondition uses the same fact condition syntax as quest prerequisites. If omitted, the chapter is always available (used for the first chapter).

tip

Each chapter's setsFact creates the key that the next chapter's unlockCondition checks. This forms an automatic chain.

Chapter Rewards

When a player completes all quests within a chapter, they receive the chapter's bonus rewards on top of the individual quest rewards. Supported reward types:

TypeExampleDescription
currency{ "type": "currency", "currency": "quest_tokens", "amount": 100 }Quest Tokens
title{ "type": "title", "title_id": "forest_protector" }Unlocks a player title
lootbag{ "type": "lootbag", "lootbag_id": "chapter_1_reward" }Grants a loot bag
achievement{ "type": "achievement", "achievement_id": "story_complete" }Unlocks an achievement
note

Chapter completion rewards are granted in addition to rewards from individual quests. Players receive a notification when a chapter is completed.

Default Chapters

The server ships with six chapters covering the full storyline:

OrderChapterQuestsRegionKey Reward
0Prologue: Awakening10Tutorial Area"Newcomer" title + 50 tokens
1The Emerald Wilds5Forest / Kweebec Village"Forest Protector" title + 100 tokens
2The Forgotten Temple4Temple Depths"Temple Scholar" title + 100 tokens
3The Howling Sands4Desert / Ruins"Sand Survivor" title + 100 tokens
4The Whisperfrost Frontiers4Frozen North / Mountains"Frost Conqueror" title + 100 tokens
5The Devastated Lands4Volcanic Wastelands"Legend of Orbis" title + 200 tokens

The progression flows: Prologue -> Emerald Wilds -> Forgotten Temple -> Howling Sands -> Whisperfrost Frontiers -> Devastated Lands.

Chapter Progress Tracking

The system tracks chapter progress per player:

  • Current chapter -- The first unlocked, non-completed main-story chapter
  • Progress counter -- Number of completed quests vs. total quests in the chapter (e.g. 3/5)
  • Completion flag -- A fact is stored when the chapter is finished, both as an internal flag (chapter_<id>_completed) and the custom setsFact value

Categories

Chapters support three categories:

CategoryDescription
mainPrimary storyline chapters (shown in main progression)
sideOptional side-story chapters
eventTime-limited event chapters

The Quest Book's Story tab shows quests from main chapters by default.

Custom Chapters

Server owners can add custom chapters alongside the defaults. Place a JSON file in the custom/ subfolder of the quest config directory:

configs/kyuubisoft_questbook/
chapters.json # Default chapters
custom/
custom_chapters.json # Your additional chapters

Custom chapters follow the same format as the default chapters.json. They are merged with the defaults and sorted by order. Use order values higher than the defaults (e.g. 100+) to place custom chapters after the built-in story.