Trying to make a state that only affects one actor at a time

Howdy! So I’ve got a weird conundrum. I’m developing a game in RPG Maker MV about dinosaurs where you collect them and use them in battle. I’ve been tinkering away at a game mechanic I’m calling “The Sigma System”. You can modify your dino’s behavior with a command, this is using the skill type 2 system (special). The goal with this system is that you can have an actor become an Alpha, or a Beta. When they are an Alpha, all enemies target that actor but they gain increased stats. When they are a Beta, that actor cannot fight, but they also cannot be targeted. All of this is what I’ve currently created with the help of TheoAllen’s Taunt and Hide Traits (https://forums.rpgmakerweb.com/index.php?threads/theo-taunt-and-hide-mz.133122/).

The issue I’m running into now is that I only want one actor to be in an Alpha or Beta state at a time. Here’s what I mean:
L7f0V4E4AyZ5CZpvBd_kAl9S3_2fxgI5HoCHIbGILWB6dVld8UDcFS-3oAOfZcL0AxRy6flGJkSJiaFUw_6GV_RCPOTpxoW4FQA8BsmdHbx0V8-U4E51F_ob36x3--9Hg3IMG8J_RAf0Pr72LqoWqqg

The gold star represents the “Alpha” state. Only the Triceratops is the Alpha right now, which is fine.
LlpG5SA-U_rn0xfJXhcf-opruVtZY6bOn4RRX81asY6zX1bH97HCI4TyOS7GnpvsqOrbWnsadAH477qE2qP7EdmhMe0fLV-lP8dskEpuBmfK08WMBGFRKvKM1OWAGOuZ5bH3Zs59BOShB3V8LLl-JnQ

Here, the Triceratops is in the “Alpha” state, and the Utahraptor is in the “Beta” state with the silver star. This is also fine.
HVGELa4Q8zIN4IIid9mTG70yMfUbgHG_DPtB20PlVpgJbLCBF1IHWt49fOhA68SfLB_8JFGi5GWimHYdaJmMkSq7-J6hVO4uj1MSRbaGX-JTaTyWddBcaL1YgfjfqDEUUj45MUd_pCZrq_yUBF1ptYE

Here, all three actors are in the “Alpha” state. This is what I want to try and eliminate, and I feel like it can be done through a common event check. Something that checks if an actor in your party has the state enabled so it disables the skill. There’s a HIME plugin that lets you disable skills midbattle, theoretically I could use that, but I would still need to create a common event to check for when the state is applied. I would also likely use this for disabling these commands when there’s only one actor left standing in battle, but that’s a bridge I’ve yet to cross. I just don’t know how to start, and was hoping I could have some help. Thank you for reading!
Common events can't disable skills in any way I can think of - they can remove them from actors' lists entirely, but that gets really messy (and looks weird for the player).

I would use Yanfly's Skill Core. Put the following notetag in:
Code:
<Custom Requirement>
value=!$gameParty.members().some(actor => actor.isStateAffected(stateId));
</Custom Requirement>

That should make the skill be greyed out if anyone currently has the state.
Oh that's perfect! I have yanfly skillcore already so that shouldn't be a problem, just to clarify though does this go in the skill notebox, the state notebox, or the actor notebox?

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-make-a-state-that-only-affects-one-actor-at-a-time.156743/