Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: darkseed on Tue 14/08/2007 16:55:04

Title: Dialog texts - data/code isolation
Post by: darkseed on Tue 14/08/2007 16:55:04
Is there a way to embed a startup dialog in the dialog system? I mean a dialog that isn't triggered by a dialog option selection, but by a dialog start? Right now, I'm using Character.Say() in these cases, but my dialogs are mixing up with the code. Other problem is the game msgs, I display them with Display(), but the text again gets mixed up with code.

I wanted to give ONLY the game text to the plot/game design team... My idea is to dump the dialogs to a text file using this option in AGS, but these others texts aren't included. I can export the scripts as well to get the other texts, but I dont want code in my text file.

What you guys would suggest to isolate data and code in these situations? I've thought  in using text files, but the documentation says to only use them to handle simple stuff as saved games...

Thanks in advance
Title: Re: Dialog texts - data/code isolation
Post by: Khris on Tue 14/08/2007 17:13:42
Create a translation source. This will dump every line of text in the game into a textfile.
Title: Re: Dialog texts - data/code isolation
Post by: Pumaman on Tue 14/08/2007 18:57:43
To have a startup dialog, use the @S marker in the dialog script which will run before the dialog options are displayed.

As for dumping your game text, the best method to use depends on what you want it for. As KhrisMUC suggests, a translation source is the easiest way if you don't want to modify the text.