If I have each paragraph of the string object contain the required data in a fixed number of characters at the start of the string, I should be able to use the Sub-String expressions from the Special Object to get the required info from the string. So for example, the string:
Code:
01NPC0000100Computer Hello World!
would have the following data:
Characters 0 & 1: Value 01 - Checked by Condition to know what to do
Characters 2 - 9: String "NPC00001" - Animation for character portrait object to change to, to show a certain character
Characters 10 & 11: Value 00 - Direction for character portrait object to 'look in', changing character portrait's expression
Characters 12 - 23: String "Computer " - Character name to show in a small box above main dialogue text
Characters 24 and onwards: String "Hello World!" - What the character actually says
I could then use these to run the various bits and bobs of my dialogue system. In fact, doing it this way means I can be a lot more flexible than using a .ini, because I only need the first two characters as numbers to tell it what to do and the rest of the string after that can be used for different actions depending on that first number, instead of having to assign a name to every single value.