Documentation
LoreHub Dialogue System
Documentation & Tutorials
LoreHub Dialogue System
Introduction
Dialogue Schema
Concept
Examples
Tutorials
Dialogue System for Unity
Dialogue Schema API
Export Schema v.1
Export Schema v.2
Document v.1
Dialogue v.1
Dialogue v.2
Dialogue Node v.1
Dialogue Node v.2
Dialogue Node Option v.1
Dialogue Node Option v.2
Variable v.1
Meta Schema v.1
Content Block v.1
Link v.1
Dialogue Node version 2
Node without content
{
"type": "@lorehub/dialogue-node",
"apiVersion": "2.0.0",
"id": "dialogue/6147dcb9-b8bd-4238-9c8b-5b773260570c/dialogue-node/895b060b-8af4-47c7-b607-98455103e9b1",
"stateData": { "played": false }
}
Schema: Node that is linked to the next node
Use links to connect Nodes, Options and Dialogue Link v1
A node without options can have several links, each with its own conditions. Follow a link whose conditions are all met.
Schema: Node with options
{
"type": "@lorehub/dialogue-node",
"apiVersion": "2.0.0",
"id": "dialogue/6147dcb9-b8bd-4238-9c8b-5b773260570c/dialogue-node/895b060b-8af4-47c7-b607-98455103e9b1",
"optionsIds": [
"553cd90c-0b6f-4d5a-8bdf-4c83183fb65e",
"d0d93878-797a-42ae-ac8b-19d77d5d4042"
]
}
Schema: Node with Meta Schema
{
"type": "@lorehub/dialogue-node",
"apiVersion": "2.0.0",
"id": "dialogue/6147dcb9-b8bd-4238-9c8b-5b773260570c/dialogue-node/895b060b-8af4-47c7-b607-98455103e9b1",
"setVariableOnStart": [
{
"variableId": "f7fbdcd0-60ac-407e-9239-bb3214119298",
"value": "true"
}
],
"metaData": [
{
"metaSchemaId": "f1752f55-4a68-4289-9e11-b1a91620f926",
"metaSchemaValue": "castle.png"
},
{
"metaSchemaId": "f7fbdcd0-60ac-407e-9239-bb3214119298",
"metaSchemaValue": "23"
}
]
}
SetVariableOnStart
Contains reference to variable and value that should be set on start.
MetaData
Is an object that contains reference to Meta Schema and value as string. Meta Schema is a JSON object that contains metadata about the node.
StateData
Every node has a stateData block. It is required and always exported with its default value:
"stateData": {
"played": false
}
played - false until the node is shown, then the game engine or player sets it to true. It is runtime state: authors can't set it in LoreHub and it is not saved with the dialogue. Your game keeps it per playthrough and decides when to reset it.