Myth Quests

Quests, dialogue and a journal for Unreal Engine 5.8. This manual takes you from installing the plugin and building a first simple quest to chapters, arenas and connecting the quest system to any game, from Blueprint and from C++.

1What Myth Quests is

What the plugin does

Myth Quests is two things in one Unreal Engine 5.8 plugin:

The Publish… button connects the two: the editor checks the project and turns it into ordinary Unreal assets, a quest catalog and one asset per quest. The game works only with those assets; the editor project itself never goes into the game build.

The Myth Quests editor inside Unreal with the sample open
The Myth Quests editor inside Unreal. The bundled sample is open: the project's contents on the left, the graph in the middle, the properties of the selection on the right.

A quest's route: from idea to game

  1. Project. All the quests, characters, facts and dialogue of one game live in one project asset (Myth Quests Project) in the Content Browser. You open it in the Myth Quests editor.
  2. Quest. You create a quest in the project and build its graph: start → steps with goals → branches → endings.
  3. Check. The editor highlights problems by itself: a broken branch, a goal with no event, a fact nobody writes.
  4. Publish. The publish button writes the catalog and the quests to /Game/MythQuests/<project key>/ and produces the "integration sheet", the list of what the quests need from the game: which events to send, which facts to write, which game actions to carry out.
  5. Game. The catalog is registered in the project settings, and the game starts quests from Blueprint or C++, sends events ("lit the signal fire", "killed an enemy") and shows the journal. Everything else (moving through steps, endings, rewards, saving, networking) is done by the plugin.

Glossary

TermWhat it is
ProjectA Myth Quests Project asset: the whole narrative of one game, its quests, chapters, characters, facts, dialogue and pictures. It lives only in the editor.
QuestA graph of steps with one start and one or more endings.
Step and goalA step is a node of the graph. A goal is what the player must do at that step ("light the fire", "kill 10 enemies"); a goal can have a counter.
EventA signal from the game to the quest system: "X happened". Goals wait for events.
FactA named value (yes/no or a number) the world remembers: "the bridge is burnt", "reputation 12". Conditions and branches read facts.
EndingA quest's outcome: completed, failed, or any resolution of your own. Rewards are given at endings.
Chapter and campaignA chapter is a group of quests (an act of the story). A campaign is the order of chapters: the next one opens on an ending of the previous one.
Game actionA command with parameters from a quest to the game: "open the gate", "spawn a squad", "give an item". The game implements the action itself.
CatalogThe Myth Quest Catalog asset Publish writes: the list of quests the game knows. It is registered in Project Settings → Myth Quests → Catalogs.
Quest scopeWhose quest it is: personal (each player has their own), party (one for the whole group) or world.

2Installation and first launch

You need Unreal Engine 5.8 (tested on 5.8.4) on Windows. The quest editor inside Unreal runs only on Windows; quests in a packaged game run on Win64 (Mac, Android and iOS are declared but not tested; Linux is not supported).

Installation

  1. From Fab. Install the plugin into the engine through Fab; it is installed as an engine plugin, already built.
    Expected: the engine's plugins folder has a MythQuests folder with MythQuests.uplugin, Source/, Content/, Examples/ and Docs/.
  2. Or by hand. Copy the MythQuests folder into your project's Plugins/ folder (create it if there is none). The folder from Fab (it has Binaries/) opens without a rebuild; a folder with sources only is built when the project opens, and then Unreal asks for the C++ tools, as with any plugin that has code.

Enabling the plugin

  1. Open the project, Edit → Plugins, find Myth Quests (Gameplay category), tick it and restart the editor when it asks.
  2. Expected after the restart: Project Settings has a Myth Quests page, and the Window menu has a Myth Quests item that opens the quest editor.
    If the item is missing: the plugin is not enabled, or the project is not open on Windows.

Opening the editor

  1. Window → Myth Quests. The editor window opens on its Home page (below, under Home). The console command MythQuests.OpenEditor does the same.
  2. A new project. On Home press New Project. Unreal shows its usual asset save dialog titled New Myth Quests Project (default folder /Game, name MythQuestsProject). A project can only be saved inside /Game.
    Expected: a Myth Quests Project asset appears in the Content Browser and opens at once in the same editor window.
  3. Or from the Content Browser. Add → Myth Quests → Myth Quests Project creates the same asset; double-clicking it opens it in the editor.
  4. An existing project. Open Project on Home, or double-click the project asset. Home lists recent projects and quests under Recent projects and Continue quests.

Where your work is kept. A project is an ordinary Unreal asset: you save it, commit it to source control and move it with the project. Until the asset is saved, edits live in the editor's memory. Before every save the previous version of the project is copied to Saved/MythQuests/SourceRecovery; the Project → Recover previous project menu item brings it back. If a save fails, your edits stay in the window: save again, or write the project out as a file (Project → Save project file…).

Plugin settings

The plugin has two settings pages.

Project Settings → Game → Myth Quests

Project Settings, the Game - Myth Quests page
Project Settings → Myth Quests. Stored in Config/DefaultGame.ini and shipped with the game build.
GroupField (default)What it sets
CatalogsCatalogs (array)The quest catalogs every instance of the game loads in the background at start, on the server and on every client. A catalog that is not in the list is unknown to the game.
NetworkRequests Per Second (20)How many requests per second are accepted from one player's client.
Request Burst (40)How many requests can arrive at once above that rate.
Shard Packing Entries (1024)An internal setting for packing replicated entries.
Player Key Grace Seconds (5)How long the server waits for a player key after login; if it does not arrive, the player plays the session as new.
Travel Hold Seconds (60)On a full level change, how long to wait for a player to load before treating them as gone.
DebuggerClient Debug Commands (In the editor only)Whether the server runs clients' debug commands: only in the editor, also in packaged Development builds, or never.
RadioRadio Reading Chars Per Second (15)Reading speed for a radio line with no sound and no duration.
Radio Reading Pad Seconds (1)Extra time added to such a line.

Editor Preferences → Plugins → Myth Quests

Editor Preferences, the Plugins - Myth Quests page
Editor Preferences → Myth Quests. A personal editor setting; it does not go into the game.

Maximum editor windows (5): how many Myth Quests windows can be open at once, from 1 to 5.

3The editor window

The editor is one Unreal tab. It shows either the Home page or the open project; the house button in the top-left corner switches between them. Up to five such tab windows can be open at once.

Home

The Home page inside Unreal
Home. At the top, the Continue card with the quest you left off at; below it recent projects, recent quests, quick creation of records and starter templates.
ElementWhat it does
The Continue · open in this window, as you left it card (in large type, the quest you left off at) and the Continue buttonReturns to the project that was open in this window, at the same place. The card shows only when you came to Home from a project.
New ProjectA new project asset (see Opening the editor).
Open recent, Open ProjectOpen a recent project or any project.
RefreshRe-read the lists.
Recent projects: Open, Open in new window, Remove from recentsOpen the project in this window, in a new window beside it, or remove it from the list (the asset itself is not deleted).
Continue quests: ContinueOpen the project straight at that quest.
Create asset: New Character, New Dialogue, New Location, New Item, Open Library Quickly add a record to the shared library (characters, dialogue, locations, items) that projects then use.
Starter templates: Preview, Browse all templates Starting points: an empty project (Blank project), a branching choice (Branching choice), a branching conversation (Branching conversation), an investigation (Investigation).
On the left: Home, Projects, Library, TemplatesThe sections of the Home page.

A project: the parts of the window

A project right after opening: the chapter map
A project right after opening. In the middle, the chapter map: here the sample has one chapter, "The Crossing", and its card lists its two quests; it opens at the start of the game (Opens at game start). At the bottom left, the legend of links between chapters, in one row.
The quest The crossing is open, showing its graph
The quest "The crossing" is open. The contents tree on the left, the quest graph in the middle: start → "Light the signal fire" → "Choose how to cross the river" → the "Which crossing?" branch to the bridge (Bridge) or the ford (Ford).

The window has five areas:

  1. The top bar. On the left the Home house, the project name and its state (Saved to asset, meaning everything is written into the asset). Then the workspaces: Quests, Dialogues, Characters, World, Journal, Playtest. On the right Search the project… across the whole project, the Project, View and Help menus, and the Publish… button (the same as Project → Export…).
  2. The left column: the Contents tab (a tree: project → chapters → quests, with Unassigned, the quests outside chapters, and Sub-quests apart) and the Catalog tab. The Search contents… field with the Filters button beside it, and under it the + Chapter and + Quest buttons; + New sub-quest is in the Sub-quests group. The « button collapses the column.
  3. The graph toolbar. Back/forward through the navigation history, undo/redo, the breadcrumbs (project › chapter › quest; click to jump anywhere), the Graph / Arcs switch, and for an open quest Add step, Check, Start playtest, Quest brief and More.
  4. The graph in the middle: step cards and the wires between them. Double-clicking a chapter (or selecting it and pressing Enter) opens its graph. In the graph's bottom-right corner sits the zoom: −, the percentage (click it for 100%), + and Fit (the same as in the More menu).
  5. The bottom bar with the Details, Playtest, Problems (with the number of problems), Trace and Journal panels, a hint for the current action and the graph state (Graph: draft, or Draft · N to fix when the quest has something to fix).

