MZ Removing actor menu slide in battle menu? *SOLVED*

Hola.

I'm trying to remove the slide-in effect the actor window has when initiating a battle. I tried digging through the battle scene's in 'rmmz_scene.js' but I couldn't find anything. I don't know java so I don't really know what keywords to look for, so it might be in there and I just don't know it.

I linked a photo of what im talking about, but it may need some explanation. When starting a battle, text will pop-up explaining what enemy you are encountering. After hitting 'ok' on the text, the battle menu will load. Before doing so however, the game slides the actor windows into place, from right to left (shown by the arrow). That slide is what I'm looking to disable.

Any help would be appreciated. Thank you!
This will require a plugin, so~

I've moved this thread to Plugin Requests (from MZ Support). Thank you.

This may work (untested):
JavaScript:
/*:
 * @target MZ
 * @plugindesc Force battle status window to stay still.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/177858/
 * @help Free to use and/or modify for any project, no credit required.
 */
// Override!
Scene_Battle.prototype.statusWindowX = function() {
  return this.statusWindowRect().x;
};

Edit: oops, that was for the "centred" position. I've now replaced this line in the above code:
JavaScript:
  return this._partyCommandWindow.width / 2;
...with this:
JavaScript:
  return this.statusWindowRect().x;
This will require a plugin, so~
Moved to: Plugin Requests (from MZ Support) This may work (untested):
JavaScript:
/*:
 * @target MZ
 * @plugindesc Force battle status window to stay still.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/177858/
 * @help Free to use and/or modify for any project, no credit required.
 */
// Override!
Scene_Battle.prototype.statusWindowX = function() {
  return this._partyCommandWindow.width / 2;
};

Just tried it, it works!

EDIT: When you have 4 party members in the menu, It clips the fourth member out. I have linked a photo. If you edit the number after "return this._partyCommandWindow.width /" it will change the position. I increased it from 2 to 15 and it moved it more to the left. Change the number according to where you need it.

Thank you for the quick response.

1748011415187.png

1748010964265.png
This thread is closed due to being marked solved. For next time, hitting the “report” button will help us out by placing it in our queue. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/removing-actor-menu-slide-in-battle-menu-solved.177858/