Help with Speech

Started by densming, Mon 08/09/2003 00:14:19

Previous topic - Next topic

densming

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.

Pumaman

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.

Ishmael

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...
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Pumaman

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.

SMF spam blocked by CleanTalk