Turn a switch on when an actor selects a skill in battle

Hi friends! I'm attempting to make a battle system with Dual skilIs. I know that there are some plugins that do this, but it seems they don't play nicely with other plugins I have, so I'm attempting to do it on my own.

I have it set up so that when actor A uses dual skill AB, it applies a state to actor B so that he can't act this turn. Whatever action he had put in is just canceled. I want use of a dual skill to take up both players turns. For this reason, all of my dual skills have the highest possible speed bonus. This is fine.

My problem comes when, for example, actor A uses dual skill AB, and actor C uses dual skill CB. Actor B's turn should be used up by the first dual skill that activates, meaning he shouldn't be able to participate in any more for the rest of the turn, but the game has no way of knowing this and just executes both skills.

I want a way to prevent actor C from selecting the CB dual skill after Actor B is already queued up for another dual skill.

I worked out a way to solve this, but I'll need a way to turn on a switch when an actor SELECTS a skill, before it is used. Is there any possible way to do this?
Only way I can think of is through common eventing with script calls. Unfortunately, the latter of those two parts I would not know how to execute very well.

I think one of our expert scripters could give their insight.
First, do you use default battlesystems or a plugin battle system? that will make a difference in the solution.

In default, this is simply not possible - the maximum would be a workaround.
You cannot prevent the player from selecting the CB skill if B is already used up, but you can check the options on skill execution if the actor B is still available and if not, automatically replace CD with a simpler effect.
But even that workaround will be tricky and require carefull handling, so we need to know how your battle works before anything specific can be given.

If you want to do it directly, you'll need a plugin for the effect - there are several existing ones that might be used here, for example something like instant cast to check the effects during selection phase.
@Andar I use the default battle system (meaning turn-based, no CTB/ATB ) with a few plugins (Yanfly's battle core and most of the MOGHunter battle plugins).

I think I understand your idea! For example, we'll say Actor A has the Water skill. Actor B has the Fire skill. Actor C has the Light skill. So if Actor A selects dual skill AB (WaterFire), and Actor C selects CB (LightFire), we'll say that A has a higher agility. Actor A will do WaterFire, applying a skip-turn state to B. Actor C will attempt to do LightFire, but we can check before (or when) the skill executes whether or not Actor B has the skip-turn state. Since he does, we can just have Actor C do the regular Light Skill.

Is this basically what you were saying?

So I'm guessing I'd need a dummy blank skill for each Dual skill that would just run a common event checking the State of the other actor, and then force an action accordingly?
Like Chrono Trigger. I like it.

Original thread: https://forums.rpgmakerweb.com/threads/turn-a-switch-on-when-an-actor-selects-a-skill-in-battle.75889/