Creating Dialog: Difference between revisions

From Ardenfall Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
=== Dialog Graph Builder ===
=== Dialog Graph Builder ===
The Dialog Graph Builder is a way to build dialog with C#.
TODO
TODO
Example:<syntaxhighlight lang="c#">
var b= new DialogGraphBuilder(graph);
var greet = b.Greeting("Hello!");
var speak = b.Speak("How can I help?");
var mc = b.MultipleChoice();
var c0 = mc.AddChoice("Tell me more");
var c1 = mc.AddChoice("Goodbye");
b.Connect(greet, speak);
b.Connect(speak, mc);
var topic = b.Topic("Tell me more");
var close = b.Finish(closeDialog: true);
b.Connect(c0, topic); b.Connect(c1, close);
b.Connect(topic, fin);
</syntaxhighlight>


=== Registering Dialog to NPC ===
=== Registering Dialog to NPC ===

Latest revision as of 16:32, 29 May 2026

Dialog Graph Builder

TODO

Registering Dialog to NPC

TODO

Quest Dialog

TODO

Graph View Tool

TODO