How to make enemies change the attack they use mid-turn?

Hello, I have an idea for an enemy that has a chance to use a skill that activates a "charge" state. The next turn, they will use a very powerful skill, but I want it so that if the player damages this enemy while they have the "charge" state, the state will be removed (which I know can be done by default) and use a different, much weaker skill. Is there a way to do this with a normal enemy that can appear in groups?
If it makes it easier to come up with a solution for this, I want the enemy to only use the charge skill when at full hp.
I've found plugins that can make enemies react mid turn, but I don't want every enemy to do this, in fact I've designed the enemies to NOT react mid-turn.

Thanks in advance (=
without using plugins, you can have your charge skill that adds the charge state give a second invisible state with the same length of the charge one. then you can and have the attack pattern make it so that if the enemy has the charge state then it uses the stronger skill at a rating of 9 but if they have the invisible state and not the charge state, the use the weaker skill at a rating of 6

EDIT: completely missed the 2nd half. you could have the 2 states still, and have the skill call a common event hat forces the weaker or stronger action based on which state they have
Is there a reason it has to be two discrete skills?

I would probably make one skill and use Action Sequences to make it do two different things depending on whether the charge state was still on or not.
Is there a reason it has to be two discrete skills?

I would probably make one skill and use Action Sequences to make it do two different things depending on whether the charge state was still on or not.
Oh ok! I would like the name to be different, maybe I could have a common event force a different skill if the charge was on, I forgot I could do that with action sequences, thanks!
Yeah, displaying a battle log message (e.g. the name) is one of the action sequence commands.

If you're not completely brand new to action sequences, I think it's less effort to do that than it is to figure out some way to code this.
Yeah, displaying a battle log message (e.g. the name) is one of the action sequence commands.

If you're not completely brand new to action sequences, I think it's less effort to do that than it is to figure out some way to code this.
Actually, I haven't found out a way to get the game to even detect if the enemy has the state, that's really all I need, it seems the only way to do this with action sequences is to use a script, there's no command to check for statuses.
Actually, I haven't found out a way to get the game to even detect if the enemy has the state, that's really all I need, it seems the only way to do this with action sequences is to use a script, there's no command to check for statuses.
I wonder if perhaps you could use "Force Action" on an enemy for this.
Actually, there is a condition for enemy actions that checks if it has a state. Dunno if that's what you mean, but I know that much.
I wonder if perhaps you could use "Force Action" on an enemy for this.
Problem with force action is it can only target an ID, not the user.
Actually, there is a condition for enemy actions that checks if it has a state. Dunno if that's what you mean, but I know that much.
I'm referring to a plugin, not a default feature.
Ah, okay. My bad.
Actually, I haven't found out a way to get the game to even detect if the enemy has the state, that's really all I need, it seems the only way to do this with action sequences is to use a script
Then use the script call? I don't see why that's some kind of problem 😛

If you Google "rpg maker mv script call has state" or look it up on the pinned thread of the MV Script Call List, you'll very readily find user.isStateAffected(id)

Then use the script call? I don't see why that's some kind of problem 😛

If you Google "rpg maker mv script call has state" or look it up on the pinned thread of the MV Script Call List, you'll very readily find user.isStateAffected(id)
Thank you, I should've done that in the first place, everything works now, except showing a message in the battle log for the skill name, you said it was a function of the action sequences, but I can only find a way to make the game display the skill name. I kind of wanted what is displayed in the battle log to be different depending on what happens.
Look up the script call for displaying text in the battle log and use the eval command.
Look up the script call for displaying text in the battle log and use the eval command.
Works wonders! Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-enemies-change-the-attack-they-use-mid-turn.162709/