Hi all.
I have been busy creating a Dialogue engine for Unity and it is virtually complete so I figured it is time to make everyone aware of what is coming. So here are the details…
The dialogue engine works with a custom scripted dialogue file. It used to use a very condensed form but it looked rather confusing so I modified the format to include a lot more typing, but making it a hundred times easier to understand and use. So much so that once you get the hang of it, you will pluck out TextEdit to do your dialogue files in no time.
You are not limited to doing only dialogues, b.t.w. You can also use this exact same engine to inspect objects. You are free to create a separate file for each object in your word or you can simply create a single file with descriptions for multiple items as easily as copying and pasting the script code.
What makes this engine really amazing is that you need only drag a single script onto each model you want to inspect or interact with, enter the name of the dialogue file to use and the id of the description to show and you are done. You can literally make any object in your world become interactive in a matter of seconds.
Want to make an object a pickup? Create the dialogue file, drop the script on it and you are done. Use the same script for multiple items and you have made a world of pickups in only 1 script file…
Now, when you want to speak to main characters, this is where the fun begins… The Unity Dialogue Engine remembers interactions with characters!
Imagine this situation:
- When you first speak to a character, that character asks you who you are. At some point the character offers you a mission which you have the option of taking or declining.
- On subsequent conversations with that same character, it will remember wether you have declined the mission and how many times you have done so and start the conversation differently depending on which.
- If you have declined the mission three times, his dialogue changes to never offer you the mission ever again.
- In contrast, if you did accept it, the dialogue will change to him welcoming you back and then asks you if you have retrieved the object in question.
- If you hand him the item, he takes it out of your inventory and rewards you with gold. From this point on, his dialogue is also different whenever you speak to him.
- As an added bonus, if you offered him a false item three times, he revokes your mission, brands you as a liar and has a very aggressive attitude whenever you speak to him in future… he might even attack and send you into battle mode if you have one…
All this is done in the dialogue file so once this is done, you can give this kind of interaction to any character in your game simply by dragging a single script onto the character and specifying the name of the dialogue file…
As an added feature, the dialogue object also makes external calls to your game object so you can key any behavior into your objects simply by saying in your dialogue file when to send what message and then making sure you have setup a script that handles that message.
Do you want to make your characters SPEAK their dialogue? Simply send the message. Do you want to play a SFX at a certain point? No problem…
This means that any object can be interacted with right out of the dialogue. For example, imagine a gate keeper. You can inspect the game keeper and receive some info on what he does or who he is. You also have the ability to speak to him/ her and have him/ her explain to you what you have to do to pass. You then also have the option to interact with the gate keeper. At this point, the gate keeper will see wether you qualify to pass and then either tell you that you have not yet met the requirements to pass or will open the door for you so you can pass…
So this far we have:
- A dialogue system that remembers past interactions with objects.
- A system for inspecting objects in the game world
- A system that allows for pickups or collectables
- A dialogue system that allows for interaction with the game world from right out of the dialogue itself…
- And I don’t know if you’ve picked up on what I said before, but you also get an inventory system for free.

I reckon there are 3 questions on your mind at this point:
- How hard is it to learn the dialogue scripting language so you can make your own dialogues?
- With different requirements of different games, how will this information be displayed on-screen?
- How much will this system cost?
Well, to answer the first question, if you are completely daft, the script format will take you about 5 minutes to learn. For the rest of you, you could probably learn it in under a minute. I have make it THAT simple. But, nice guy that I am, I have also created an editor extension for you to use so you can graphically create and test your dialogues right inside Unity. How nice is that? ![]()
As for the second question, that is where I am at now and why the engine has not yet been released. I have put all the logic into a single script file and exposed every possible function you could possibly want in order to create your own display files. As such, you can display your dialogues on screen in absolutely any way you want. To make all of the above happen, you need only ever call 1 function: speak() (with no parameters, even) and that is it. All of the other functions are there merely for display purposes and for selecting options in dialogues. Well, speak() and openFile(filename)…
To use this engine, what you have to do is create a subclass from my script. Your script just has to handle the display of the dialogue onscreen and the Input to make selections during the dialogue. then when it is done, you simply drag YOUR file onto your objects. You never use my file directly. The single file I kept mentioning above is the subclass that handles the display of the dialogue.
Now, this could be as simple or complex as you want it to be. As part of this release, I am creating 3 or 4 vastly different display methods to meet what I believe to be the greatest demand and including that in the pack. These display files will contain everything you need to get your dialogues up and running in seconds so if you like the format I use, just use it as is and you are ready to go. If on the other hand, you want to change it, so be it… you will have enough examples of how to do so to enable you to bring to life any ideas you may have in your mind…
I want to explain to you how different these included displays will be from each other, but that will take forever and in a matter of days from now you will be able to see for yourself exactly how different they are. Who knows, perhaps you can come up with your own unique display mechanic and we can start a free display section on my website where you can upload to and download new ways of displaying your data… Or even a dedicated thread here…
Well, this is my announcement…!
The system is almost complete and will be ready as soon as I have created enough display modes to satisfy the largest number of people.
So now comes the question of how much it will cost… and that is the question I am asking you. How much do you reckon is a fair price to ask for this dialogue system? I am very eager to hear how much you would be willing to pay for this so I don’t go shooting myself in the foot asking for $10 or making you hate me for charging you $10,000 ![]()
I hope this announcement has made someone very happy, today and eagerly await your feedback.
More screens to come when I get home…