Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: ratracer on Wed 24/09/2003 15:59:10

Title: Scripting a Log of dialogues... (creating some kinD of text editor...)
Post by: ratracer on Wed 24/09/2003 15:59:10
I was wanting to have a log - available during play - that recorded the dialogues (all the dialogs,some ofthe dialogs, a brief description of the dialogs, it doesn't matter) so that I could option-off all dialogs topics once they were spoken but let the players review past dialogs (without leaving the game - that's the hard part, I guess, since I would have to have some kind of text editor, something like notepad, that would allow up-and-down scrolling).

(I've been "playing" with File I/O functions but, so far, they don't seem to be the answer I look for)...

Anyone ever done something like it? Anyone has any clue on what steps should i pursue?
Title: Re:Scripting a Log of dialogues... (creating some kinD of text editor...)
Post by: SSH on Wed 24/09/2003 19:00:56
Is it the journal in the longest journey that gives summaries of conversation, listing any important details, but doesn't actually have to list evert line spoken. It seems that this is probably the easiest way to do it in AGS, using set-globalint, or run-script in your dialogs (or anywhere else too, of course) to turn on each section of the journal.

But some record of dialogs might be easiest done by incorporating a logging function in the game engine itself, somehow...  oh great Man of Puma
Title: Re:Scripting a Log of dialogues... (creating some kinD of text editor...)
Post by: ratracer on Wed 24/09/2003 22:59:04
I did something a bit similar (if somewhat modest in scope) to what you mentioned in my previous game, "recording" stuff on the protagonist's laptop, but the problem was that I recorded them as objects (the objects were sprites, of course)...
I would be less worksome to be able to record it as text directly in AGS (instead of writing text in Word, then convert it to bmp and then import the sprite to AGS)  and be able to read it in a notepad-type mode...
Title: Re:Scripting a Log of dialogues... (creating some kinD of text editor...)
Post by: Pumaman on Sat 27/09/2003 13:09:21
Well, you could write everything to a file with the file I/O functions - the problem is reading them back in and displaying them. AGS doesn't really cater for displaying a large amount of text, though you might be able to use a GUI ListBox to get some sort of functionality. I'll have a think.
Title: Re:Scripting a Log of dialogues... (creating some kinD of text editor...)
Post by: ratracer on Sun 28/09/2003 15:43:02
Ok, thanks - I'll try to use a ListBox (in any case it will be a good exercise, since I never used a ListBox)