Any way to make YEP_Battle_AI/YEP_BattleCore and MOGHunter's Chrono Engine cooperate?

I've been having a lot of trouble with these three plugins cooperating. I know Yanfly's plugins and MOGHunter's plugins don't really get along, but this is something I'm in dire need of, as it's a key mechanic in the combat system for my game.

I can't do Javascript code to save my life, and I really don't know what to do at this point.

Basically, what I've been trying to achieve is this:


"If target MP > 0 use Skill A"

and

"If target MP = 0 use Skill B"


Skill A drains MP, while Skill B drains HP, making the MP act as a shield of sorts, and since there will be more than one party member in battle at once it complicates things even more.

-------------

In case it was an issue with the Battle Core AI plug-in's function/enemy priority list here's what I have for that:

<AI Priority>

MP param > 0: SKILL 71, Highest MP

MP param = 0: SKILL 72, Highest HP

</AI Priority>

-------------

Skill 71 being Skill A, and Skill 72 being Skill B.

If there's any other way that I can implement this, or make the plugins compatible I'd be extremely grateful.

Original thread: https://forums.rpgmakerweb.com/threads/any-way-to-make-yep_battle_ai-yep_battlecore-and-moghunters-chrono-engine-cooperate.124647/