# Custom Visual Dialog Engine
Every adventure has a dialog. Sometimes it is hardcoded in the game and it isnt a proper solution. So we need something for making external files with dialogues. There are several tools to archieve this goal. However I somehow decided to make a new editor from scratch… I used unity engine for making that application.
And here it is…
You are defining a visual hierarchy of nodes. Each node has its number. Nodes are interconnected with transitions. You can choice between visual editing and writing a script in a simple language. It is possible to switch between theese methods on the fly. In one project you can define multiple dialogues. The result is then generated into XML files attended for usage in your game. There is a example for unity. However, you can write your own interpret for other game engines.
Every dialogue can be tested right into dialogue editor with transitions and back function to return to previous state. Dialogue engine has defined properties and you can set them with every transition. Transitions can be displayed with conditions and constraints… They can be displayed randomly too. With export button you can export dialogue right into ypi script for browser interpret (this editor is a replacement for the old one).
Dialogue scripts are defined in external files and can be edited by custom IDE. Conditions and properties are supported too for text nodes and transitions between them. Script is generated automatically for every dialogue. After pressing a proper button changes in a dialogue file are synchronized with VDT editor.
lb
Wednesday, Dec 2, 2020