Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Steel Drummer on Thu 30/03/2006 16:20:55

Title: Speech help
Post by: Steel Drummer on Thu 30/03/2006 16:20:55
I made a game and am going to put speech in. My question is: how do you get speech files to play on room messages?
Title: Re: Speech help
Post by: SSH on Thu 30/03/2006 16:44:54
Have you read: http://www.adventuregamestudio.co.uk/manual/Voice%20speech.htm
Title: Re: Speech help
Post by: Ashen on Thu 30/03/2006 16:53:42
If you mean messages set in the Interaction Editor then I'm not sure if you can  include speech. (I think the idea is if you're advanced enough to be including speech, you'll probably be using scripting rather than the Interaction Editor commands.) But have you read the manual entry on Voice Text that SSH linked? What if you add the file number to the room message (e.g. "&10 It's a cup").

Hidden away in the Scripting global variables (http://www.adventuregamestudio.co.uk/manual/Globalvariables.htm) section is this:
Quotegame.narrator_speech 
Which character ID to use for voice speech within Display() command. Default initial player character. You can also use NARRATOR which uses 'NARR' prefix - special narrator character. 

So, you can include speech in Display(..) commands exactly as you would in normal speech, just add more Egoxx.wav files, or change that variable and  name the files NARRx.wav. 'Normal Text' messages behave like Display(..) commands, so maybe this'd work for you.
Title: Re: Speech help
Post by: Steel Drummer on Thu 30/03/2006 17:09:53
Sure, nothing too complicated though. I use MSPaint to do my bgs.
Title: Re: Speech help
Post by: Ashen on Fri 31/03/2006 01:38:46
So does that mean you've got it working, or that you need something explained further? And what does your art package have to do with sounds or scripting?