VXAce Primary and Secondary Combat Actions?

I'm looking for a script which allows actors to have separate primary and secondary actions per turn in battle. For example, attack is bound as a primary action and guard as a secondary action. This would allow the actor to use both attack and guard in the same turn, but not two attacks and not two guards. So, once a primary action is used, all actions/skills that belong to primary types would be sealed and vice versa with secondary actions.
Yanfly has a script for instant skills on VxAce as far as I'm aware. You could seal secondary actions by default, so player will always have to go with a primary first. All your primary skill should then seal primary skills, unseal secondary skill and be instant. Your secondary skills should unseal primary skills, seal secondary skills and NOT be instant, that way the player will be able to do both every turn.

This comes with the caveat that you'll have to make sure the player always has access to at least one primary and one secondary action even if he has no resources left. You also might need to look into a script like yanfly's lunatic states or buff's and states manager to be able to apply states to the user of a skill rather than the target (this would then handle the appropriate sealing of the skill types)
Yanfly has a script for instant skills on VxAce as far as I'm aware. You could seal secondary actions by default, so player will always have to go with a primary first. All your primary skill should then seal primary skills, unseal secondary skill and be instant. Your secondary skills should unseal primary skills, seal secondary skills and NOT be instant, that way the player will be able to do both every turn.

This comes with the caveat that you'll have to make sure the player always has access to at least one primary and one secondary action even if he has no resources left. You also might need to look into a script like yanfly's lunatic states or buff's and states manager to be able to apply states to the user of a skill rather than the target (this would then handle the appropriate sealing of the skill types)
That's pretty creative, I hadn't thought of that. If I wanted to increase the number of actions for either Primary or Secondary actions I could also have variables track the stock of actions the player gets and then have have common events tied to each skill use increase a separate variable and then evaluate if that variable is equal to the the stock variable, given that the player baseline has the extra actions via an actions+ feature. Then the seal swapping would occur until it reaches the end of the turn. I would also have the attack and guard commands be sealed at the same time as their respective primary and secondary action types. Thanks a lot, I might find some bugs later down the line to solve with some more creativity, but this is a huge push in the right direction (that doesn't require hours of RGSS3).

Original thread: https://forums.rpgmakerweb.com/threads/primary-and-secondary-combat-actions.181456/