The goal of this python module is to create a simple and easy to use dialogue system for blender games.
Control flow of dialogue using goto statements
Drawn using bgui
Themed using the bgui theme system
How to use:
Add an always active python controller to update the dialogue system each frame.
Call a dialogue file by creating a python controller calling ‘dialogue.display_dialogue’. Give the game object a property named ‘dialogue’ with its value set to the path of the dialogue file.
(you may need to set up a state system on your NPC to only fire the dialogue when the player is near it, see the demo for an example)
Thats it, it should work, just make sure your game can find the required files (bgui, dialogue.py, font files, background image, bgui theme and the dialogue file). The easiest way to ensure this is to place them alongside your .blend. See the demo for an example.
Creating dialogue files
You can use the dialogue editor which will let you create a dialogue tree and save it as a xml file that this system can read.