Help with the code to acomplish actor movement in battle?

Hi all! Since I dont think there is a need to develop a plug in for this, im placing this thread here.

Ok, what I need is basically move one of my actors infront of another so it gives the illusion that it is protecting them.

So, I thik there is 2 ways to acomplish this 1) get the attacking enemy´s coordniates before they land an attack and move the actor to those coordinates or 2) (which i think is easier) move the actor infront of the attacked actor.

I hope is not that complicated.

Thanks!!
Have you looked at Yanfly's row formation plugin?
I have it on OFF cause Im not using Rows on my project, but if it can help me ill use it. Can you help me explaining your idea using that plug in to achieve the goal?

Original thread: https://forums.rpgmakerweb.com/threads/help-with-the-code-to-acomplish-actor-movement-in-battle.87880/