[MV] Action sequencing when an enemy takes 2 actions per turn.

I have an enemy who performs two actions per turn. I want him to do two moves in the proper order. A charge, discharge order. Similar to a hyper beam in pokemon. But the conditions for actions are checked at the start of the TURN not the start of the action. Meaning every order needs to be either random, or the same action repeated.

Even if I have the first ability call an event that turns on a switch, and attach that switch to the second abilities condition, the first ability will be queued twice. And resolve twice.

Even if I put a mana restriction on the second ability. And have the first ability generate the necessary mana. The game doesn't care, it will resolve the abilities that were queued at the beginning of the turn.

I'm struggling to figure out a work around. Forcing enemy actions by causing a common event seems to cause more problems than it solves. And I can't find any plugins or code for this issue.
Maybe Yanfly's Battle A.I. Core can help you: http://yanfly.moe/2015/10/19/yep-16-battle-a-i-core/

Specifically the Dynamic Actions parameter, which states:

Dynamic Actions
By default, the enemy’s actions are determined at the start of the turn. While this works in its own right, enabling Dynamic Actions allow enemies to make a decision when the enemy’s turn comes up instead. This prompts enemies to be more flexible and to appear more intelligent in battle, thus, giving your players a bit more of a challenge.

Maybe by using this and a combination of other things, you can find a workaround?

I had similar issues a while back, I had an enemy character that would use a charge skill which added a state which gave them a new ability. They weren't guaranteed to use it at any time, but the player had to be aware that at some point, they may unleash their charged ability.

Unfortunately, I don't remember exactly how I did it, and I'm at work, so I can't mess around and figure something out. I'll try and write back later.
Yea this doesn't seem to solve the problem. It still will repeat the same move twice instead of rechecking conditions and casting the next move.
@TurtleSunshine Can you post a screenshot of your skills and enemy windows? I will be of more help when I get home tonight, but maybe I can help now.

Original thread: https://forums.rpgmakerweb.com/threads/mv-action-sequencing-when-an-enemy-takes-2-actions-per-turn.96129/