Documentations & Tutorials
LoreHub Dialogue System
Introduction
Tutorials
Dialogue Schema Api
Dialogue Node version 1
Node without content
{ "type": "@lorehub/dialogue-node", "apiVersion": "1.0.0", "id": "1270e167-31a0-457d-acee-654a94259445",}
Node that will end dialogue
{ "type": "@lorehub/dialogue-node", "apiVersion": "1.0.0", "id": "1270e167-31a0-457d-acee-654a94259445", "contentBlockId:": "6a302631-8e79-405e-8bc7-0e2d68b02a32"}
Schema: Node that is linked to the next node
{ "type": "@lorehub/dialogue-node", "apiVersion": "1.0.0", "id": "1270e167-31a0-457d-acee-654a94259445", "contentBlockId:": "6a302631-8e79-405e-8bc7-0e2d68b02a32", "nextDialogueNodeId": "ec29227d-1bcf-42dd-87ba-e16fd0c40f02"}
Schema: Node with options
{ "type": "@lorehub/dialogue-node", "apiVersion": "1.0.0", "id": "1270e167-31a0-457d-acee-654a94259445", "contentBlockId:": "6a302631-8e79-405e-8bc7-0e2d68b02a32", "optionsIds": [ "553cd90c-0b6f-4d5a-8bdf-4c83183fb65e", "d0d93878-797a-42ae-ac8b-19d77d5d4042" ]}
Schema: Node with Meta Schema
{ "type": "@lorehub/dialogue-node", "apiVersion": "1.0.0", "id": "1270e167-31a0-457d-acee-654a94259445", "contentBlockId:": "6a302631-8e79-405e-8bc7-0e2d68b02a32", "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.