Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Mel_O_Die on Wed 14/06/2006 14:18:19

Title: Voice Speech for all messages
Post by: Mel_O_Die on Wed 14/06/2006 14:18:19
Hi! I'm just starting to use AGS (very cool program!) but i don't understand all :s

I'm actually testing program possibilities and i'm locked on many thing, but the one i wish to solve is the following:

What should i do exactly (how & where in the program or script) for having voice & text (display message when looking at a hotspot for example)

I've made some search on the manual, forum & google searchs but i found nothing working or explaining how that works...

ps:
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=19748.0
i found that thread but it doesn't work cause i don't know where i have to put that:
Quote from: strazerOh, and you have to do
Ã,  Display("&1 Hurrah, I have a voice!");
for NARR1 of course, just like with DisplaySpeech.

Thanks for helping me :)
Title: Re: Voice Speech for all messages
Post by: Khris on Wed 14/06/2006 14:25:25
agshelp.cfm -> Other features -> Music and Sound -> Voice speech
http://www.adventuregamestudio.co.uk/manual/Voice%20speech.htm

The thread you found is very specific, using voice speech in dialogs is much easier.
It's explained thoroughly in the manual, ask again if you need additional help. And welcome to AGS.
Title: Re: Voice Speech for all messages
Post by: Ashen on Wed 14/06/2006 14:49:24
Quote from: kyt_n8 on Wed 14/06/2006 14:18:19
i found that thread but it doesn't work cause i don't know where i have to put that:
Quote from: strazerOh, and you have to do
  Display("&1 Hurrah, I have a voice!");
for NARR1 of course, just like with DisplaySpeech.

What do you mean by you "don't know where to put it"? In the Hotpost Interaction menu, choose 'Look at hotspot', add a 'Run script' interaction, push the Edit Script button and put any code you want to run in there - same as for any interaction.

Does this mean you're using the Interaction Editor commands (e.g. ' Game - Display a message')? If so, KhrisMUC's link is only part of the answer (but still worth reading). The other bit is in that thread you linked:
Quote from: strazerAnd for DisplayMessage, you just have to set the message text to "&1 Hurra, I have voice!".
DisplayMessage (http://www.adventuregamestudio.co.uk/manual/DisplayMessage.htm) is the script command equivilant of ' Game - Display a message' - so as strazer said adding "&1" to the start of your message will play the appropriate sound file.