Properties of the selected step

The step Light the signal fire is selected, with the step's properties panel on the right
The step "Light the signal fire" is selected. The step's properties panel opened on the right (its header shows the step kind Goal above the step's name, and the Ready mark), and in the tree on the left the quest expanded to its steps.

Clicking a step card opens its properties on the right; Close details closes the panel. The panel's header shows the step kind (Goal) above the step's name, and a Ready or Needs setup mark. Below it the properties sit in groups; for a goal step these are, from top to bottom:

Bottom panels and the check

The result of Check
Check on the graph toolbar checks the open quest and shows the result in the Problems table, switched to This quest. Here the quest has nothing to fix. A problem is listed with its weight (Blocks publishing, Needs setup or Notice), where it is and what to do about it.
The Problems panel
Problems on Whole project: the problems of the whole project; the Sample has none. A typical notice: quests change a fact but nothing reads it; if the game reads it, give it a gameplay tag.
The Playtest panel
Playtest: the state of the playtest (Open Playtest opens it; on its own it does not run the game).
The Trace panel
Trace: the step-by-step trace of the playtest; until a playtest runs, the panel is empty.

The quest check and the project's problems are one Problems table: the This quest / Whole project switch picks what it shows, Check again checks again, and Open source on a row takes you to the problem. Rows carry different weight: Blocks publishing (red) means the project will not publish with it; Needs setup (yellow) means the quest is still a draft and something is missing before publishing; a Notice (blue) is a hint that does not block publishing.

Top menus

The Project menu
Project: the Project, Files and recovery, To the game (export and publishing) and Review and production groups.
The View menu
View: the Project screens, Find and compare, Windows (a second window) and Workspace groups.
The Help menu
Help: the Learn (the guide, the glossary) and Support (diagnostics) groups.
The More menu on the graph toolbar
More on the graph toolbar: the Steps group (adding and editing steps), This graph (the graph's commands, right there with no second click) and View (zoom, panels, focus).

The menu items sit under group headings; the table below lists them by menu.

MenuItemWhat it does
ProjectProject nameThe project name shown in the window and on Home.
Save project file…Save a portable copy of the project as a file (a backup, or to hand to someone else).
Open projectOpen another project.
Recover previous projectBring back the version of the project saved before the last write.
New questA new quest.
Authoring history, Apply pending Unreal editsThe edit history, and applying edits made to this project in other windows.
About Myth QuestsThe plugin version.
Export…Inside Unreal, opens the publish window: the project check and the Publish button (section Publishing). The Publish… button on the top bar does the same.
Review…, Production…, Game resources…, Quest costs…, Add two-choice starter quest…The "Review and production" group: a project overview, production screens, the game's resources, quest estimates, and a ready starter quest with a choice between two options.
ViewFacts, Files, Reference board, Scenarios, TemplatesProject screens: all facts, files and pictures, a reference board, test scenarios, templates.
Project search, Localization, Compare saved versionsSearch, translations, comparing saved versions.
New windowA second editor window on the same project (see Several windows).
Background scope, Background / images…, Workspace preferences…The workspace background and its settings.
HelpGuide / glossary…The built-in guide, worked techniques and a glossary of terms.
Terms for current taskThe terms that apply to what you are doing right now.
Diagnostics / host status, Native diagnostics / source tools…Internal diagnostics (needed when you contact support).
More (on the graph toolbar)Steps: Add, Edit. This graph: Go to start, Validate, Auto-layout…, Game actions and events…, Game integration sheet…, Reactions…, Radio channels… and more. View: Fit graph, 100%, Frame selection, Navigator, Inspector, FocusAdding and editing steps; the graph's commands (check, auto layout, game actions and events, the integration sheet, reactions, radio channels); fit and 100% zoom (also in the graph's corner), frame the selection, show or hide the left column and the properties panel, focus mode.

Workspaces

The buttons on the top bar switch what the middle of the window shows. The project stays the same.

Dialogues
Dialogues: dialogue scenes (Scenes) and their actions; on the left, a catalog of scenes, characters, factions, locations and items.
Characters
Characters: characters; the Characters, Factions, Locations, Items and World facts tabs; the Add character and Game resources… buttons.
World
World: the same world records as dossiers: locations, items, factions and world facts.
Journal
Journal: journal text by quest and entry, text variants with conditions, and a preview of what the player will see.
The Playtest workspace
Playtest: a test run right in the editor, without running the game. Until a run starts, the page invites you to begin: New run from current project, Set up the world for a playtest (the starting state of the world), Pause playtest and three numbered steps. Details are in the first-quest section.

Several windows

You can keep up to five editor windows open at once, for example to work in one quest and see the changes in another straight away. A new window opens as a tab beside the one it was called from:

How the windows live together:

Two editor windows as tabs
A second window opened through View → New window: the "Myth Quests sample - 2" tab sits beside the first. You can tear it off and dock it anywhere in Unreal, like any tab.

The number of windows allowed is set by Maximum editor windows (1–5) in Editor Preferences → Plugins → Myth Quests. Each window is a separate embedded browser with its own copy of the project, so on a large campaign fewer windows save memory.

4Your first quest

Let's build a simple quest, "Find the lost scout": the player takes the quest, completes one goal, and the quest ends. Then we test it right in the editor, without running the game.

Create a quest

  1. In the left column press + Quest (or Project → New quest).
    Expected: the New quest window with the Title and Chapter fields.
  2. Type a title, pick a chapter and press Create Draft. The note in the window says what will be created: Start › Goal › Complete, a start, one goal and a successful ending; the owner is the player, with manual acceptance. Create quest idea instead adds a placeholder quest with no graph.
  3. Expected: the quest appears in the tree under the chapter, a graph of three cards is in the middle, and the goal's properties panel (Goal above the step's name in its header) is open on the right with the name Describe the player task selected.
The New quest window
The New quest window.
The title is typed in
The title is typed in and the chapter chosen; next, Create Draft.
The new quest: Start, Describe the player task, Complete
The quest draft. The goal reads Needs setup · choose completion criterion: until you choose what closes the goal, the quest can be saved, but Check and the playtest are blocked.

Set up the goal

  1. In the goal's properties panel, in the What the player sees group, set Name, the goal text for the player ("Find the scout by the old tower").
  2. In the Completes when group: How this goal completes, what closes the goal. For a first quest choose Game event.
  3. Game event: which event to wait for. An event is declared once per project (More → This graph → Game actions and events…, see Events) and is then picked from a list. How many times: how many times it must arrive.
  4. Expected: the Needs setup label on the card is gone, and under it you see Game event · the event name.
    If it stays: no event is chosen, or the goal has no count.

Add steps

Add step on the graph toolbar opens the Add a step menu with every step type (details in Steps, goals and branches):

The Add a step menu
Add a step. A search field at the top; below it the step types in five groups, Goals, Flow, World, Sub-quests and Endings: goal, player choice in a dialogue, branch, parallel goals and their join, merging branches, wait, effects, game action, sub-quest call, endings. Each has a short name and a line of explanation. The bottom row, Also, holds the commands that create no step (for example Open in new window).

