Advanced AI Plugin (Grid-Like System)

Hey everyone! I'd like to request help in either doing or finding a plugin that would allow me to do something such as manually selecting targets and skills ID when making up the enemy's AI.

Right now, the best I've got is Yanfly's Battle AI Core, but it sadly isn't what I'm looking for.
I've created, on my own, and with the help of a few plugins, a grid-like battle system.

Here's a little demo in a video:

https://puu.sh/Ctcuf/7f424dbea5.mp4

Essentially, each grid is an enemy. Using Yanfly's Selection & Target plugins, I made it so that you can only target them within specific range, and with a bit of messing around, it hits enemies that are standing over them.

My issue right now, they're not having any intelligent AI for where to target. (At the end of the video, the enemy targets an actor, which isn't what they're supposed to do)

Basically, what I'd like is to be able to go in an enemy's notetag and do something like this:

Code:
<AI Option>
var length = foes.aliveMembers().length;
while (targets.length == 0)
{
member = foes.aliveMembers()[Math.random(length)];
if (Math.random() < 0.5) targets.push(member);

}

if (target[0].hp > target[0].mhp / 2){
skill = 10;
} else {
skill = 16;
}
</AI Option>

Essentially, skill would return the skill ID to be used, and targets would return which targets would be hit.

This is just an example of something I'd like to do.

Thanks to all who takes time to read! 🤘🙂
Just doing a quick bump! Hope that's okay.
I'll just give it another bump.

Original thread: https://forums.rpgmakerweb.com/threads/advanced-ai-plugin-grid-like-system.104180/