I thought of something like that, Abjorn, but figured it would be easier for LATs to handle it if it was stored in text files with a simple interface, could be done with an editor too.
The new format with trees would look something like this:
PHP Code:
CHARACTERS
"Bob" "head3.png"
CHARACTERSEND
DIALOGUE
LABEL choices
Bob: What should I do?
CHOICE "Go to label poop" line: poop
CHOICE "Load a new file" file: bloop.txt
CHOICE "End dialogue" line: end
LABEL poop
Bob: Ah, so you like poop!
-player: ummkay?
GOTO choices
LABEL end
DIALOGUEEND
Choices could be handled just as easily by sending back another array with corresponding choices, most likely parsed again by the server. Would be the easiest, in my opinion. Make have a SETVAR function to set player variables or a RUNFUNC function or something, dunno.