Quest Tree
  • Quest Tree Documentation
  • đŸ•šī¸Quick Start
    • Installation
    • Start Editing
  • 🎓Tutorials
    • Videos
    • Example Scenes
  • 🧩Components
    • Core Defaults
      • Quest Tree Initializer
      • Quest Tree Sync
      • General Dialogue
      • Default Quest Provider
    • Default UI
      • Default Choice Button
      • Default Dialogue Window
      • Default Dialogue Window Triggerer
      • Default Input Handler
      • Default Item Slot
      • Default Memorable Message
      • Default Quest Foldout
      • Default Quest Foldout Item
      • Default Quest HUD
      • Default Quest HUD Item
      • Default Quest Message UI
      • Default Quest Window
      • NPC World Canvas Handler
    • World Triggers
      • World Dialogue Trigger
      • World Quest Completer
      • World Quest Failer
      • World Quest Receiver
      • World Requirement Trigger
  • âš™ī¸Systems
    • Quest Tree
      • Editor Window
      • Quest Types Editor
      • Settings
      • Character
      • Items
        • Item
    • Dialogue Tree
      • Editor Window
        • Nodes
          • Dialogue Node
          • Choices Node
          • Receive Node
          • Complete Node
          • Trigger Node
          • Boolean (If) Node
      • Settings
      • Quest Dialogue
      • General Dialogue
  • 📄Scripting
    • Quests
      • Getting Quests
        • Quest Find Settings
      • Working with Quests
        • Quest Types
        • Child Quests
        • Quest NPCs
        • Requirements
      • Managing Quest States
    • Dialogue
      • Getting Dialogue
      • Dialogue Graph
        • Working With the Graph
    • Initialization
    • Disconnect
    • Syncing
    • Events
    • Saving/Loading
    • Player Recognition
    • Choices
    • Items
      • Rewards
        • Managing Granted Rewards
    • Characters
    • Requirements Manager
    • Procedural Generation
  • đŸ› ī¸Support
    • Getting Help
  • 📚Changelogs
    • Latest Releases
  • ⭐Rate Me?
Powered by GitBook
On this page
  • Getting the Dialogue Graph
  • Main Method (Quest Dialogue Only)
  • Alternative
  1. Scripting
  2. Dialogue

Dialogue Graph

Main in-game dialogue handler class.

PreviousGetting DialogueNextWorking With the Graph

Last updated 5 months ago

Dialogue is handled automatically by QT as long as everything is correctly.

The DialogueGraph class is what handles most of the dialogue node logic, allowing the dialogue you edited through the Editor Window to be displayed correctly in-game.

A lot of the dialogue logic is handled in the DefaultDialogueWindow class as well for customized dialogue display functionality.

A dialogue graph is usually stored in a DialogueObject, but it can be stored anywhere you'd like. Dialogue graphs are serializable and can be saved in a file when converted to a JSON object.

Getting the Dialogue Graph

Main Method (Quest Dialogue Only)

var graph = QT.GetDialogueGraph("quest key");

Alternative

You can get the DialogueGraph from an existing DialogueObject with the GetDialogueGraph method.

// Get the dialogue object
var dialogue = QT.GetQuestDialogue("quest key");

// Get the dialogue graph
var graph = dialogue.GetDialogueGraph();
📄
set up