I always get sick with coding dialogues for my mods. Sometimes it's the reason for the lack of motivation to work on them. In any case, I thought that a tool to generate script would be handy. I had the Conversation Editor of NWN in my mind when I started to work on this yesterday and here's what I got so far.
It's a script generator that will create you a coded dialogue that you can copypaste into a text file.
You can add dialogue lines here, or delete them. You can drag them to another valid line. You can also modify them later and can add conditions and/or actions to the given line. Pink lines are said by the NPC, greens are said by PC. You can't copy lines.
You can also link lines to other lines by holding down the control key while dragging them, defining where the dialogue should continue. This is the way you complete a branching tree, returning all the branches to one line.
You can choose the type of conversation (begin-end, chain if with npc-pc, chain if with npc-npc)
You can define the name of the conversation.
You should define the name of the initiator of a chain dialogue if you use one of the chain if types.
You should define the name of the partner of a chain dialogue if you use chain if with npc-npc.
If you finish adding lines, you can click the "Script!" button to get the generated script.
Here you can set the conditions and/or actions for the given line. Just write them in the textboxes. There are some templates you can choose from the comboboxes too. Not all of them are listed though, so minor dialogue coding knowledge is still required.
Also, you should know what you want to do. Giving a condition to a line that is followed by line with the same condition is useless. (and it probably messes some things up, haven't tested this yet ^^)
Here is the result of a simple joining dialogue of an NPC, with begin-end. As the magnificent ScriptCat ^^ says, you can copypaste this code into a text file.
The same with chain if.
And a splendid conversation between the test subject and our beloved Jaheira, using the chain if with npc-npc type. ^^
You can also save a half-finished conversation into a cms file, so you can load it and finish it later.
What's not included (yet):
-Extern and append
-Multiple conversation editing
-Turning an existing d file into a conversation tree
-Linking lines together is functionally working, but it's not visible if two of them are already linked
-Displaying information about lines (links, conditions, actions), so you don't have to open the "Change Conditions/Actions" window
Requirements:
-Microsoft .NET Framework 2.0 (as far as I know, nothing else)
So far it works, now only some testing remains! ^^
Edited by witya, 11 July 2009 - 05:00 PM.