Playing sound effect when applying certain states

I was how would play a sound effect when I apply a certain state.

For example, if the enemy gets the "Tripped" State I would play a sound effect then.

I have one of my actor have a skill that will "trip" the enemy how would I remove it once the enemy has been "tripped"?
For example, if the enemy gets the "Tripped" State I would play a sound effect then.
You could simply play the sound when you use the skill that applies the state - make it a part of the skill's animation.

There are other ways to do it involving plugins, but that's the simplest way.
I have one of my actor have a skill that will "trip" the enemy how would I remove it once the enemy has been "tripped"?
What is "it"? Remove the state? I don't know, what does being "tripped" mean? Please ask this part a bit more clearly.
You could simply play the sound when you use the skill that applies the state - make it a part of the skill's animation.

There are other ways to do it involving plugins, but that's the simplest way.

What is "it"? Remove the state? I don't know, what does being "tripped" mean? Please ask this part a bit more clearly.
Sorry for being vague.
The actor first applies a state to themself then the enemy attacks them then the actor counters attacks applying the "Trip" state to the enemy. I was wondering how would I remove the state on the actor once the enemy has their state?
The actor first applies a state to themself then the enemy attacks them then the actor counters attacks applying the "Trip" state to the enemy. I was wondering how would I remove the state on the actor once the enemy has their state?
I would use Yanfly's Skill Core and Critical Control.

Critical Control allows you to set a specific skill to be used for the counterattack from the actor's initial state. You can call it whatever you want in the database, but the important thing is that it's a different skill ID from Attack.

Then you use notetags from Skill Core in that counterattack skill that say after the hit, remove this state from the actor.
I would use Yanfly's Skill Core and Critical Control.
You'll want to add FOSSIL to these if MZ is the Maker you're using corresponds with the support forum this was posted in, @KazukiT, as these are for MV.
You'll want to add FOSSIL to these if MZ is the Maker you're using corresponds with the support forum this was posted in, @KazukiT, as these are for MV.
You're completely right. I keep looking at the engine people have as Primarily Uses in their profile, rather than the forum they post in.

@KazukiT which do you mean? Your profile says you use MV, but you posted in the MZ forum.
You're completely right. I keep looking at the engine people have as Primarily Uses in their profile, rather than the forum they post in.

@KazukiT which do you mean? Your profile says you use MV, but you posted in the MZ forum.
Oh, this issue is for MZ, I just transferred over from MV to MZ after my previous game.
Okay. Well, you can still use the method I suggested, and either use Yanfly plugins via FOSSIL as Sword said, or the VisuStella equivalents.

Incidentally, I mistyped in my original post, I said Critical Control instead of Counter Control, which is obviously the one that's relevant to what you're doing. I don't think VisuStella has an equivalent to the Counter Control.
This thread gives some examples of how you could rig up a counterattack skill using VisuStella Auto Skill Triggers.
This thread gives some examples of how you could rig up a counterattack skill using VisuStella Auto Skill Triggers.
After some fiddling around I was able to make the skill the way I envisioned.

Original thread: https://forums.rpgmakerweb.com/threads/playing-sound-effect-when-applying-certain-states.149808/