Targeting two adjacent enemies

I'm trying to create a skill that targets two enemies adjacent or right next to each other. I'm finding the Scope in the VX Ace maker rather limiting in this regard. The closest I've been to achieving this effect is Yanfly's Area of Effect script (https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/target-manager/area-of-effect/), but I'm not finding it as ideal or precise as I would like.

I'm not much of a scripter myself, so I don't know if it would even be possible, but all I'm looking for is perhaps a script that allows me to notetag a skill perhaps that targets a single enemy and then also dynamically targets a single enemy directly next to it, if there are multiple enemies. For what it's worth, I am using Yanfly's Ace Battle Engine.

Here are a couple of mock-up images, if it helps:

Spoiler
Here, the first two enemies will be targeted, while the two crossed out will not be.

M1Tq8Oc.png
Spoiler
Here, the middle two enemies will be targeted, while the ones crossed out will not be.

Unh5k6I.png
If you need anymore info, please ask.
Yanfly script should work if you want to target enemy right next to each other. Just adjust the hit box and hit area of the AoE skill to fit what you want.

Due to the way the troops are being placed on screen. ID doesn't work here since ID right next to each other doesn't mean enemy is right next to each other, ID is based on the order you create the enemy in the troop party. So what's left is the enemy's graphic x y on screen (i believe that's what yanfly is doing). So if anyone going to make a script to do area targeting, it will probably end up with what Yanfly is already providing. Well, probably able to limit the target to first 2 enemies in the selected mas area, but depending on the size, player might end up with a feel that something is "off" alignment.

edit:

oh, you might want to avoid using some of the image Yanfly provided and use something of your own, some of those images are actually from Card Captor Sakura, i am not sure if you will run into any problem if you use those in commercial games.

Original thread: https://forums.rpgmakerweb.com/threads/targeting-two-adjacent-enemies.54620/