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.
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.
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...
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.