Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: densming on Mon 08/09/2003 00:14:19

Title: Help with Speech
Post by: densming on Mon 08/09/2003 00:14:19
How can I incorporate a "narrator" voice into my game?  For example, when a normal message pops up, I want a voice to read what the message says.  The documentation explains how to do this when a character is speaking, but not when a normal message pops up.  Is there a way to do this?

I did figure out a semi-workaround, but it's not exactly what I want: If I begin a normal message with & and a number, it will look by default for the main character's wav file and play it.  Problem is, when the user dismisses the message box with a mouse click, the sound does not stop playing if I do it this way.
Title: Re:Help with Speech
Post by: Pumaman on Tue 09/09/2003 21:33:37
Hmm good point, that's a bug - it should stop the speech when you click away the window.

I don't think anybody has actually tried to add speech to narrator lines before, I'll add it to my to-do list.
Title: Re:Help with Speech
Post by: Ishmael on Wed 10/09/2003 15:13:35
CJ, am I right that character -1 is the narrator? If you pass -1 as CHARID, would the engine crash, or display the speech? Haven't tried, so asked...
Title: Re:Help with Speech
Post by: Pumaman on Thu 11/09/2003 21:29:52
There is no CHARID for the narrator. You just use Display() rather than DisplaySpeech.

In dialogs scripts, there is a special "NARR" character ID which you can use.