(If you know of any other script that you think would do the job better, please namedrop it.)
(Link to Mr. Trivel's Hurt Sounds script, raw code of the script)
Lately I've managed to get voice actors for my game (woohoo!, thank you fiverr) and I now have several voice files with pain grunts, dying screams, etc. Mr. Triviel's script does what I want it to do, but from what I understand, it only supports 1 specific hurt sound for each character.
What I want is for the script to have a CHANCE (about 35% should be good) to randomly choose one of several Sound Effects unique for each party member to play.
I also want it to have a CHANCE (about 50%) to play a specific sound effect when a party member dies.
The reason I'm asking for chances is to avoid the sounds getting repetitive and annoying fast.
So to sum it up, modifications needed:
With any luck this will be relatively easy to program, but still, I understand I'm asking for a lot. Thank you for any help provided.
(Link to Mr. Trivel's Hurt Sounds script, raw code of the script)
Lately I've managed to get voice actors for my game (woohoo!, thank you fiverr) and I now have several voice files with pain grunts, dying screams, etc. Mr. Triviel's script does what I want it to do, but from what I understand, it only supports 1 specific hurt sound for each character.
What I want is for the script to have a CHANCE (about 35% should be good) to randomly choose one of several Sound Effects unique for each party member to play.
I also want it to have a CHANCE (about 50%) to play a specific sound effect when a party member dies.
The reason I'm asking for chances is to avoid the sounds getting repetitive and annoying fast.
So to sum it up, modifications needed:
- Editable CHANCE (same for all characters) to trigger the basic script.
- Random selection from amongst sound effects listed on the character (there will be around 4-5 for each character).
- Editable CHANCE (same for all characters) to trigger a specific sound effect upon character death.
- Specific sound effect triggered for character death.
With any luck this will be relatively easy to program, but still, I understand I'm asking for a lot. Thank you for any help provided.