Hello everybody,
I'm trying to script the following: The player can talk to another character (works fine),and when he selects a certain dialog option I want the player to regain game control (usually a player has no control during dialogs) and his dialog partner should continue talking for a while.
I have two problems with this:
1. When running multiple saybackground lines only the last one is shown (even with bgspeech_stay_on_display=1).
2. For the player to be able to act I need to end the dialog and then run the saybackground lines. Now I need a way to either run these commands immediately after ending the dialog OR a way to end the dialog from the global/room script rather than the dialogscript.
Any ideas?
1. There's no built-in way to run multiple SayBackgrounds, however there's a module called QueuedBackgroundSpeech that should do the trick.
2. Since you can run standard script commands from within a dialog script, just run the commands before the dialog's "stop" command(s). If there's more than one option that'll end the dialog, put the commands inside a custom function and run that to avoid duplicate code.
Thanks for the hint with the module. I found another one that was compatible with the new version of AGS. Works fine now.