MV Custom 'Attack' Skill sounds? like mrTS 'Hurt sounds' & 'death sounds'

Hello all! Basically I am looking like a plugin something like Mr Trivels "Hurt sounds" plugin or "Death sounds", where it lets you plate notetags in the actor/enemy window to specify 1 or more sounds to play when that character is hurt.
I want to try and do something like this for the "Attack" skill. Basically what I'm really after is for a way for it to trigger 1 of 3 specified sounds, specified in the actors notebox. here is a link to the two plugins i described, I've tried opening them up and messing with them to get something to work myself but I'm very new to javascript and game making in general and am having a hard time making things work. Any help would be appreceated, thanks!


You could try using Yanfly's Weapon Unleash plugin: http://www.yanfly.moe/wiki/Weapon_Unleash_(YEP)

It's probably a janky way to do it but it is an option.

But you'd have to make 3 versions of your skill and change the sound fx to each one you wanted to have a pool of.

Then use <Weapon Unleash x%: y> for the weapon with the chance to use one of the sounds.

So for 3 different sounds lets say you're using Skill IDs 3, 4, and 5.

Weapon Notetag Box:
<Weapon Unleash 34%: 3> //Shling sound
<Weapon Unleash 33%: 4> //Thwack sound
<Weapon Unleash 33%: 5> //Bonk sound

Could be a temporary solution until you find a more streamlined way.
I did find one solution using Yanflys battle commands (thanks to ATT_Turan over on the action sequence page) In the setup acton I run

eval: ran = [1,2][~~(Math.random()*4)];
and than when I want the sound to play
if ran == 1
se: Sound1
else if ran == 2
se: Sound2
else if ran == 3
se: Sound3
else
se: Sound4
This does give me pretty much the same effect I'm looking for, except I still need to use a different attack skill for each monster and character I want to have different voices, if there was a way I could somehow run this code in the character or monster notebox to have it pick the sounds based on the monster or actor type than that'd be the ideal solution!

​

Original thread: https://forums.rpgmakerweb.com/threads/custom-attack-skill-sounds-like-mrts-hurt-sounds-death-sounds.147063/