|
Silanus Beginner
Joined: 25 Nov 2005 Posts: 13
|
Posted: Wed Nov 30, 2005 2:42 pm
Varable Randomizer |
I'd like to randomize my @sword varible
I found the code line below in a Forum post regarding random sound triggers and tweaked it slightly but can't quite get it to work.
#var sword %case(%rand(1,3),sword1.wav,sword2.wav,sword3.wav)
I know I'm doing something wrong but have looked everywhere and the help files that I've found that might unlock this riddle are above me.
Thanks in advance for your help. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4689 Location: Pensacola, FL, USA
|
Posted: Wed Nov 30, 2005 3:02 pm |
#VAR sword {sword1.wav|sword2.wav|sword3.wav}
#PLAY %item(@sword, %random(1, %numitems(@sword))) |
|
_________________ Discord: Shalimarwildcat |
|
|
|
Silanus Beginner
Joined: 25 Nov 2005 Posts: 13
|
Posted: Wed Nov 30, 2005 8:05 pm |
Works like a charm!
You are a Magician!
Thanks after the fact too! |
|
|
|
|
|