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
dvgalius2002@yahoo.com
Beginner


Joined: 01 Aug 2006
Posts: 21

PostPosted: Wed May 23, 2007 6:48 am   

trying to figure out how random works
 
I have a var with different options trying to get random working

#var {one.wav|two.wav|three.wav|four.wav|five.wav}

Now I have a trigger which is suppose to go off and play any of the five wavs.

#trigger {You win the Jackpot} {Just not sure what to put here to get it to play a random one, I know #play one.wav would play one.wav}

Any help would be appreciated.
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: Wed May 23, 2007 7:54 am   
 
#var wavs {one.wav|two.wav|three.wav|four.wav|five.wav}

then

#TRIGGER {You win the Jackpot} {#play %item( @wavs, %random( 1, 5))}
_________________
-Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style."
Reply with quote
dvgalius2002@yahoo.com
Beginner


Joined: 01 Aug 2006
Posts: 21

PostPosted: Wed May 23, 2007 8:23 am   
 
works great thanks
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