MV Determine Enemy Actions at End of Enemy Turn (MV)

Hey folks,
I've been searching far and wide for a solution to a very specific problem I'm having, and was wondering if anyone here could help me out.

To give the long and short of it, I'm making use of Yanfly's STB plugin, alongside a plugin called CC_Telepathy which displays enemy actions above their sprites in battle. The game I'm designing is very strategy heavy and the intention is to allow you to prepare for the incoming turn by knowing exactly what the enemy battler plans to do next.

Here's the issue, though: with STB active, a battler's condition can change before their turn is made. Let's say my player attacks, and the enemy previously wanted to use an attack of some kind, but they're set to use a particular skill when at less than 100% hp. The enemy will now switch to the new option at the start of their turn, meaning the attack previously displayed above their head is effectively useless.

That leads me to my question: despite having a solid understanding of JavaScript, it's quite difficult to piece together Yanfly's code without spending hours combing through it, and I haven't managed to find any kind of fix. In an ideal world, I would like enemies to choose a new action at the end of their next turn, rather than at the start of it, such that the icon displaying which attack they plan to use above their head is always accurate. Is there any way I could go about doing this?

Thanks,
Median.
Hmmm, if you use Yanfly Battle AI to affect what skill the enemy uses, can you put conditions that the enemy has that certain icon on top of head to use the skill (and find out how to reference the skill based on icon). Just a suggestion, didn't really think this through LOL
Hmmm, if you use Yanfly Battle AI to affect what skill the enemy uses, can you put conditions that the enemy has that certain icon on top of head to use the skill (and find out how to reference the skill based on icon). Just a suggestion, didn't really think this through LOL
Hmmm, this could work in theory, albeit it would be quite the nightmare to set this up for every possible enemy action. That, and the icon above the head would conflict with the existing graphics drawn by the telepathy plugin. I'm more looking for a solution that allows me to force an enemy to stick with their chosen action once it's decided upon initially, meaning at the end of their turn and before the battle begins are the only time they can change which attack they intend next.

Ultimately, it's not too big of an issue, but one thing I did notice is that this bug only seems to exist when the enemy goes *before* the player does in the turn list. It seems like enemy intent is decided at the start of the turn cycle, or maybe the issue has to do with the Telepathy plugin working differently than I thought.

Here's the plugin, for anyone wondering. It's not easy to find online.
Bump-?

Original thread: https://forums.rpgmakerweb.com/threads/determine-enemy-actions-at-end-of-enemy-turn-mv.175349/