Need help positioning actors using Yanfly's Row Formation

[SOLVED]

Hey there. I have been trying to figure out some things on my own, but I can't seem to be able to do so... so maybe some of you guys with better an understanding of things can help me.

I'm using mostly Yanfly's plugins, but my issue is with Row Formation.

I'd like to change the position of the player's party, but checking out the plugin's parameters I came across with this:

[CLICK]

And truth to be told, I don't understand those formulas. But this is a photoshopped picture of what I'd like ideally:

[CLICK]

So I'm requesting help to figure out how (if possible) achieve the following:

(1) Position the characters like in the picture from above.
(2) Configure a method so characters in the back row can't attack using melee weapons, and can't be attacked either by melee enemies. But using ranged weapons or magic is allowed.

Reading through the plugin's Help area does hint that (2) is possible, but it doesn't provide a quick example for me to follow. So any help given is appreciated.

Thanks.

PD: I'm aware that the plugin allows me to give passive states to each row, and that I can "seal" the attack command and skills if they are in the back row. But sealing them like that affects all attack commands, including the ones with ranged weapons.
You'll want Target Core if you want only certain actors, classes or weapons able to attack/not attack specific rows. http://yanfly.moe/2016/02/26/yep-74-target-core/

What does your formation look like right now?
Ah, so I am missing a plugin. Thanks, I'll give it a go.

What does your formation look like right now?

I'm sorry, my post lacked proper details.

If there are exactly 3 characters in the front row, and 3 characters in the back row it does look pretty close to what I want, however... if all the characters are melee fighters and are placed in the front row:

[CLICK] - It looks like this. Which isn't that bad to be honest, but I'd like to tweak it a bit. Maybe lower them a bit, and give some space between them.

Now, what happens if there's only one character in the back row?

[CLICK] - As you can see, the poor girl clips with the white haired guy and as you can expect... it's a big NO-NO.

The clipping happens because they're too close to each other, and when it's the girl's turn... she steps forward, and goes "under" the other character.

So what I want is to avoid such scenarios by learning how to tweak the positions and achieve something more pleasant to see.

Thanks for your reply.
Ok, I see. First, if you want it's possible to make the actors take smaller steps forward by decreasing the step distance in YEP_BattleEngineCore (in the Sprites section). That's probably the quickest way to resolve your sprite overlap problem, if you're ok with doing that.

As far as the back row positioning, I'm afraid the best advice I can give to fine-tune it is to just mess around with the X-related variables until you get it where you want. Change one thing at a time and overexaggerate it to see what it does (for example, change screenWidth - partySize * 32 - 16 to screenWidth - partySize * 128 and see the effect.

Note that when you make a change in the BattleEngineCore or RowFormation plugins, you'll need to click Ok, then playtest the game (play button or Ctrl + R), then close the game, then AFTER THAT you'll be able to see the changes take effect (by pulling up a test troop or whatever).
Okay, I'll deal first with the formation issues using your suggestions then I'll see about setting up the melee/ranged attack thing.

Thanks.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-positioning-actors-using-yanflys-row-formation.108241/