Dataset
Game dialogue and narrative script datasets for AI training
A game dialogue dataset is the written narrative content of a video game in its authoring form: branching dialogue trees, quest scripts, barks, lore bibles and character sheets, with the conditions and game-state flags that decide when each line can play. SourceX sources these on request from established game studios and narrative outsourcers that own or may share the writing, exported from tools such as articy:draft, Twine, Yarn Spinner and in-house dialogue databases. Each dataset is de-identified and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- A game's narrative content as authored: dialogue graphs, quest scripts, barks, lore bibles and character sheets
- Typical systems
- articy:draft, Yarn Spinner, ink, Twine, Chat Mapper, in-house dialogue databases and spreadsheets
- Typical history
- Varies by studio and title; cut branches and earlier drafts only where project versions were kept
- Modality
- Text lines in a graph, with condition expressions, state variables and reference documents
- Delivery formats
- Agreed per order; tool-native project or script files plus a normalized node and edge graph as JSONL
- Preparation
- Writer and actor names replaced with role IDs; real-person names in content screened; tokens and markup kept
- Licensing
- Studio-owned writing only; licensed IP, freelance, outsourcer and guild terms reviewed per title
- Availability
- Sourced to your spec from studios and narrative vendors that agree to license; not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| conversation_id | string | Pseudonymous, stable ID for one dialogue graph, quest script or bark table. |
| node_id | string | ID of one node, carried over from the authoring tool so jumps and string tables still resolve. |
| node_type | enum | Line, player choice, hub, jump, condition, instruction or bark entry. |
| speaker_id | string | Character ID that resolves to a character sheet, with the player character flagged. |
| line_text | string | The line as written, with substitution tokens, variant markers and inline markup kept and listed. |
| conditions | array | Expressions that must hold for the node to play, in the tool's own syntax and as parsed variable reads and function calls. |
| effects | array | State changes fired when the node plays, such as flags set, counters changed, quest stages advanced or items granted. |
| edges | array | Outgoing links with target node, order, any condition on the link and whether a choice is once-only. |
| state_schema | array | The variables the graph reads and writes, with type, default value and where each is set. |
| trigger | object | For barks, the gameplay event, the criteria matched and the speaker class the line was written for. |
| variant_group | object | The set of alternates a line belongs to, with group size, selection rule, weights and cooldown. |
| quest_ref | object | The quest, stage and objective the node belongs to, and the stage it advances to, if any. |
| writer_notes | object | Direction for the actor, the context note and writer or editor comments on the line. |
| line_status | object | Shipped, cut, placeholder or debug-only, with the string ID and voice line ID where they exist. |
Field names from the table above; values are masked placeholders.
Example record
{
"conversation_id": "conv_q12_ferryman_return",
"node_id": "n_0417",
"node_type": "line",
"speaker_id": "chr_ferryman_osk",
"line_text": "You came back. {PlayerTitle}, I didn't think the marsh would let you.",
"conditions": [
{ "source": "Quest.q12_stage >= 3 && World.left_marsh == true", "syntax": "articy:expresso",
"reads": ["Quest.q12_stage", "World.left_marsh"] },
{ "source": "isAlive(\"chr_ilse\")", "calls": ["isAlive"] }
],
"effects": [
{ "source": "Ferryman.greeted_return = true", "writes": ["Ferryman.greeted_return"] }
],
"edges": [
{ "to": "n_0418", "kind": "player_choice", "order": 1, "once_only": false,
"text": "I need passage north." },
{ "to": "n_0421", "kind": "player_choice", "order": 2, "once_only": true,
"condition": "Inventory.has_seal == true", "text": "[Show the warden's seal]" },
{ "to": "n_0409", "kind": "jump", "order": 3, "target_conversation": "conv_ferryman_hub" }
],
"state_schema": [
{ "name": "Quest.q12_stage", "type": "int", "default": 0, "scope": "save_game" },
{ "name": "World.left_marsh", "type": "bool", "default": false, "scope": "save_game" },
{ "name": "Inventory.has_seal", "type": "bool", "default": false, "scope": "set_in_code" }
],
"trigger": null,
"variant_group": { "group_id": "vg_ferryman_greet", "size": 4, "selection": "first_passing_condition", "rank": 1 },
"quest_ref": { "quest_id": "q12", "stage": 3, "advances_to": null },
"writer_notes": { "direction": "Relieved, hiding it badly.",
"context": "Player returns after the marsh chapter with Ilse alive." },
"line_status": { "state": "shipped", "string_id": "STR_Q12_FERRY_0417", "vo_line_id": "vo_osk_0417" }
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Train characters that track state
Lines with the conditions that gate them teach a model what a character may say given what has already happened, not just what sounds in voice.
Assist narrative designers
Whole graphs with effects and quest links supervise tools that draft a branch, set the right flags and rejoin the main path without leaving a dead end.
Control style at fixed meaning
Bark groups hold one intent across many wordings and personas, which suits paraphrase, register transfer and persona-conditioned generation.
Check continuity against the lore bible
Lore documents and character sheets beside every line a character speaks give retrieval targets and contradiction tests for long-form story work.
Evaluate state tracking
From a held-out graph, set a game state and ask which choices are open and what each one changes. The authored conditions give the answer key.
Use-case guides: Private evaluation sets, Voice agents and speech models, Document AI, enterprise search and RAG
What makes this data valuable
A graph, not a recording script
Nodes with edges and conditions carry the structure a flat line list throws away.
Declared state
Variable declarations with types and defaults, and a list of game functions, make every condition evaluable.
Bark groups intact
Each variant keeps its trigger, criteria and selection rule, so alternates stay grouped.
Speakers resolve
Every speaker ID maps to a character sheet, which ties a voice to a stated personality and history.
Tokens preserved
Player-name tokens, gender variants and markup left in place show how lines were written to be assembled at run time.
Status on every line
Shipped, cut, placeholder and debug lines are told apart, so cut content is a choice and not noise.
Process
Game dialogue dataset
Game dialogue is a graph, and the conditions are the data
A screenplay is a sequence. A game conversation is a directed graph of lines, player choices, hubs the talk returns to and jumps into other conversations. Any edge can carry a condition on game state, and any node can change that state. In articy:draft, a condition is a script on a node's input pin or on a condition node, and instructions on output pins change global variables. In Yarn Spinner and ink they are written inline in a text file, as an if block around a line or a condition on a choice. In Twine they are macros or script inside passage text, and the syntax depends on the story format.
Flatten one playthrough into a transcript and the reason each line was reachable is gone. A greeting that reads "You came back" exists because a flag says the player left, a quest counter says how far the story has moved and a check says the companion is still alive. Conditions are the writer's model of what a character knows at that moment. They are what a model needs to learn stateful dialogue: which lines are available given the state and history, and how each line changes the state. The lines a state ruled out are data too.
Conditions only help if they can be evaluated. Variables are often declared outside the dialogue file, in code or a quest system, and conditions call game functions whose meaning lives in the engine. In ink a writer can test whether a part of the story has been visited, so the traversal itself is state that no variable declares. A form studios commonly keep is the recording script, a flat spreadsheet of lines grouped by character, which keeps the lines and loses the graph.
Barks are a controlled paraphrase set
Barks are the short systemic lines fired by gameplay events instead of conversations: enemy spotted, reloading, ally down, a shopkeeper's greeting. A player hears each trigger many times in a session, so writers produce many alternates for it, then do the same again for every voice type and named character. The same meaning gets written for a veteran, a nervous recruit and a bandit. Across a large cast, one trigger can run to hundreds of written lines.
Novels and screenplays hold nothing like this, because prose avoids repeating itself and no author writes dozens of ways to say a magazine is empty. A bark table fixes the meaning through its trigger and criteria and varies the wording, register and persona, within the length the moment allows. Criteria narrow further, so one trigger carries general lines and lines for a specific enemy type, time of day or squad role. The result is a human-written paraphrase set labeled with intent, speaker and context.
Variants are only useful with their grouping. Each line needs its trigger, its criteria and the selection rule, such as random without repeats, sequential, or weighted with a cooldown. A flattened list looks like near-duplicates, and a deduplication pass will delete exactly what you are buying. Bark sheets also mix in non-verbal efforts written as stage directions and lines that were written and never recorded, so ask for a status flag on each line.
What to check before licensing
- Ask who owns the writing for each title, and have counsel read the contracts. A game on a licensed property, or one written by freelancers, a narrative outsourcer or guild members, depends on the assignment and reuse terms in those contracts.
- Ask what form the export takes. Confirm the sample has edges and conditions and is not a recording script sorted by character.
- Ask for the variable declarations and the list of game functions that conditions call. On the sample, count conditions that reference undeclared names.
- Run a reachability pass on the sample and count orphan nodes, dead ends and conditions that can never be true. Ask how cut and debug content is flagged.
- For barks, check that trigger, criteria and selection rule travel with each line, and that no deduplication was applied to variants.
- List every substitution token, gender or plural variant marker and inline tag in the sample, and confirm they were kept instead of stripped or resolved to one value.
- Search for text the studio does not own and for real names, such as quoted song lyrics, lines contributed by crowdfunding backers or community members, and actor names in direction notes.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
What does a game dialogue dataset contain?
A game dialogue dataset contains the written narrative content of a game in its authoring form. That includes conversation graphs with their conditions and state changes, quest scripts, bark tables, lore bibles and character sheets. Which parts exist depends on the tool the studio wrote in, so name the genres, structures and languages you need.
Why not use transcripts of playthroughs?
Because a transcript records one path and drops the reasons. It shows the lines one player saw, in order, without the choices not taken, the lines held back by other states or the conditions that made each line available. Authoring files hold the whole graph. Who may use the text of a public playthrough is a separate rights question, so ask counsel before treating transcripts as a substitute.
What are barks, and why would a lab want them?
Barks are short lines a character speaks in response to gameplay events. Each event has many written alternates, repeated across voice types, so the meaning stays fixed while wording and persona change. That makes them a human-written paraphrase set with labels, useful for style control and for testing whether a model can vary phrasing without drifting in meaning.
Which formats do dialogue trees come in?
Dialogue trees come in the format of the tool they were written in. articy:draft projects can be exported with their nodes, pins and variables. Yarn Spinner and ink scripts are text files, and Twine can export a story as Twee text. In-house tools usually mean spreadsheets or database tables. Ask for the native files and a normalized graph in JSONL beside them.
Is recorded voice-over or translation included?
No, not as part of this dataset. This is the writing. Recorded takes belong to voice-over session data and translations to localization string tables, each with its own rights questions. Where a studio holds all three, lines can be joined on a string ID or voice line ID where the script carries one, so say in the request if you want them matched.
Who owns game writing, and can it be licensed?
Often the studio or publisher, but ownership has to be checked per title. Writing on a licensed property may belong to the licensor, and scripts by freelancers, narrative outsourcers or guild members depend on the terms of those contracts. SourceX's rights review checks that the business owns or may share the records. Have counsel read the underlying agreements for the titles you care about.
Related datasets
- Game development archives and 3D assets
A studio's archive for one title: engine project, source, 3D assets, levels, design documents, builds and bugs
- Game voice-over session recordings
Studio voice-over sessions for games: every take of each line with script, direction and the selected take
- Game localization strings with context
String tables from shipped games with translations, constraints, context and localization QA bug reports
- Game design documents with revision history
A studio's design record for a title: GDD, feature specs, pitches and balance sheets with history and sign-offs
- Scripts and screenplays
Scripts in production format with typed elements, draft and revision chains, coverage and development notes
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell us what your models need
Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.
Updated 25 November 2026.