How to force an actor to stay in position 1 and 3 in battle, without it updating if 2 is removed?

Cannot find a solution for this one sadly, even Yanfly's battle plugins like row etc don't fix this. I'm using Yanflys battle core and other stuff as well.

Basically every battle in the game I'm using will remove the players party and replace with 2 others instead. (Basically giant feet for left and right).

The problem is that I want the spacing to be further apart for them or it just looks weird. So in battle testing I have to put an invisible [blank] actor in position 2, so it's between then and who is KO'd instantly when it starts. If I remove this blank actor, the game updates each time and forces the actor in position 3, up one into position 2.

I hope I am making sense. Screenshot example attached of what I'm trying to get it to do.

I need a way to stop it updating, or to allow them to just start in position x without moving them up. Appreciate any help thank you very much!
Any reason why you can't just edit the home position of left foot in battle engine core?
1668069081636.png
Any reason why you can't just edit the home position of left foot in battle engine core?
View attachment 244868
It changes every actor in the party's position. Not individual. So changing Y for example will make them go down, but it affects everyone and bases it off the 1st player's new position. Changing anchor doesn't work either for this scenario.

I also have normal battles etc with custom animations etc so it wouldn't be good to move everyone.
Well, was worth a shot I guess.
It changes every actor in the party's position.
First of all, this isn't true.
I believe if you read the help file for Battle Core it says how to move actors via the anchor. This is a simple work around, but will have flaws as it is only technically moving the graphics location, but the "hit box" of said graphics will stay in the same place.

So, the best method is exactly what SG Harlekin suggested. I had a somewhat similar problem and was given this answer:

You can define what is the home position of each actor with the Home position X and Home position Y formulas (Battle Engine Core plugins parameters).

screenWidth/screenHeight: the width/height of your screen in game (default 816/624), self-explanatory
statusHeight: the height of the status window (the one with the hp and mp bars)
maxSize: the maximum number of actors in your party
index: the formation order of the actor (0-indexed!), so 0 for the leader, 1 for the actor in second place...

So, in order to have your statue placed where you want it to be, you just need to edit these formulas to your needs. If you want a quick adaptation without too much thinking, you can do something like this:


JavaScript:
index === 1 ? YOUR_CUSTOM_VALUE : DEFAULT_FORMULA
(Thanks to @Fortunastreet )

For example, here is what I used:
X
JavaScript:
index === 1 ? screenWidth - 16 - (maxSize + 2) * 32 + index * 32 - 144 : screenWidth - 16 - (maxSize + 2) * 32 + index * 32 - 72

Y
JavaScript:
index === 1 ? screenHeight - statusHeight - maxSize * 48 + (index+1) * 48 - 64 : screenHeight - statusHeight - maxSize * 48 + (index+1) * 48 - -48
First of all, this isn't true.
I believe if you read the help file for Battle Core it says how to move actors via the anchor. This is a simple work around, but will have flaws as it is only technically moving the graphics location, but the "hit box" of said graphics will stay in the same place.

So, the best method is exactly what SG Harlekin suggested. I had a somewhat similar problem and was given this answer:


(Thanks to @Fortunastreet )

For example, here is what I used:
X
JavaScript:
index === 1 ? screenWidth - 16 - (maxSize + 2) * 32 + index * 32 - 144 : screenWidth - 16 - (maxSize + 2) * 32 + index * 32 - 72

Y
JavaScript:
index === 1 ? screenHeight - statusHeight - maxSize * 48 + (index+1) * 48 - 64 : screenHeight - statusHeight - maxSize * 48 + (index+1) * 48 - -48
I was modifying it in game and trying it out before I replied that to SGHarlekin. Because there's only one option in the plugin it affects the first actor then everyone else the same way. I've messed around with the graphic location too, but then it affects all of the skills made using Yanflys action sequence plugins. So say if the foot goes to stomp, for some weird reason when it lands the graphic adds on whatever the change to its position is too. I've got over 50 plugins from various working together so it may be one of those conflicting but it took a long time to sort them all out.

I'm not sure where to put the code you've specified. I'm worried it will affect normal battles that use normal sized sprites etc.

It's why I'm trying hard to figure out if there's a way without moving positions of everything from where they are now.
First of all, this isn't true.
Well...it is true. That's exactly what that plugin parameter is for, changing the position for every actor in the party.

You still gave the right answer, but I'm not sure what you meant there 😛

Because there's only one option in the plugin it affects the first actor then everyone else the same way.
Kind of? It affects them however the formula you enter tells them to. The default has one formula that applies to every actor by referencing their index, but it's perfectly possible to do what TheAM-Dol showed you and use more complex JavaScript that will specify positions by more specific criteria.

I've messed around with the graphic location too, but then it affects all of the skills made using Yanflys action sequence plugins.
Yeah, changing the anchor is not what you want to be doing here.

I'm not sure where to put the code you've specified.
Exactly where Harlekin screenshot it for you, in the Home Position parameters.

I'm worried it will affect normal battles that use normal sized sprites etc.
Here's where you lost me - your OP said every battle in the game replaces the actor's sprites with those feet. So does every battle use them or are there "normal" battles that use "normal sized sprites" also?

If there are both kinds of battles, you have two options. Either you make formulae for the home positions in the plugin parameter that account for whether you're using feet and use one formula and a different formula for small actors; or you just put code into the turn 0 event that replaces the feet graphics that also changes their home position.

If you let us know exactly what you're trying to do, someone can help you with the code.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-force-an-actor-to-stay-in-position-1-and-3-in-battle-without-it-updating-if-2-is-removed.152594/