1
Technical forum / Re: The most effective way to program dialogue
« on: December 16, 2004, 08:04:55 AM »
What about this:
Writing the dialogue in an XML format -->
* a dialogue schema would define how a dialogue can be written, and XML files would have to validate against that schema.
* sentences could have an attribute "condition", which is a numeric (hex?) code which could be checked against some variables that have been set before, in order to decide whether or not it is relevant to display the dialogue option
Having dialogues in XML format could even ease the development of dialogue (even without a real dialogue editor), by using an XML editor that is able to create a document from a schema.
The only thing that would then be needed, is to write a parser dll to display the dialogue correctly.
I'm currently researching an optimal schema, and if I found something good, I'll keep you posted!
Writing the dialogue in an XML format -->
* a dialogue schema would define how a dialogue can be written, and XML files would have to validate against that schema.
* sentences could have an attribute "condition", which is a numeric (hex?) code which could be checked against some variables that have been set before, in order to decide whether or not it is relevant to display the dialogue option
Having dialogues in XML format could even ease the development of dialogue (even without a real dialogue editor), by using an XML editor that is able to create a document from a schema.
The only thing that would then be needed, is to write a parser dll to display the dialogue correctly.
I'm currently researching an optimal schema, and if I found something good, I'll keep you posted!