ID:169660
 
i was playing a game recently in my time between developing games and i was wondering how to do something. in the game (stargate online) there was the ability to use text2voice. so like if i typed in "Hello" the world would output a Hello sound. i'm assumeing he didn't hardcode everything so how could i do this?
If you do a forum search you should find several past threads on the topic. Generally people have concluded that this is a waste of time because the technology really isn't there, and anyway calling a program like that from BYOND isn't all that doable. You're better off picking a few sounds you want in your game and recording them.

Lumox JR
In response to Lummox JR
Thats a really confusing code you want there :/

Its better off using a sound code such as:

mob/verb/Sound(){set category="Voice";set name="Move out!";world<<sound('moveout.wav')}
//and if you want more, etc.
mob/verb/Sound2(){set category="Voice";set name="Regroup Team";world<<sound('regroupteam.wav')

etc.
Imcool75 wrote:
i'm assumeing he didn't hardcode everything so how could i do this?

I'm assuming he did. As far as I know, there is no hidden text2voice proc built in to DM.

RD