It might sound stupid, but I have a problem with the global messages.
I want the Narrator to say the global messages. But I don't know, how I can do this?
I already added the MP3 files named as NARR1, NARR2, etc. in the Speech folder. But I get only the text displayed....
How are you making AGS display the text? Using Display?
AFAIK, only Say & dialog script lines can have voices.
Yes, for example.
DisplayMessage(500);
Well, that would be a problem, if there is no possibility to get the global messages as voice, I will have to use playsound(500);
But that is not a very satisfying solution....
Which is one reason CJ is updating the Audio system in the next version, but you would have to update to 3.2 when it comes out, and there must be some reason you're still stuck back in 2.72.
~Trent
QuoteHow are you making AGS display the text? Using Display?
AFAIK, only Say & dialog script lines can have voices.
No, Display also supports voice. The question however, is whether DisplayMessage does.
First of all, have you managed to get narrator speech to play when using normal Display (not DisplayMessage) function? If not, you should try setting "game.narrator_speech = NARRATOR;" at the start of your game. Otherwise the game expects the player character to be the speaker and looks for his name in the audio files.
Now, as for global messages, MAYBE you could put "&1 " (and so on) at the beginning of the message itself, but as I said, I don't know if the DisplayMessage function supports audio and I don't have AGS 2.72 installed so I can't check. But if that doesn't work, here's a workaround:
Display("&1 %s", Game.GlobalMessages[500]);
This should play the file NARR1.mp3 while displaying global message 500. If you number all the narrator's lines to correspond to the message numbers, you could write a small function to do this:
function DisplayNarrator(int message) {
Display("&%d %s", message, Game.GlobalMessages[message]);
}
Put that in the global script, import it in the global header, and then call it whenever you need to display/play a narrator message. E.g. "DisplayNarrator(500);"
I still use AGS 2.72 because the game I update was progammed in it.
And importing the game into AGS 3.00 was a mess.
So I stayed with AGS 2.72 for that game. My next will use the newest version.
@ GaraceGothic
Thats a good idea, I never tried this!
Thanks!