Can someone help me to stop enemies from inflicting a state twice on the same actor? [RPG Maker MV]

Hi, I'm new to Rpg Maker and I was wondering if there is any way to stop an enemy from inflicting a state on the same target over and over.
Here's the thing: this enemy is a boss, and I wanted it to specifically target the first Actor in the party with my state inflicting attack (one that goes no physical attack but status 80%). I already have a system in place on how to target specifically one actor, but I want to make sure that if that actor is already inflicted with the state that the enemy will stop using that skill that inflicts the state. Otherwise, the enemy will repeatedly keep using that state inflicting skill on the same actor and will get nothing done in the enemy's turn. I know that one can add conditions to an enemy's usage of skills in the skills tab of the database, but they're all like "If enemy has X amount of Hp/Mp/Turns left", and no "If actor doesn't have X state".
Thanks for reading, please help if you know anything to solve this.
that completely depends on how you select the target.
so you need to give us screenshots of the skills/patterns/events involved with this, and then we can tell you how to change them.
ok give me one sec
Okay so i have some explaining to do lol.
So Figaro is the main Actor that I want to be targeted. Ren is another actor that won't be.
The skill is a skill called Taunt, which has an 80% chance of inflicting my Rage state.
All on Figaro is just a blank slate of a skill. I only use it for a condition in my common events, and its completely invisible to the player.
The 0% Target Rate state lowers the actor's target rate to (you guessed it) zero, and I put this on Ren so that the enemy wouldn't think of going after him and only focus on Figaro.

The first image is a battle event for the enemy, that starts the Common Event that targets Figaro and gives Figaro the All on Figaro state, which will be applied to the subsequent Common Event when the enemy is at 50% HP or lower.

The second image just shows the All on Figaro state. As I said before, it's completely blank.

The third image displays the Common Event that was applied to the first battle event of the enemy. It gives the entire party (both actors) the 0% Target Rate state, but then right away takes away the state from Figaro, as it realizes the All on Figaro state that was placed before on the first line of the battle event of the enemy. As Ren has 0% Target Rate and now Figaro has 50 or so, the enemy exclusively goes after Figaro.

The fourth image just shows the 0% Target Rate. At the top right you can see the special parameter I used to rig it up.

The fifth image is the second battle event of the enemy, which asks if the state that is supposed to be inflicted on Figaro is actually there, and if it is, to take the 0% Target Rate state off of Ren and the All on Figaro state off of Figaro, giving back Ren his 50% target rate (making both actors' target rates equal) and making sure that if for whatever reason the Common Event of the first battle event or the first battle event in general runs again it, well, won't because that state isn't on Figaro. This entire battle event occurs when the enemy reaches 43%, only a little away from the last battle event

Okay, so I have something to admit. When I was doing all of this and writing it all out I kind of found out how to fix my own problem without realizing it, my bad! Sorry for wasting your time or anything!
Hope you have a good day.
Hey Thornyan64 -- I'm not sure if it will be helpful to you, but I'll post it as you said you were new to RPG-maker and it might be an area you can study at greater length to further help refine what you want, perhaps. Yanfly has a plugin called Battle A.I. Core, which may give you greater refinement, you can check it out here:



It might help you out some; it sounds like you need to have a conditional check to see if status on actor = true, then enemy stops casting skill. You can perhaps do that with Yanfly's Buffs and States Core and [perhaps also needing his] auto-passive states.

Trihan has a lunatic mode workshop for MV here: https://forums.rpgmakerweb.com/index.php?threads/trihans-lunatic-notetag-workshop-mv.123457/

He has a lot of knowledge with Yanfly's stuff, you could politely reach out to him and see if he has time to answer your question.

Original thread: https://forums.rpgmakerweb.com/threads/can-someone-help-me-to-stop-enemies-from-inflicting-a-state-twice-on-the-same-actor-rpg-maker-mv.124933/