Using Sounds

You can use sounds to enhance your MUD experience. For example, imagine battling a monster and hearing the clash of steel and the grunts and screams from hitting the monster. Or, play background sounds and music while you MUD.

zMUD also supports the MUD Sound Protocol (MSP) which enables the MUD itself to trigger sounds on your local system. For information on the MSP specification details, go to http://www.zuggsoft.com/zmud/msp.htm

The sound driver in zMUD is very detailed and can handle many different sound formats. In fact, as long as you have the proper Windows drivers on your system to play a sound or multimedia file, zMUD can play it to. When playing standard WAV files (8-bit mono), you can play up to 8 sounds simultaneously. When playing other types of sounds, you can only play one at a time. At the same time as sound effects, you can also play a MID (MIDI) soundtrack in the background.

Using the #PLAY Command

All of this is accomplished with the #PLAY command. Just specify what you want to play. The sound files must be within the /sounds subdirectory of your MUD character folder, or in your zMUD directory. You can also specify a sound path in the Direction preferences to give zMUD a third place to look for your sound files.

Let's say you have a WAV file that says "Ouch" and you want it to play whenever you are badly injured. Just use #PLAY in a trigger like this:

#TRIGGER {You are BLEEDING!} {#PLAY ouch.wav}

That's all there is to it. Set up other sounds based upon messages received from the MUD. Or, play a MUD that uses MUD Sound Protocol (MSP) and the sounds will be triggered automatically!



Contents Debugging Scripts Introduction to Mapping