Send a character's fields to your game
The case: Captain Mara speaks in the Stowaway dialogue. Next to her lines, your game shows her rank and her age, taken from her page in LoreHub, so when a writer promotes her to Admiral the game follows. Her page also has Writer's notes with a plot twist that must never ship in the game files.
The short answer: keep Include in the game export on for the fields your game needs and turn it off for the rest. Export JSON and Game Sync then carry her template and those values in the dialogues she speaks in.

1. Choose which fields go to the game
- On any document, click the template menu at the top left (here it says Character) and choose Manage templates.
- Open the Fields tab and click Rank.
- Check that Include in the game export is on, and click Save.

The line under the label shows the field's Export key, here rank. That's the name your game reads. It never
changes, even when you rename the field.
New fields start with Include in the game export on, except Rich text fields, which start with it off. The built-in Content field is always exported.
2. Keep a field out of the game
- In the Fields tab, click Writer's notes.
- Uncheck Include in the game export and click Save.
The list now says not exported next to the field. Its values stay on every page in LoreHub, but no export or sync writes them.

3. Use the character in a dialogue
Export JSON carries every document in your world. Game Sync keeps each dialogue's file smaller: it only carries the documents the dialogue uses:
- the Speaker of any of its nodes,
- documents mentioned inside a line, and
- documents added to a node under Connected documents, like the place a scene happens in.
Make Mara the speaker of her lines in Stowaway. The Mentions list in the dialogue builder's side panel shows the documents the selected dialogue uses: those are the ones its Game Sync file carries.
Each node in the export also lists its connected documents by id, so your game knows which node they belong to.
Test it
- Open the Stowaway dialogue, switch to Export and click Export JSON.
- Find Mara in the file. She has her template and the two exported fields, and no
writers_notes:
{
"type": "@lorehub/document",
"apiVersion": "1.1.0",
"id": "…",
"name": "Captain Mara",
"templateId": "…",
"template": "Character",
"fields": [
{ "key": "age", "fieldType": "number", "value": "42" },
{ "key": "content", "fieldType": "richText", "value": "<p>Captain of the <em>Grey Gull</em>. …</p>" },
{ "key": "rank", "fieldType": "text", "value": "Captain" }
]
}
With Game Sync, the same document is in the dialogue's .json file in your repository. Change Mara's rank and the next
sync updates the file of every dialogue she's in, in the same pull request. A sync runs when someone presses
Sync now, or every hour or every day if the game's sync is set to.
What the export carries
- Which documents. Export JSON has every document in the world. A Game Sync file has only the documents its dialogue uses: speakers, documents mentioned in a line and documents connected to its nodes. To get a place or a faction into a synced file, connect it to a node or mention it in a line.
- For each document: its name, its template, its parent, and every field that has a value and has Include in the game export on, by export key. Empty fields are left out.
- Links stay links. A parent, a Document link or a Document list gives the other document's id. That document's own fields are in a Game Sync file only when that file's dialogue uses it too.
- Images give the picture's id in your gallery and its framing, not the picture itself.
- Relations between documents, like parent or rival, are in
relations.jsonat the top of the Game Sync folder, with the same document ids.
Variations
Give a character a portrait. An Image field is exported like any other field. See Give a character a portrait.
A race or a class from your lore. A Document list field exports the ids of the documents picked. See Give a character a race from your lore.
Data per line, not per character. For a camera position or an emotion on each line, use the meta schema instead. See Set the camera and the emotion for every line.
In your game
Each document is a @lorehub/document resource, version 1.1.0, among the dialogue's resources. A node's
connected documents are in its connectedDocumentIds, see Dialogue Node v2.1. Read its fields by
key. Values are strings, and lists are arrays. See Document v1.1
for every field type, Export Schema v2 for the file, and
Relations v1 for relations.json.
Did this answer your question?
More in Export and game engines
Still need help?
Can't find what you're looking for? Ask us, we read every question.