Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: lilinuyasha on Mon 21/07/2014 20:48:18

Title: Multiple dialogs at once
Post by: lilinuyasha on Mon 21/07/2014 20:48:18
Hey there. I was wondering if it was possible to have multiple dialogs going on at once. For example, have the annoying character speak in the background while the other two characters talk for a bit and then try to get away. Is that possible? Do I just start a dialog within a dialog?
Title: Re: Multiple dialogs at once
Post by: Khris on Mon 21/07/2014 22:54:17
The whole point of dialogs is implementing dialog choices, where the user can select how a conversation progresses.

Everything else can be done with Character.Say and Character.SayBackground, which is meant to display non-blocking speech. Unfortunately it doesn't also animate the character, so depending on how exactly you want this to work, you'll have to refer to one of the dozens of existing help topics about this issue.
Title: Re: Multiple dialogs at once
Post by: lilinuyasha on Mon 21/07/2014 23:09:50
I tried the whole "saybackground" command, but when I do, it skips the dialog completely and resumes with the next "Pinkie:asjfags" dialog line. I've resigned to just having her speak inbetween the characters, but is there a way to just have her background talk IN a dialog?
Title: Re: Multiple dialogs at once
Post by: Ghost on Tue 22/07/2014 06:57:31
Not tested, but you can call scripting commands from within dialog. Indent with (at least) two spaces, then enter a SayBackground command. Should work okay.

Player: A piiirate I was meant to be...
  cEnpeCe.SayBackground("Hah, says he!");
Player: ... all your base are belong to meeeee!