Weakaura sound help [SoD, classic]

Two things:

  1. How can I make a sound stop on an event? (when I get into combat I have a lightsaber idle hum sound that I would like to go away the instant blows are actually exchanged)
  2. How can I randomize the “count” trigger? (I have 57 different sounds for sword hits. Instead of 1/57 for the first, 2/57 for the second, etc, I’d like the sounds to be randomized and even better non-repeating until all 57 have been used up. This has to be custom code I’m sure)

I don’t WA so…

To stop the sound when you actualy start fighting, use the event:

PLAYER_REGEN_DISABLED

If you have a numbered table with the sound files then:

PlaySoundFile(SoundTable[random(1, 57)])

should play a randomised file.
Anything more complicated you would have to keep a record of which entries had been played (eg. move them to a secondary table) and randomise the remainder.

1 Like