Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
lifegod
Newbie


Joined: 23 Feb 2004
Posts: 3
Location: USA

PostPosted: Wed Feb 25, 2004 9:36 am   

Question about sounds...
 
Here is my newest question...

Working on adding in sounds and hoping there is a way to randomize the sound from a trigger. Something like this

Your blood freezes as you hear a death cry!

causes #play c:/scream

BUT, that is cool but getting old so I would like to have 5 sounds that each have a 20% chance of being triggered, anyone know if there is a way to do this
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Wed Feb 25, 2004 11:06 am   
 
might be possible with something like this AKA untested and half asleep

#var battlesounds {c:sound1.wav|c:sound2.wav|more|more|more}

#show %item(@battlesounds,%random(1,%numitems(@battlesounds)))

Plenty of diff ways to do it but that comes off the top of my head :P
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net