MZ change actors' position in battle?

Hi, does anyone know of any plugins for mz or a way editing the .js files to edit the location of each actor in battle?

I'm trying to build a battle system around 12 active actors in battle, but they're all standing in one giant row, and I tried yanfly row formation but there is one tiny problem, the command doesnt show in the menu, and I dont understand if it is possible to tie one party position to a specific row like for example party members 1-4 are in the front row, party members 5-8 are in the mid row and members 9-12 are in the rear row using passive states/auto states.

thank you in advance for any help.
One options is in your DLC folder.. SVActorPositionMZ.js
Default is 4 actors only.

Please provide more details as to the plugins you are using(screenshot would be helpful). There are some known issues which can be solved when seeing your setup as a whole.
Thank you so much for your reply NaosoX,

I just checked the plugin out and it's amazing! But as you mentioned its for 4 actors only, would it be hard to edit the plugin to allow for more options than 4 actors?

following is the list of plugin I'm using:
1639581960165.png

1639581977542.png


I know the order probably isn't the best but everything works fine for now! the only problem I have is with the row formation command not wanting to pop up in the menu, it's really strange because it worked before with and without the visustella menu manager, I'm too dumb to remember if I used any other plugins at the time though, I'm sorry if this isnt enough please do ask for more info if needed.

I'll probably continue searching for other options in the meantime.
So if the plugin parameters for Row Formation work via FOSSIL, that plugin is going to be where your battler positions are defined. You should see something like a Home X parameter with a formula in it.
So if the plugin parameters for Row Formation work via FOSSIL, that plugin is going to be where your battler positions are defined. You should see something like a Home X parameter with a formula in it.

Thank you for the reply.
Yes the plugin parameters do work for the row formation plugin while using fossil, what's odd is that the command doesnt show up in the menu, that wouldnt be an issue if I could just assign each party position a row via eventing, notetags, auto passive states or whatever as having a train of actors doesnt look good as animations and aoe wont work as intended, and I cannot assign each actor a specific position because there's going to be 100+ actors in my game, having random positions for each would make things look weird I think so it has to be done with the party positions, and I dont know if the row formation plugin or any add-on for it does that (I have already looked into it and cant really find a way sadly)
I just checked the plugin out and it's amazing! But as you mentioned its for 4 actors only, would it be hard to edit the plugin to allow for more options than 4 actors?
Set max battle members in party system plugin.
You can set more actor positions by plugin command, but you will have to Comment out or delete the weapon animation section(in SVActorPositionMZ). when using battle core.
Spoiler: Actor Position by Plugin Command
ActorPos.png
Spoiler: Code section to remove
Code:
  // --------------------
  // set weapon animation's position
  // --------------------
  const _Sprite_Weapon_setup = Sprite_Weapon.prototype.setup;
  Sprite_Weapon.prototype.setup = function(weaponImageId) {
    _Sprite_Weapon_setup.call(this, weaponImageId);
    this.setPosition();
  };

  Sprite_Weapon.prototype.setPosition = function() {
    // set X position by actor sprite size
    const actorBitmap = this.parent._mainSprite.bitmap;
    const actorSpriteWidth = actorBitmap ? actorBitmap.width / 9 : 64;
    this.x = -16 - (actorSpriteWidth - 64) / 2;
    // set Y default position
    this.y = 0;
    // change X,Y position by actor's note
    const battler = this.parent._battler;
    if(battler){
      this.x += (Number(battler.actor().meta.SVWeaponRight) || 0);
      this.y -= (Number(battler.actor().meta.SVWeaponHeight) || 0);
    }
  };
Set max battle members in party system plugin.
You can set more actor positions by plugin command, but you will have to Comment out or delete the weapon animation section(in SVActorPositionMZ). when using battle core.
Spoiler: Actor Position by Plugin Command
Spoiler: Code section to remove
Code:
  // --------------------
  // set weapon animation's position
  // --------------------
  const _Sprite_Weapon_setup = Sprite_Weapon.prototype.setup;
  Sprite_Weapon.prototype.setup = function(weaponImageId) {
    _Sprite_Weapon_setup.call(this, weaponImageId);
    this.setPosition();
  };

  Sprite_Weapon.prototype.setPosition = function() {
    // set X position by actor sprite size
    const actorBitmap = this.parent._mainSprite.bitmap;
    const actorSpriteWidth = actorBitmap ? actorBitmap.width / 9 : 64;
    this.x = -16 - (actorSpriteWidth - 64) / 2;
    // set Y default position
    this.y = 0;
    // change X,Y position by actor's note
    const battler = this.parent._battler;
    if(battler){
      this.x += (Number(battler.actor().meta.SVWeaponRight) || 0);
      this.y -= (Number(battler.actor().meta.SVWeaponHeight) || 0);
    }
  };

Oh my god thank you thank you thank you so much ;v; I'll go ahead and test this out right away!

edit: everything works as intended for now, thank you again for the help NaosoX.
And when I thought everything worked fine.... something came up, and its a pretty big problem:
The summoncore doesnt really work anymore, well it does partially, it summons the actor just fine but then the actor does nothing at all, it doesnt attack and apparently isnt affected by aggro either, wont be targeted by enemies no matter what.

I havent added any new plugins, so it must be conflicting with the svactorpositionmz plugin.
I've seen only one other plugin that makes summoning actors in battle easy but it specifically says it wont go past the party limit for some reason.

That being said some random dude's summon core still works, but it's as if the summoned actors didnt really count in battle for some reason.

edit 1: Found out yanfly row formation actually has a plugin command to set specific party slots on a specific row, I'll give it a try.

edit 2: enemies are invisible now, or they're too far off the screen... will look into it more tomorrow.
Try moving the plugin down(above options core).
Try moving the plugin down(above options core).
Thank you for your reply, that actually fixed the enemy being invisible, thank you!

As for the summoned actor... still no luck.

I tried using the yanfly battle engine core, which works, I put it at the same level as the visustella battle core (which I disabled), but there are two issues with it, the actor still wont act in battle, and in the four battle tests I played, it wasnt targeted not even once by the enemy.
The second problem would be no time progress battle...The battles are extremely slow without it sadly.

I MADE IT WORK SOMEHOW!

I just placed the yanfly party system plugin above the visustella battle core and below the visustella core engine, now the actor is indeed counted in battle and works as intended and there doesnt seem to be any other issues at the moment.

I'll try adding more summonable actors and see how they interact with eachother in battle.

edit: I gave up on row formation because its just a huge waste of time trying to align every row as I want and working with the dlc plugin provided with RMMZ everything is much easier.
So.. all is good now?
Seems like it, no problems whatsoever.

thread can be closed, I dont know how that works 🙏
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/change-actors-position-in-battle.143016/