Prevent enemy from using a skill again until actor comes out of the state from when the enemy used the move last?

I created an enemy skill that puts a status effect on a party member. I only want one party member to be inflicted with the status effect at a time. I need to seal the enemy's skill until the actor comes out of the state from when the last time the enemy used the attack.

For realistic reasons, the monster will not be physically able to put someone else into the state when an actor is in the state because the monster is currently doing something with the that actor. Such as holding the actor down with all fours.

I need a way to do that.

The problem is, there is no option to have a status effect that does one thing to the user and another thing to the target. Also, there is no way to link two status effect so that they will drop off at the same time (as far as I can see) unless you set the duration to exact for both and I do not want to do that, I want a little bit of RNG. Also, a status effect cannot call a common event, so I cannot do conditional branches to check if an actor is in a state or not. Multiple monsters share this move so it would not be efficient to put in conditional branches in every troop that has monsters that can use this move.

I have about five different varieties of moves that I need to do this.


Is there a way that I can accomplish this? I would appreciate it a lot. One of the skills is very common for bird enemies so having a way to do this would really help.
a status effect cannot call a common event,
there's a script for that.
the monster will not be physically able to put someone else into the state when an actor is in the state because the monster is currently doing something with the that actor.
maybe set a cooldown. Yanfly has a script for that.

All sounds very confusing, since what you want (from your point of view) is simple, but from our point (or at least mine) it's not easy to code.
The battle could have 4 enemies (or more) and any of them could do this attack that pins the actor, preventing them from moving and then the enemy will only attack that specific actor.
The actor is released and the enemy is no longer pinning the actor (both are free from this move/state). The whole thing is random where any enemy could pin any actor.

A lot of moving parts and recoding the battle system.

What battle system are you using?
I am using the default for Ace

Edit: I do not need the monster to attack the pinned actor. The pin itself is only to prevent the actor from acting and the actor is applied with a DoT (damage over time) AKA HRG with a negative value. the monster than continues to attack the others with either biting or magic
From my standpoint, the only thing you still need is the "never use the same skill while the state is active" part. That might take some time to figure it out.
How could something that seems so simple in theory be so over the moon complex?

I did not realize that I was digging up worms with this one lmao.

To me, it sounded so simple. Like a simple check, apply state to monster when party member goes into state, or simply linking the two states so they have same RNG, or something like that was what I was expecting.

Original thread: https://forums.rpgmakerweb.com/threads/prevent-enemy-from-using-a-skill-again-until-actor-comes-out-of-the-state-from-when-the-enemy-used-the-move-last.157617/