MZ Sound Effects if an actor has a state

Hi! I would like to add a Sound Effect when an actor has a state, is there any JS code or plugins that helps with that?
Thank you.
There is Yanfly's Visual State Effects, which lets you assign an animation to state. A sound efect can be part of that animation. If you only want the Sound you could just create an empty animation with just the SE.

EDIT: Wait your using MZ x.x In this case you'd want to use Visual State Effects by VisuStella instead.
Thank you, I'll try!

Original thread: https://forums.rpgmakerweb.com/threads/sound-effects-if-an-actor-has-a-state.141954/