The new card is placed in the graph; wires run from an output of one card (the circle on the right, for example Success) to an input of another (the circle on the left; a card's single input carries no label, and the properties panel calls it Activate). To remove a wire, use Disconnect wire in the properties panel.

Quest settings

The quest's start is selected, with the quest settings at the bottom of the panel
Start is selected. The last group of the properties panel holds the settings of the quest itself, Quest settings · <quest> (collapsed, it shows their summary in one line). Inside: Title, category and chapter, Quest brief and beats, Multiplayer interaction, Visual groups and Runtime → Quest time limit.

The quest settings (category, title, chapter, co-op, timings, availability, repeat) open from any of its cards. Details are in Arenas, repeatable and co-op quests.

Playtest

Start playtest on the graph toolbar plays the quest in the editor: the Playtest panel opens at the bottom, showing which step the quest is at and which goals are active, and you can "send" the event a goal is waiting for without running the game.

The playtest is running
A playtest of the Showcase quest. At the bottom, the Playtest panel: the Play, World, Next quests, Why this changed and History / branches (author) tabs. The Play tab has four columns: Quest now (the goals and their progress), Player does (the conversation and what the quest waits for from the player), Game sends (what the quest waits for from the game, with Send buttons) and What happened (the newest history lines).

Readiness check. Check on the graph toolbar checks the quest. While it is a draft, the check lists what is missing; a quest with errors will not publish (see Publishing).

5Steps, goals and branches

A quest is a graph of step cards. Each step has inputs (on the left) and outputs (on the right); a wire passes control from an output to an input. Below are all the step types, with examples from the bundled projects.

Step (in the Add step list)What it does
StartThe start of the quest. How the quest is taken: by hand (Manual acceptance, the game calls Start Quest) or automatically on a condition.
GoalA player goal. Closed by a game event, a condition or a dialogue outcome; it can count.
Condition / branchA branch: picks the first output whose condition is true (by priority); there is a fallback output.
Parallel goalsStarts several branches at once.
Join parallel goalsWaits for the parallel branches: all (All), any (Any) or N.
Merge a chosen branchBrings the branches of a branch step back into one.
WaitA pause of a set time.
EffectsChanges facts (and waits for nothing).
ActionA game action: a command to the game, with parameters.
Call sub-questStarts a sub-quest and waits for its outcome.
Subquest from selection / Empty subquestGathers the selected steps into a sub-quest (or adds an empty one). While nothing is selected, the first entry shows dimmed with the reason.
Player choiceA player choice is made in a dialogue scene.
Complete / FailA successful or a failed ending. An ending carries the rewards and a journal line.

Goals

The goal Light the signal fire
The goal "Light the signal fire" (Sample): closed by the game event Signal fire lit, once.

What closes a goal (How this goal completes):

A goal with a counter
A counting goal, "Place three planks on the old bridge": the event must arrive three times.
A goal on a dialogue outcome
A dialogue goal, "Hear the warden's plan" (Showcase): closed by an outcome of the scene "The warden's plan".

Branches

The branch Which plan?
The branch "Which plan?" (Showcase), the properties panel headed Branch: Branch behavior = Evaluate conditions; each output (Option 1 name = Fight) has a Priority, a Fallback route checkbox and Route conditions. Here the condition is "the dialogue The warden's plan had the outcome Hold the pass".

The branch rule: the first output with a true condition is chosen, by priority; the output with the Fallback route checkbox is taken when none fits. Conditions are built from AND / OR / NOT groups (up to 6 levels of nesting). Condition kinds (Condition kind): a fact, a quest state, a dialogue outcome, a game condition and others.

The branch Which crossing?
"Which crossing?" (Sample): the bridge or the ford, by the choice made at the previous goal.
The branch Champion?
"Champion?" (Arena): a branch on the number of rounds won.

Parallel goals

Parallel goals
Parallel goals "Fight at the pass": each output starts on its own; the Join Both done owns them.
Join
Join "Both done": waits for the branches: All, Any or N successful.

Wait and effects

Wait
Wait "Wait for full dark": continues the quest after a set time.
Effects
Effects "Round won" (Arena): changes facts (the round counter) and moves on at once.

Endings

Complete
Complete "Crossed by the bridge": a successful ending; rewards and the journal line are set here.
Fail
Fail "The raiders broke through": a failed ending.

A quest can have any number of endings. The game learns which one it ended with through Get Quest Outcome, the On Quest Completed / On Quest Failed event with the ending key, or the Switch on Quest Outcome node.

6Facts, conditions and events

Events

An event is a signal from the game: "lit the fire", "killed an enemy", "reached the outpost". The project's list of events is in More → This graph → Game actions and events…: a window with the Events, Actions, Rewards and Conditions tabs, the list of records on the left and the chosen one on the right.

Game actions and events: an event card
An event card (the Events tab, the event chosen in the list on the left). Event name (as the designer sees it); Key (Blueprint and console name), the key the game passes to Send Quest Event; Sent by, The server or A client request; Number parameter name, when the event carries a number; Carries a World record, when the event says which world record it is about (which enemy); Gameplay tag, the tag for Send Quest Event By Tag (for example Quest.Event.SignalFireLit).

Facts

A fact is a value the world remembers: yes/no or a number. A fact's scope is the player, the party or the world. Quests write facts with an Effects step and read them in conditions; the game writes them with Set Fact Bool / Set Fact Number / Change Fact Number / Clear Fact and reads them with Get Fact …. An unknown fact is neither "no" nor 0: check the Known output.

Fact relationships
A fact's relationships. For the selected object the editor shows what affects it and what it affects: "Potential influence", the direction of the links, hidden objects.

Chapter facts. When chapters are linked (one opens after an ending of another), the export adds a party fact Chapter_<chapter key>_<ending key>. The game can read it ("has the second act opened?") but cannot write it: the quests own it.

Conditions and game conditions

A condition is an expression over facts, quest states, dialogue outcomes and game conditions. A game condition is something only the game knows (weather, time of day): the designer declares it by key, the game answers through the Myth Quest Condition Provider interface (the Evaluate Quest Condition function: True, False or Unknown) and reports a change by calling Notify Quest Condition Changed.

7Dialogue and characters

Characters and the world

Characters
Characters (Showcase): the characters Warden Ilsa and Ash raider band; the Characters, Factions, Locations, Items and World facts tabs.
A character card
A character card: portrait (Replace portrait), name, role, faction, motivation, conflict, notes, and on the right Story appearances, where the character appears.

World records (characters, factions, locations, items) are World records: goals refer to them ("kill the wolf pack leader"), and so do events (Record) and game action parameters (Get Action Entity).

Dialogue scenes

The scene The warden's plan
The scene "The warden's plan" (Showcase): the line Line (spoken by Warden Ilsa), the choice Choice · Party's call ("What does the party do?") with two answers, and two scene endings, Scene end · Hold ("Outcome Hold the pass") and Scene end · Sneak.

A scene's outcome (Outcome) is read by goals ("Hear the warden's plan" closes on any outcome) and branches ("Which plan?" picks a branch by the outcome). In the game a scene is driven by Begin Scene, Get Active Scene, Advance Scene, Choose Answer and the On Scene Changed event; see Blueprint: dialogue. An answer the author marked "show as unavailable" arrives with Available = false and an Unmet list of the conditions that are missing.

8Journal, rewards, game actions

The journal

Journal: a quest's journal text
Journal (Showcase): on the left Quests and entries, the quests with their entries under each (Title and summary, goal entries); in the middle the text for the player (Player text), with variants and conditions on tabs (Fallback summary, Default text, With conditions); on the right Player preview, what the player will see.

Every quest has a title and a short summary for the journal, and every goal and ending has its own line. A line variant can depend on a condition (Add journal variant, Use additional conditions). In the game, the journal is drawn by your widget based on Myth Quest Journal Widget: the Present Journal event arrives on every change.

Rewards

Rewards are set on endings. What a reward is (an item, currency, experience) is the game's decision: the plugin passes the key, the GameplayTag, the amount and the title to Grant Quest Reward of the Myth Quest Reward Handler interface. A reward line with a chance below 100% is rolled once, on the server; a miss calls On Reward Not Awarded on the recipient. Who gets the reward is decided by the quest's co-op rule.

Game actions

An Action step asks the game to do something: spawn a wave, open a gate, play a cutscene. The action and its parameters are declared in Game actions and events…, on the Actions tab. Parameter types: a number, yes/no, a world record, Name (for the game), a string the game looks something up by (a sound, level or table row name; never translated), and Player text, text for the player (translated). A parameter can have a default value. The game receives the action in Handle Quest Action of the Myth Quest Action Handler interface and answers with an event.

World changes and reactions

World changes
World changes (a window: the list on the left, the chosen one on the right): named changes of the world: what changes, which confirmations it waits for and how long it can be cancelled.
Reactions
Reactions (a window: the list on the left, the chosen one on the right): when a game event arrives and the condition holds, a reaction starts a sub-quest on its own (with a cooldown) or, on a radio channel, plays a line.

9Chapters and campaigns

A chapter is a group of quests, an act of the story. The order of chapters makes the campaign: a chapter opens at the start of the game or after an ending of another chapter. A large project is kept in chapters: each one loads separately.

The chapter map of the Author-Workflow project
The chapter map (the Author-Workflow example): the chapters from left to right, in the order they open, each card listing its quests (up to four, then "+N more"), and the links between them. The legend is one row at the bottom left: chapter order, carry-over, opening/ending, decision, dialogue outcome; the other keys (quest outcome and more) are behind the "+ 4" button.
A chapter graph
The graph of the chapter "Chapter 2 · Recovery". On the left, Chapter opens (when it opens: here, from chapter 1); in the middle, the chapter's quests with their start (Start condition) and endings; on the right, Chapter endings: which quest outcome ends the chapter.
Arcs
Arcs: story lines across chapters, which quests belong to which line.
Catalog
The Catalog tab: the project's scenes, characters, factions, locations and items.

10Arenas, repeatable and co-op quests

An arena: rounds through a sub-quest

The quest The Arena
"The Arena" (the Showcase-Arena example): Start → a call to the sub-quest The round → on a win, Round won (effects: the round counter) → the branch Champion?: another round or the ending Champion of the ring; a lost round leads to The crowd overran the ring.
Call sub-quest
Call sub-quest "The round": outputs by the sub-quest's outcomes, fell and Timeout (and success).
A sub-quest
A sub-quest: a reusable group of steps with its own outcomes; it can be called from any quest of the project.

A quest cannot loop back on itself; a repeated round is made with a branch that calls the sub-quest again, and a "timed arena" with a repeatable quest.

Repeatable quests

Quest settings of the quest Defend the camp
Quest settings of the quest "Defend the camp": category, title, chapter, story lines, and the Quest brief and beats, Multiplayer interaction, Visual groups and Co-op, timing and availability groups.

A quest with the Can be taken again checkbox can be taken again after any ending, by the same player, party or world: the game simply calls Start Quest once more. With a wait set, Start Quest and Can Start Quest answer Waiting until it has passed; Get Repeat Wait Remaining gives the seconds left, and Get Quest Takes how many runs have finished. Each run gives the rewards of its ending and rolls the chances afresh. An automatic repeatable quest starts again only when its start condition becomes true again.

Co-op

Every quest has a co-op rule (Co-op, timing and availability). The defaults:

SettingDefaultMeaning
Who advancesAny memberAny player's events advance a party quest
CreditPresentPlayers connected at each goal and at the ending get credit
RewardsEach presentEvery player present gets the ending's rewards
Late joinAdopt progressA player who joins later sees the current progress and takes part from there
On leaveContinueA player leaving does not end the quest
AbandonLeaderThe leader can abandon for everyone (the listen-server host, or the first player on a dedicated server)

A quest's scope: personal (each player has their own), party (one for the group) or world. One player's personal quests are invisible to the others.

11Radio

Radio is lines over communication channels: a call from headquarters, squad chatter. A rule (a reaction) plays a line on a channel; the plugin does not play the sound or draw the subtitle itself: it passes the line to the game and waits for it to end.

Radio channels
Radio channels (the split valley example; a window: the list of channels on the left, the chosen one on the right): a channel is one speaker's radio. On each event a channel plays one line: the one with the highest priority, and on a tie the one with more conditions. A channel is addressed to the whole party or to each player separately.
A reaction with a radio line
A reaction with a radio line: the event, the condition, the channel, the subtitle text, the sound, the duration, and the call the line waits for from the player.

In the game: On Radio Line Started / On Radio Line Ended (on the party or player component, or on a Listener with a Radio Channel filter), Report Radio Line Finished (Play Id) when the voice ends, Interrupt Radio Channel, and Get Playing Radio Line for a player who joins later. The journal widget plays a line's voice as a 2D sound by itself and reports the end on the host; Present Radio Line draws the subtitle. A line with no sound and no duration lasts as long as the reading speed in Project Settings → Myth Quests → Radio gives it.

12Publishing to the project

Publishing turns the whole project into ordinary Unreal assets: one quest catalog, one asset per quest, pictures as textures. The game works only with them.

  1. Publish… on the top bar (or Project → Export…) opens the Publish window: "Publishes the whole project into this Unreal project as one quest catalog: every quest, dialogue scene and card picture becomes an asset under /Game/MythQuests/". Under the title, three steps: Check → Publish → Done.
  2. If the project has errors, publishing is blocked: the window says Publish blocked · N issue(s) and lists them; Open source beside each one takes you to the error, and Check again checks the project again.
  3. With no errors, press Publish to the Unreal project.
    Expected: Published to /Game/MythQuests/<project key>, and below it the catalog, the export size, the pictures, the version and a summary of the quests (created / updated / unchanged).
    If it says "Publish blocked": fix what is listed and press Check again.
  4. Register the catalog in Project Settings → Myth Quests → Catalogs (once; the Next · once per project box in the window says so after a publish).
The Publish window
Ready to publish. The check passed: the catalog, the export size, the card pictures, the version, and the Publish to the Unreal project button.
Publishing succeeded
Published to /Game/MythQuests/MythQuestSample: 2 quests, 1 picture, the catalog version.
The Content Browser: the MythQuestSample catalog
What appeared in the project. The folder /Game/MythQuests/MythQuestSample: the catalog MythQuestSample (of type Myth Quests Catalog), the folders Quests (an asset per quest) and Media (pictures).
AssetWhere
Catalog (UMythQuestCatalog)/Game/MythQuests/<project key>/<project key>
Quest (UMythQuestAsset)/Game/MythQuests/<project key>/Quests/<quest key>
Pictures/Game/MythQuests/<project key>/Media/
Earlier versions of a changed quest<quest asset>_Versions/V_<version>, so that save games and running quests stay on their own version

The integration sheet

Game integration sheet
Game integration sheet (More → This graph → Game integration sheet…; a window: the sheet's parts on the left, the chosen one on the right): for each event, its key, who sends it and which goal of which quest waits for it; then the facts the game writes, the world records in action parameters, and what is declared but not used. Copy as text copies the sheet: it is the task for the programmer or the agent who connects the quests.

The same sheet is written to the Message Log after every publish. For the Sample it looks like this:

Event SignalFireLit (client request): send it with Send Quest Event; used by quest TheCrossing goal LightSignalFire.
Event CrossingChosen (client request): send it with Send Quest Event; used by quest TheCrossing goal ChooseCrossing.
Event BridgePlankPlaced (client request): send it with Send Quest Event; used by quest TheCrossing goal RepairBridge.
Event FordWaded (server): send it with Send Quest Event; used by quest TheCrossing goal WadeFord.
Event OutpostReached (server): send it with Send Quest Event; used by quest WordToTheOutpost goal ReachOutpost.
Event CampReached (server): send it with Send Quest Event; used by quest WordToTheOutpost goal ReturnToCamp.
Event CrossingWardenAsked (client request): send it with Send Quest Event; used by quest TheCrossing goal AskTheWarden.

13Connecting in Blueprint

The whole connection is done in Blueprint, with no C++. Below are the graphs from the sample project (the map /Game/Sample, the folder /Game/QuestSample/Blueprints): each is shown as a picture and written out as a chain of nodes. The plugin's nodes are in the action menu under the Myth Quests category; the subsystem node is called Get Myth Quests.

The sample project: five locations

The sample project (a separate download) plays every example project of the editor's Open example… list in five locations. 1-4 players start in the River Camp; its four travel gates take the whole party to the other four locations, and each of those has one gate back. Every quest giver, goal place and lever in the maps is wired with the plugin's own parts (Quest Giver, Quest Place, Interactable) and shown with its ready widgets; what a player sees there is described in The player layer.

LocationProject (Open example…)What it shows
River Camp (the hub)the example export Myth Quests sample (The crossing, Word to the outpost); the job boardParty quests and party facts (a lever, or one player's answer to the Warden as a party decision, picks the bridge or the ford for everyone; the others read "<name> is answering for the party"), a personal number fact, quests taken again after a 20-second wait, personal jobs a partner never sees, chance rewards, a party job that pays everyone present
East Roadthe lost caravan; the road homeDialogue answers that open by what the party found ("Needs: the ledger"), optional goals, three endings; an escort (Nadia follows the nearest player) against a 4-minute clock that travels to the River Camp mid-quest; a louder radio line cutting into another; failure and a retry
Split Valleythe split valleyOne story in three chapters: taking one leader's job closes the other's for good ("Not while: you work for Grigory"), the side's gate opens on the chapter's ending, the tower chapter reads the first choice again, the radio channel with combat holding it
Sealed Ruinthe ruins sealA world quest; three rune stones touched in order, a wrong stone darkens all three (one sub-quest per touch); "stones lit 1/3" counted from a fact; the scholar on the radio
Proving Ringthe arena (or the arena gauntlet)The quest asks the game for waves and the game reports kills back; a round taken again at once, "rounds won 1/3"; the same wave encounter called at the traders' camp

Each goal in these projects names its place (a World record), so its pin appears on the actor that carries that record; the facts a closed answer waits for carry the words the player reads after "Needs:"; and the rewards the journal promises before an ending are ticked Show in the journal. The graphs below are the sample's own Blueprints.

1. The frame: Game Mode, Player State, Game State

  1. Player State (in the sample, BP_SamplePlayerState): Add Component → Myth Quest Player Component.
  2. Game State (BP_SampleGameState): Add Component → Myth Quest Shared Component.
  3. Game Mode (BP_SampleGameMode): set Player State Class and Game State Class to these two Blueprints.
  4. The catalog goes in Project Settings → Myth Quests → Catalogs.
  5. Expected on Play: LogMythQuests: Display: Quest system ready: 1 catalogs, 2 quests loaded in … ms.

If a component is missing, the plugin adds it itself when the game starts; you add your own so that you can bind its events (Details → Events → + on the component).

2. Starting a quest from a client: a quest giver

BP_QuestGiver, the Offer function
BP_QuestGiver › Offer. The quest giver offers the quest to the player who talked to them.
Offer (Player State)
  → Get Component by Class (Target = Player State, Component Class = Myth Quest Player Component)
  → Cast To MythQuestPlayerComponent
  → Request Start Quest (Target = the component, Quest = the Quest variable, the quest asset)
  → Return Node

Request Start Quest works both on a client and on the host: the server checks the request, and a refusal arrives as the On Request Refused event on the same component. On the server you can call Get Myth Quests → Start Quest directly (Quest; Target = the Player State for a personal quest, or empty for a party quest; Instigator).

3. An event and a fact from the game: a route lever

BP_RouteLever, the Pull function
BP_RouteLever › Pull. The lever writes the party fact "we take the bridge" and reports that the route is chosen.
Pull (Player State)
  → Get Myth Quests → Set Fact Bool (Fact Key = BridgeRoute, Value = the Bridge variable, Target = empty: a party fact)
  → Get Myth Quests → Send Quest Event (Event Key = CrossingChosen, Instigator = Player State, Number = 0)
  → Return Node

This is server code: the lever is pulled on the server. The goal "Choose how to cross the river" waits for CrossingChosen, and the branch "Which crossing?" reads the fact BridgeRoute.

4. An event from a client

BP_SampleController, the SendQuestRequest function
BP_SampleController › SendQuestRequest. The client asks the server to count an event.
SendQuestRequest (Event Tag)
  → Get Component by Class (Target = the controller's Player State, Component Class = Myth Quest Player Component)
  → Cast To MythQuestPlayerComponent
  → Request Quest Event by Tag (Event Tag, Number = 0)
  → Return Node
BP_SignalFire, the LightBy function
BP_SignalFire › LightBy. A fire lit by a player calls Send Quest Request on that player's controller with the tag Quest.Event.SignalFireLit.

From a client, only events marked Sent by: A client request in the editor are accepted; the others are refused through On Request Refused.

5. A number fact: a supply crate

BP_SupplyCrate, the TakeSupply function
BP_SupplyCrate › TakeSupply. The personal fact "how many supplies the player carries" + 1.
TakeSupply (Player State)
  → Get Myth Quests → Get Fact Number (Fact Key = SuppliesCarried, Target = Player State) → Return Value, Known
  → Select Float (Known ? Return Value : 0) → + 1
  → Get Myth Quests → Set Fact Number (Fact Key = SuppliesCarried, Value, Target = Player State)
  → Return Node

The same, shorter: Change Fact Number (Delta = 1). An unknown fact is not 0, which is why the example checks Known first.

6. Saving and loading

BP_SampleGameMode, the SaveQuests function
BP_SampleGameMode › SaveQuests.
SaveQuests
  → Create Save Game Object (Save Game Class = BP_SampleSaveGame) → Cast To BP_SampleSaveGame
  → SET Quest Progress = Get Myth Quests → Capture Quest Progress
  → Save Game to Slot (Save Game Object, Slot Name, User Index = 0)
  → Return Node

BP_SampleSaveGame has a Quest Progress variable of type Myth Quest Save Data with the SaveGame flag ticked. Loading (LoadQuests): Load Game from Slot → Cast To BP_SampleSaveGame → Restore Quest Progress (Quest Progress). The report says Restored, Empty, Corrupt or Newer Format. Save and load on the server (in single player, always).

BP_SampleGameMode, the SetRollMode function
BP_SampleGameMode › SetRollMode. Set Reward Roll Mode: how rewards with a chance are rolled (As Authored, Per Recipient, Shared Per Group).

7. Reacting to quests: the level director and the HUD

BP_MythQuestDirector, the QuestCompleted function
BP_MythQuestDirector › QuestCompleted (from the plugin: /MythQuests/QuestComponent/BP_MythQuestDirector). Every quest event calls the function with the same name; create a child, place it in the level and override the ones you need (Quest Completed: Quest and Outcome Key).
BP_SampleDirector, the ObjectiveReached function
BP_SampleDirector › ObjectiveReached: the sample's child of the director, with its own level reaction to a goal being reached.
BP_SampleHUD, the ShowReward function
BP_SampleHUD › ShowReward: Cast To WBP_SampleJournal → Show Reward (Message, Reward), showing the reward received in the journal.

Other ways to react: a Myth Quest Listener component on any actor (the Quest, Objective Key, Fact Key and Radio Channel filters in its details; the On Objective Reached and On Fact Became events), or the events of the components themselves on the Player State / Game State.

8. The journal

WBP_SampleJournal, EventGraph
WBP_SampleJournal › EventGraph (the left part; the graph is large): the graph of the sample's journal widget (parent class: Myth Quest Journal Widget).
  1. A Widget Blueprint with Class Settings → Parent Class = Myth Quest Journal Widget.
  2. Override Present Journal (Journal): rows with the title, the summary, the current journal line, the goals in the order they are played, and pictures. It is called on every change, after a reconnect or a level change, and when the language changes.
  3. Create the widget for each local player, for example in the HUD's BeginPlay: Create Widget (Owning Player = Get Owning Player Controller) → Add to Viewport.
  4. Pictures: Get Media Role (Thumbnail, Portrait, Cover, Background) → the texture is a soft reference: Load Asset Blocking before Set Brush from Texture.

9. Dialogue

Begin Scene (Scene Key, Player State) on the server begins a scene; a client asks with Request Begin Scene on the player component. Get Active Scene (Player State) gives what to show: the speaker, a line (then Advance Scene / Request Advance Scene) or a choice with answers (Choose Answer / Request Choose Answer). The On Scene Changed event tells you when to read it again. To decide on the server whether a player may begin a scene, use the Myth Quest Scene Request Handler interface (Approve Scene Request) and Set Scene Request Handler.

10. Rewards and game actions

11. The quest call node (Quest Calls)

The action menu has Myth Quests → Quest Calls: nodes bound to one quest asset, whose drop-down lists are the keys of that quest's goals, endings, timers and events. Get Objective States gives an output for each goal, and Switch on Quest Outcome an execution output for each ending. After a new publish the node updates itself; a key the quest no longer has is a compile error naming it. Double-clicking the node opens the quest asset.

12. The debugger

BP_SampleController, the ToggleQuestDebugger function
BP_SampleController › ToggleQuestDebugger: Set Quest Debugger Visible (Player Controller = Self, Visible), the "Myth Quests" Gameplay Debugger category with the player's quests, goals and facts.

14The player layer: what players see

The plugin ships the quest interface for the player, ready to play: marks over quest givers, pins on goals, a tracker, an interaction prompt, a dialogue window, a journal, notifications and radio subtitles. It is eight Widget Blueprints and one style asset. Nothing here is a mock-up: the sample project's five locations run on exactly these widgets, and you can use them as they are, restyle them or replace any one of them with your own.

The player layer in the sample's River Camp: giver marks, pins, tracker and key hints
The whole layer in one frame. Marks over the quest givers, pins with their distance on the places of goals (one goal with three places is marked on the nearest), the tracker top right, the key hints bottom right.

What a player sees

ElementWhat the player sees
Quest-giver marksA diamond over a person or a board that has something for this player. Solid orange with an exclamation mark: a quest for the party. Hollow orange: a personal quest. A tick: a goal of a quest the player carries is here (report back, deliver, talk). Grey: a quest already taken, a quest whose conditions are not met yet (a lock), a job that can be taken again later (with the time left). The strongest state shows.
Objective pinsA diamond on the place of an open goal, with the distance in metres and, near the crosshair, the goal's text and its count. A goal off screen is held at the screen edge with an arrow. A goal that has several places (three piles of planks) is marked on the nearest one and says "3 places". A goal on a clock shows the countdown.
TrackerTop right: the focused quest open (title, whose quest it is, its goals with counters like "0/3", optional goals marked, a countdown and a bar when the quest has a time limit) and up to three more tracked quests as one line each. A goal that was just done stays in the list ticked and grey instead of vanishing.
Interaction promptUnder the crosshair: a key cap, a verb and a name (E · Talk · Warden Ilsa). A thing that needs the key held fills the key's frame while it is held. A locked thing shows a lock and the reason (Needs: the gate key). When a partner is talking to the same person, a second line says "<name> is talking too".
Dialogue windowBottom centre: the speaker's tile and name, a line that writes itself out (a key shows the rest at once), then the answers on the keys 1 to 4, the arrows or the mouse. An answer that is not open is shown greyed with a lock and its reason in the author's own words (Needs: the ledger) — or hidden, as the author chose per answer.
JournalA full-screen page on J: the quests in tabs (active, completed, failed), grouped by chapter, then the player's personal quests, then jobs that can be taken again. The chosen quest shows its picture, summary, the journal line that applies now, goals with their states and counts, the rewards the author promised, and what the quest means in co-op. Buttons: track, abandon (on a party quest only the party leader's button is live by default). A chapter that is not open yet is listed as closed, not spelled out.
NotificationsOne banner at a time at the top centre (quest started, completed, failed), small lines on the left (goal updated, reward received, a chance reward that did not drop), and one large banner when a chapter opens. A player who joins late, loads a save or arrives from another level gets no banners for what already happened.
Radio subtitleBottom centre: the speaker's tile, name, the channel ("whole party" or "only you") and the subtitle, while the line plays.

What co-op does

Nothing to set up: every machine shows its own player's view of the same game.

Two players' screens at the same moment: one carries a personal quest the other never sees
Two players, one moment. The host carries a personal quest; the client's screen has no line, pin or mark for it.

Switching it on

  1. On the player's side, call Add Myth Quests HUD (Player Controller = Get Player Controller), for example from the controller's or the HUD's BeginPlay. Or add the Myth Quest HUD component to your Player Controller Blueprint: it puts the layer on screen by itself on the local player's machine.
    Expected: in Play, the tracker appears top right as soon as a quest starts; J opens the journal; T moves the focus to the next tracked quest; E uses the thing in front of you and continues a line; 1–4 pick answers. A gamepad does the same, and the key caps show the device used last.
  2. To switch one element off, untick it on the component (Myth Quests → HUD: Show Giver Marks, Show Pins, Show Tracker, Show Prompt, Show Dialogue, Show Journal, Show Notifications, Show Radio). The game keeps its own for that element.
  3. To use your own widget in a slot, set its class on the component (Tracker Class, Dialogue Class …). The class is a child of the plugin's widget for that element, so the reading and the timing stay done for you and you override the look. A widget of your own that is not a child (the element's switch off) is fed by calls such as Choose Number or Toggle on the element, which you get from the component.
  4. Handle Keys off: the layer stops listening to keys, and your game calls the elements itself. The keys themselves (E, J, T, Esc, the answers) are in the style asset.

The layer needs the project's journal and quests set up as in the sections above: a registered catalog, the player and shared components. Nothing else is required.

Placing parts in a level

The layer knows who gives a quest and where a goal happens from three small components you add to the actors of your level. They draw nothing and replicate nothing; each machine asks the quest system for its own player. The drop-downs list the records, quests, events and scenes of the catalogs your project holds.

ComponentPut it onMain settings
Myth Quest Placean actor that is a World record: a character, a location, an item — or an empty pointRecord (drop-down of World records). A goal whose Place is that record gets its pin on this actor. Several actors may carry one record; the nearest gets the pin. An actor spawned by the game may carry it too, so pins follow moving things. Send Event When Reached, Reach Radius Meters (5 m by default) and Reach Event: the first time a player comes within the radius, that event is sent once for that player (again only after they leave and come back). It replaces a hand-made trigger volume, in co-op for every player.
Myth Quest Givera person or a board that offers questsQuests (the ones offered, a drop-down); Scene On Talk (empty: Talk starts a quest that can be taken now); Speaker (the giver's own record, so a goal placed on the giver shows the tick mark); Offer Before Starting (Talk opens your offer window instead of starting at once; it calls Accept Quest). It answers per player with one of the marks: Quest for the Party, Quest for You, Goal Here, In Progress, Not Yet, Waiting, or none.
Myth Quest Interactableanything the player can useVerb ("Talk", "Use", "Pick up", "Repair"; empty: Talk for a scene or a giver, Use otherwise); Display Name (empty: the record's name); Reach Meters (3 m); Hold Seconds (0: a press; else the prompt fills while the key is held); Action: Begin a Scene, Send an Event, Offer the Giver's Quests, or Only On Used (the game reacts to On Used itself). Set Lock Reason locks it with a text ("Needs: the gate key"); an empty text unlocks.

A person who both gives a quest and is a goal's place carries a Giver and a Place. Myth Quest Look-at goes on the player's pawn or controller: it finds the thing in front of the local player (a trace along the view, Trace Distance Meters and Trace Channel) and feeds the prompt and the E key. A game with its own interaction system leaves it out: after its own pick it calls Set Prompt Target on the Look-at with the Interactable it found (one call), and the prompt follows; Clear Prompt Target gives the pick back to the trace.

The sample project's five locations are built exactly this way: the givers, the goals' places, the levers and the waiting person in the River Camp are these components with their settings.

What you write in the editor

Tracked quests and chapters

Each player tracks up to four quests (the project setting Tracked Quest Limit): one focus shown open, plus three. A new quest joins the list and takes the focus unless the player chose one. T cycles the focus (that is also a choice); in the journal the player tracks or untracks a quest. A quest that ends leaves the list, a full list drops its oldest line. The list is each player's own and is saved with their progress.

Chapters written in the editor reach the game with their name, order, quests and opening rule. The journal groups by chapter. When a chapter opens for a player the one large chapter banner shows, once per machine: never for a chapter already open when the player arrives, never at a late join, a load or a level change.

The speaker tile

The framed square next to the speaker's name in the dialogue and radio windows shows, first match wins:

  1. The character's own picture: the portrait set on the character in the editor (Replace portrait on the World record). It fills the tile, cropped to the square around its middle.
  2. Otherwise the style's picture: by default the Myth Quests mark. In DA_MythQuestsHudStyle the one Speaker Picture slot (category Speaker) takes any texture of yours and changes it for the whole project, with no code; Speaker Picture Margin sets the even margin around it. Leave the slot empty and a speaker without a picture of their own has no tile.
The dialogue window with a closed answer and the speaker tile showing the mark
The dialogue window. The tile carries the mark because this speaker has no picture of their own; the closed answer says what is missing in the words the author wrote on the fact.

Re-skinning

Each element is its own Widget Blueprint, WBP_MythQuestTracker, WBP_MythQuestDialogue and so on, on a base class that does the reading and the timing. They and the style asset live in the plugin's content (/MythQuests/UI: show the plugin's content in the Content Browser). You work in UMG and in one asset, no code.

In DA_MythQuestsHudStyleIn the Widget Blueprints
the five colours; both fonts (Saira Semi Condensed for titles and counters, Alegreya Sans for text); every icon and the key glyphs of the keyboard and the gamepad; the speaker picture; the keys; all timings and limits (how long a banner stays, the typewriter's speed, the prompt's hold, the pins' reach); every fixed word ("Needs", "Quest started", "optional", "<name> is talking too"), as localisable textssizes, margins, anchors, plates and frames, animations and sounds; where each widget sits on the screen

What stays in the plugin: which quests, goals and answers show and when, who sees what in co-op, reading the state on the host and on clients (after a late join, a load or a level change), the order of notifications and the requests sent when a player answers, tracks, abandons or uses something. Both fonts are under the SIL Open Font License; see NOTICES.md in the package.

Not in version 1.0

15Connecting in C++

Everything available in Blueprint is available from C++ too: the same functions of the subsystem, the components and the interfaces. Below are six files you can paste into a game module as they are: a MyGame module with exactly these files was built on Unreal Engine 5.8.4 with the plugin (Result: Succeeded). Each file is given as a picture and as text to copy. The class names (AMyQuestPlayerState, AMyQuestGameMode…) are examples: rename them for your project.

The Instigator parameter in an actor. AActor already has an Instigator field, so in the Game Mode and other actors the parameter is called Player: the name Instigator will not compile (UHT: "shadowing is not allowed", MSVC: C4458).

Modules: the game module's Build.cs

MyGame.Build.cs
MyGame.Build.cs
// MyGame.Build.cs: the game module depends on the quest runtime.
using UnrealBuildTool;

public class MyGame : ModuleRules
{
	public MyGame(ReadOnlyTargetRules Target) : base(Target)
	{
		PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
		PublicDependencyModuleNames.AddRange(new[] { "Core", "CoreUObject", "Engine", "InputCore",
			"MythQuestsRuntime", "GameplayTags" });
		// Only for a C++ journal widget (MyQuestJournalWidget.h): its base class and UMG.
		PrivateDependencyModuleNames.AddRange(new[] { "MythQuestsPresentation", "UMG" });
	}
}

Player State and Game State with components, a reaction to a quest's end

MyQuestStates.h
MyQuestStates.h
// MyQuestStates.h: the player state and game state that carry quests, and a reaction to a finished quest.
#pragma once

#include "GameFramework/GameStateBase.h"
#include "GameFramework/PlayerState.h"
#include "MythQuestsComponents.h"
#include "MyQuestStates.generated.h"

UCLASS()
class AMyQuestPlayerState : public APlayerState
{
	GENERATED_BODY()
public:
	AMyQuestPlayerState()
	{
		// That player's personal quests and facts, client requests, reward and refusal events.
		PlayerQuests = CreateDefaultSubobject<UMythQuestPlayerComponent>(TEXT("PlayerQuests"));
	}
	UPROPERTY(VisibleAnywhere, BlueprintReadOnly)
	TObjectPtr<UMythQuestPlayerComponent> PlayerQuests;

protected:
	virtual void BeginPlay() override
	{
		Super::BeginPlay();
		PlayerQuests->OnQuestCompleted.AddDynamic(this, &AMyQuestPlayerState::HandleQuestCompleted);
	}
	UFUNCTION()
	void HandleQuestCompleted(const FMythQuestView& Quest, FName OutcomeKey)
	{
		UE_LOG(LogTemp, Display, TEXT("%s ended: %s"), *Quest.Title.ToString(), *OutcomeKey.ToString());
	}
};

UCLASS()
class AMyQuestGameState : public AGameStateBase
{
	GENERATED_BODY()
public:
	AMyQuestGameState()
	{
		// Party and world quests and facts.
		SharedQuests = CreateDefaultSubobject<UMythQuestSharedComponent>(TEXT("SharedQuests"));
	}
	UPROPERTY(VisibleAnywhere, BlueprintReadOnly)
	TObjectPtr<UMythQuestSharedComponent> SharedQuests;
};

Starting a quest, events and facts

MyQuestSignalFire.h
MyQuestSignalFire.h
// MyQuestSignalFire.h: on the server, start a quest, report what the player did, write facts.
#pragma once

#include "GameFramework/Actor.h"
#include "GameFramework/PlayerState.h"
#include "MythQuestsSubsystem.h"
#include "MyQuestSignalFire.generated.h"

UCLASS()
class AMyQuestSignalFire : public AActor
{
	GENERATED_BODY()
public:
	UFUNCTION(BlueprintCallable, BlueprintAuthorityOnly)
	void Light(APlayerState* Player)
	{
		UMythQuestsSubsystem* Quests = GetGameInstance()->GetSubsystem<UMythQuestsSubsystem>();
		if (!Quests || !Quests->IsReady())
			return; // catalogs still loading: start from OnQuestSystemReady instead

		// A party quest: Target = nullptr. A player quest: Target = that player's state.
		Quests->StartQuest(Quests->FindQuest(TEXT("TheCrossing")), nullptr, Player);

		// The goal "Light the signal fire" waits for this event.
		Quests->SendQuestEvent(TEXT("SignalFireLit"), Player);

		// A counting goal ("collect 10 scrap") adds the event's number, rounded down.
		Quests->SendQuestEvent(TEXT("ScrapCollected"), Player, 3.0);

		// Facts: nullptr = a party or world fact; a player state = that player's own fact.
		Quests->SetFactBool(TEXT("BridgeRoute"), true, nullptr);
		Quests->ChangeFactNumber(TEXT("SuppliesCarried"), 1.0, Player);
	}
};

Rewards, game actions, the player key

MyQuestGameMode.h
MyQuestGameMode.h
// MyQuestGameMode.h: rewards, game actions and the player key, answered by the game mode.
#pragma once

#include "GameFramework/GameModeBase.h"
#include "GameFramework/PlayerState.h"
#include "MythQuestsActionLibrary.h"
#include "MythQuestsInterfaces.h"
#include "MyQuestGameMode.generated.h"

UCLASS()
class AMyQuestGameMode : public AGameModeBase,
	public IMythQuestRewardHandler, public IMythQuestActionHandler, public IMythQuestPlayerIdentity
{
	GENERATED_BODY()
public:
	// The reward of an ending: give the item, currency or experience; return true when granted.
	virtual bool GrantQuestReward_Implementation(APlayerState* Recipient, const FMythQuestReward& Reward) override
	{
		UE_LOG(LogTemp, Display, TEXT("Give %s x%d"), *Reward.RewardKey.ToString(), FMath::FloorToInt(Reward.Amount));
		return true;
	}

	// An action step asks the game to do something ("SpawnWave", "OpenGate").
	virtual void HandleQuestAction_Implementation(FName ActionKey,
		const TArray<FMythQuestActionArgument>& Parameters, APlayerState* Player, UMythQuestAsset* Quest) override
	{
		bool bFound = false;
		if (ActionKey == TEXT("SpawnWave"))
		{
			const double Count = UMythQuestsActionLibrary::GetActionNumber(Parameters, TEXT("Count"), bFound, 5.0);
			UE_LOG(LogTemp, Display, TEXT("Spawn a wave of %d"), FMath::FloorToInt(Count));
		}
	}

	// Your own stable player key (an account id); an empty string lets the plugin decide.
	virtual FString GetQuestPlayerKey_Implementation(APlayerState* PlayerState) override
	{
		return FString();
	}
};

Saving and loading

MyQuestSaveGame.h
MyQuestSaveGame.h
// MyQuestSaveGame.h: quest progress in your own save game, saved and loaded by the game instance.
#pragma once

#include "Engine/GameInstance.h"
#include "GameFramework/SaveGame.h"
#include "Kismet/GameplayStatics.h"
#include "MythQuestsSubsystem.h"
#include "MyQuestSaveGame.generated.h"

UCLASS()
class UMyQuestSaveGame : public USaveGame
{
	GENERATED_BODY()
public:
	UPROPERTY(SaveGame)
	FMythQuestSaveData QuestProgress;
};

UCLASS()
class UMyQuestGameInstance : public UGameInstance
{
	GENERATED_BODY()
public:
	// On the server (or in single player).
	UFUNCTION(BlueprintCallable)
	void SaveProgress()
	{
		UMyQuestSaveGame* Save = Cast<UMyQuestSaveGame>(UGameplayStatics::CreateSaveGameObject(UMyQuestSaveGame::StaticClass()));
		Save->QuestProgress = GetSubsystem<UMythQuestsSubsystem>()->CaptureQuestProgress();
		UGameplayStatics::SaveGameToSlot(Save, TEXT("Slot0"), 0);
	}

	UFUNCTION(BlueprintCallable)
	void LoadProgress()
	{
		if (const UMyQuestSaveGame* Loaded = Cast<UMyQuestSaveGame>(UGameplayStatics::LoadGameFromSlot(TEXT("Slot0"), 0)))
		{
			const FMythQuestRestoreReport Report = GetSubsystem<UMythQuestsSubsystem>()->RestoreQuestProgress(Loaded->QuestProgress);
		}
	}
};

The journal in C++

MyQuestJournalWidget.h
MyQuestJournalWidget.h
// MyQuestJournalWidget.h: a journal drawn in C++ (Build.cs: "MythQuestsPresentation" and "UMG").
#pragma once

#include "MythQuestJournalWidget.h"
#include "MyQuestJournalWidget.generated.h"

UCLASS()
class UMyQuestJournalWidget : public UMythQuestJournalWidget
{
	GENERATED_BODY()
protected:
	// Called with the owning player's journal whenever it changes, after a reconnect or a travel,
	// and when the language changes.
	virtual void PresentJournal_Implementation(const FMythJournalView& Journal) override
	{
		UE_LOG(LogTemp, Display, TEXT("Journal: %d quests"), Journal.Rows.Num());
	}

	// A radio line starts (bShown) or ends: show or hide its subtitle. The base class plays the voice.
	virtual void PresentRadioLine_Implementation(const FMythRadioLineView& Line, bool bShown) override
	{
		Super::PresentRadioLine_Implementation(Line, bShown);
	}
};

The plugin's modules

ModuleWhere it runsWhat it holds
MythQuestsRuntimegame and editorThe UMythQuestsSubsystem subsystem, components, interfaces, saving, networking. Headers: MythQuestsSubsystem.h, MythQuestsComponents.h, MythQuestsListener.h, MythQuestsInterfaces.h, MythQuestsActionLibrary.h, MythQuestsMedia.h, MythQuestsSave.h, MythQuestsTypes.h, MythQuestDefinitions.h.
MythQuestsPresentationgame and editorThe journal base class UMythQuestJournalWidget (MythQuestJournalWidget.h), the base classes of the player-layer widgets, the style asset class and the Myth Quest HUD component (MythQuestHudComponent.h).
MythQuestsDebuggereditor and Development, not ShippingThe Gameplay Debugger category and the MythQuests.* console commands.
MythQuestsBlueprint, MythQuestsEditor, MythQuestsAuthoringeditor onlyThe quest call node, the importer, the editor inside Unreal. Game code does not need them.

Component events are dynamic multicast delegates: a handler must be a UFUNCTION() (like HandleQuestCompleted above). Code that needs every change of the quest system has UMythQuestsSubsystem::OnChange (C++ only).

16Connecting to your game's systems

The plugin does not know what your game's inventory, AI or saving is. It talks to the game through a few clear points. The table below shows which game system connects through which point.

Game systemInto the quest (game → quest)Out of the quest (quest → game)
Inventory, item pickupSend Quest Event with a Number ("picked up 3 scraps"), or a number fact with Set Fact Number / Change Fact NumberEnding rewards: the Myth Quest Reward Handler interface → Grant Quest Reward
Combat, AI, spawningSend Quest Event with Record = a world record key ("which enemy was killed")Game actions: Myth Quest Action Handler → Handle Quest Action ("SpawnWave", "OpenGate"), parameters through Get Action Number / Bool / Entity / Name / Text
Doors, triggers, interactablesSend Quest Event from the actor; from a client, Request Quest Event on the player componentThe Myth Quest Listener component on the actor: On Objective Reached, On Fact Became, filtered by quest, goal and fact
Weather, time of day, seasonThe Myth Quest Condition Provider interface → Evaluate Quest Condition; on a change, Notify Quest Condition Changed—
Dialogue system / dialogue UIAdvance Scene, Choose Answer (on a client, Request Advance Scene, Request Choose Answer)Begin Scene, Get Active Scene, the On Scene Changed event
Sound, subtitles, radioReport Radio Line Finished (Play Id)On Radio Line Started / On Radio Line Ended; the journal widget plays the voice itself, Present Radio Line draws the subtitle
HUD, journal—A widget based on Myth Quest Journal Widget → Present Journal; the queries Get Journal, Find Journal Row, Get Objectives
Save gamesRestore Quest Progress / Restore Player ProgressCapture Quest Progress / Capture Player Progress → a Myth Quest Save Data variable (SaveGame flag) in your Save Game
Accounts, onlineThe Myth Quest Player Identity interface → Get Quest Player Key —
Level changesNothing to connect: progress lives in the Game Instance, and the components appear in every new world by themselves. Before a seamless travel, release the remote players' pawns (as the sample's BP_TravelGate does in its TravelNow function).
Networking, co-opThe co-op rule is in the quest itself (who advances, who gets credit and rewards, late join, leaving, abandoning). Set Party Leader / Get Party Leader. The server and the clients must load the same catalogs.

Server and client. Everything that changes quest state runs on the server (in single player, you are the server). On a client such calls answer Not Authority. A client asks through the Myth Quest Player Component (Request Start Quest, Request Quest Event, Request Abandon Quest, Request Begin Scene…); a refusal arrives as the On Request Refused event. Reads (Get …, Is …) work everywhere.

17Debugging and common problems

Tools

Common problems

What you seeCauseWhat to do
Start Quest answers Not ReadyThe catalogs are still loading, or the catalog is not registeredAdd the catalog to Project Settings → Myth Quests → Catalogs; start from On Quest System Ready or after Is Ready = true
Unknown QuestThe quest asset is not in a registered catalog, or the quest was deleted from the projectPublish the project again; check the catalog is in the list
Not AuthorityThe call was made on a clientCall it on the server, or through the Request functions of the player component
Deferred right after PlayThe player is connected but not yet identifiedNothing: the start runs as soon as the player is identified (MythQuests.List shows it)
A goal does not countThe event has a different key, a counting goal got an event with no number, or the goal is "Only events for this quest" and the event arrived without a QuestCheck the event key against the integration sheet; for counters pass a Number ≥ 1
An empty journal on a client and the error The server runs different quest catalogsThe server and the client have different catalogsThe same catalog list everywhere
An import error about a pictureThe .mqexport.media folder is not next to the filePut both side by side and drag the file in again
GameplayTag warnings on importThe project lacks tags the export namesAdd to project tags in the Message Log, then Reimport or Publish again
A dedicated server build fails: Server targets are not currently supported from this engine distributionThe Epic Games Launcher engine does not build the Win64 Server target; this is an engine limit, not a plugin oneBuild Unreal Engine 5.8 from source and build the server with it; in the editor a dedicated server (-server, Play In Editor in dedicated mode) works on the Launcher engine too
Under Iris the journal is empty in a packaged gameThe Iris plugin is not enabled, or there is no subobject listEnable the Iris plugin; in Config/DefaultEngine.ini, section [SystemSettings]: net.SubObjects.DefaultUseSubObjectReplicationList=1

18Integration reference

A summary for whoever connects the plugin to a game (a person or an AI agent). Names are as in Unreal: a Blueprint node has the same name as the C++ function, with spaces (SendQuestEvent → Send Quest Event). In Blueprint the subsystem comes from the Get Myth Quests node, in C++ from GetGameInstance()->GetSubsystem<UMythQuestsSubsystem>(). The "Where" column: S, server only (on a client the answer is Not Authority); C, client (a request to the server); S/C, everywhere.

Connect Myth Quests to an existing project

  1. The plugin is in the project's Plugins/MythQuests (or in the engine, from Fab), Edit → Plugins → Myth Quests is enabled, and the editor has been restarted.
  2. The quests get into the project: Window → Myth Quests → the project → Publish… (or Project → Export…) → Publish to the Unreal project, or drag an .mqexport into the Content Browser. The result: /Game/MythQuests/<project key>/<project key> (the catalog) and …/Quests/<quest key>.
  3. The catalog is in Project Settings → Myth Quests → Catalogs. Check: Play → Quest system ready: N catalogs, M quests loaded in the Output Log.
  4. Components: Myth Quest Player Component on the Player State, Myth Quest Shared Component on the Game State (or nothing: the plugin adds them itself; your own are needed to bind events). The Game Mode uses these Player State and Game State classes.
  5. Starting quests: on the server, Start Quest after On Quest System Ready; on a client, Request Start Quest. Quests with an automatic start start by themselves.
  6. Events and facts from the game: Send Quest Event (the event keys come from the integration sheet, More → This graph → Game integration sheet…), Set Fact Bool / Number, Change Fact Number.
  7. Handlers, if the quests use them: rewards (Myth Quest Reward Handler), game actions (Myth Quest Action Handler), game conditions (Myth Quest Condition Provider), the player key (Myth Quest Player Identity), permission for dialogue (Myth Quest Scene Request Handler).
  8. Display: a widget based on Myth Quest Journal Widget (Present Journal), created for each local player; world reactions through Myth Quest Listener or a child of BP_MythQuestDirector.
  9. Saving: a Myth Quest Save Data variable (SaveGame) in your Save Game; Capture Quest Progress when saving, Restore Quest Progress when loading, on the server.
  10. Under Iris: the Iris plugin is enabled, and net.SubObjects.DefaultUseSubObjectReplicationList=1 is in the [SystemSettings] section of Config/DefaultEngine.ini.

The Myth Quests subsystem (UMythQuestsSubsystem)

Function / eventWhat it doesWhere
On Quest System Ready (event)The catalogs are loaded; you can start quests and restore save gamesS/C
Is ReadyWhether the system is readyS/C
Register Catalog (Catalog)Add a catalog during play (on every machine, before players join)S/C
Get Loaded CatalogsThe loaded catalogsS/C
Find Quest (Quest Key)The quest asset by keyS/C
Start Quest (Quest, Target, Instigator)Start a quest. Answer: Started, Already Active, Already Finished, Unavailable, Conditions Not Met, Waiting, Not Ready, Unknown Quest, No Target, Not Authority, DeferredS
Can Start Quest (Quest, Target)The same answer, without startingS/C
Abandon Quest (Quest, Target, Instigator)Abandon a quest under the co-op ruleS
Force Outcome (Quest, Target, Outcome Key)Force a quest to end with an endingS
Send Quest Event (Event Key, Instigator, Number, Record, Quest)Report a game eventS
Send Quest Event By Tag (Event Tag, …)The same, by the event's GameplayTagS
Complete Objective, Set Objective ProgressClose a goal / set its progress directlyS
Set Fact Bool, Set Fact Number, Change Fact Number, Clear Fact (+ By Tag)Write a fact; an empty Target means a party or world factS
Get Fact Bool, Get Fact Number, Get Fact (+ By Tag)Read a fact and Known (an unknown fact is neither false nor 0)S/C
Find Event Key By Tag, Find Fact Key By Tag, Get Event Tag, Get Fact Tag, Get Quest Action TagConvert between keys and GameplayTagsS/C
Get Quest Status, Is Quest Active, Get Quest Outcome, Has Completed Quest, Is Quest AvailableThe quest's stateS/C
Get Quest Takes, Get Repeat Wait RemainingRepeatable quests: how many runs, and how long to waitS/C
Get Active Quests, Get Objectives, Get Journal, Find Journal RowData for the HUD and the journalS/C
Get Remaining Time, Get Quest Timers, Get Quest Time LimitStep timers and the time limitS/C
Pause Quest Timers, Resume Quest TimersPause a quest's timersS
Set Condition Provider, Notify Quest Condition ChangedGame conditionsS
Set Reward Handler, Set Action Handler, Set Scene Request HandlerAssign a handler objectS
Set Reward Roll Mode / Get Reward Roll ModeHow rewards with a chance are rolled: As Authored, Per Recipient, Shared Per GroupS / S/C
Begin Scene, Advance Scene, Choose AnswerDialogueS
Get Active Scene, Has Played SceneWhat to show in a dialogue; whether a dialogue has playedS/C
Report Radio Line Finished, Interrupt Radio ChannelThe end / interruption of a radio lineS
Get Playing Radio LineThe channel's current line (for a late join)S/C
Set Party Leader / Get Party LeaderThe party leaderS / S/C
Capture Quest Progress, Restore Quest ProgressSave/load all progressS
Capture Player Progress, Restore Player ProgressThe same for one playerS
Set Quest Debugger Visible, Is Quest Debugger AvailableThe debugger (not in Shipping)S/C
Wait For Quest Status (latent node)Continue when the quest reaches a status (Reached / Cancelled)S/C
OnChange (C++ only)Every change of the quest systemS/C

Components

ComponentGoes onFunctionsEvents
Myth Quest Player Component (UMythQuestPlayerComponent)Player State Request Start Quest, Request Abandon Quest, Request Quest Event, Request Quest Event By Tag, Request Begin Scene, Request Advance Scene, Request Choose Answer, Request Debug Command (all C; the answer is a request number) the common events below + On Request Refused (Request Id, Refusal), On Scene Changed, On Reward Granted, On Reward Not Awarded, On Debug Output
Myth Quest Shared Component (UMythQuestSharedComponent)Game State— the common events below, for party and world quests
Myth Quest Listener (UMythQuestListenerComponent)any actorGet Followed Player; filters in the details: Quest, Objective Key, Fact Key, Radio Channelthe common events below + On Objective Reached, On Fact Became, On Scene Changed

Common events (on all three): On Quest Started, On Quest Updated, On Objective Changed, On Quest Completed, On Quest Failed, On Quest Abandoned, On Quest Suspended, On Quest Resumed, On Fact Changed, On Journal Changed, On Timer Started, On Timer Paused, On Timer Resumed, On Timer Expired, On Quest State Changed, On Radio Line Started, On Radio Line Ended. A late join, a reconnect and a level change call only On Quest State Changed: re-read what you show when it fires.

Interfaces the game implements

InterfaceFunctionWho is asked when none is assigned
Myth Quest Reward HandlerGrant Quest Reward (Recipient, Reward) → boolGame Mode, Game State, the recipient's Player State
Myth Quest Action HandlerHandle Quest Action (Action Key, Parameters, Instigator, Quest)Game Mode, Game State, the instigator's Player State
Myth Quest Condition ProviderEvaluate Quest Condition (Condition Key, Player State) → True / False / UnknownGame Mode, Game State, Player State
Myth Quest Scene Request HandlerApprove Scene Request (Scene Key, Player) → boolGame Mode, Game State; with neither, everything is allowed
Myth Quest Player IdentityGet Quest Player Key (Player State) → String (empty: the plugin decides)Game Mode or Game Instance

Libraries and the rest