XML based Dialogue System
I needed a simple dialog system for my game. Although I do not plan Punch-Drunk to be complex in regard to its dialogues I wanted something flexible and expandable to several languages.
Playmaker's DataMaker extension provides tools for accessing XML Data. At first I am searching with XQuery for the first Node with a specific tag. In this case "00001". I am then reading the chosen language property to a Unity text field. Then the XML node is checked for any answers and creates any amount of buttons with the right text. Lastly it checks if there is a follow up question (another "Dialogue" node in this tree) and repeats the process from the beginning.
This is the Playmaker graph. I wish the structure was a little more tidy :)
This is in principle what the dialogue looks like in my game:
Get Punch-Drunk
Punch-Drunk
American Football meets Dungeon Crawling
Status | In development |
Author | Indifferent Penguin |
Genre | Action |
Tags | 3D, american-football, concussion, Dungeon Crawler, Roguelike, Third Person |
More posts
- Marathon Gamejam 2022 BuildApr 22, 2022
- User Interface / Dialogue System / Animations...Mar 30, 2022
- Marathon Game JamMar 17, 2022
- Hello World!Mar 14, 2022
Leave a comment
Log in with itch.io to leave a comment.