MZ Editing actor window in front view battle menu? *SOLVED*

Hello!

I am attempting to edit the actor window in the battle menu (highlighted in red in photo 1). I've spent around 2 hours poking around in the 'Scene_Battle' in "rmmz_scenes.js" to try and find where the game defines the window's X/Y position and its Length and Width (similar to other menus like the one shown in photo 2). Unlike the other battle menu's, it doesn't appear to be listed under 'Scene_Battle'. I believe this is because its calling it from another section of the "rmmz_scenes.js" or possibly from another js file entirely. I'm not java literate, so 95% of these lines appear to be gibberish to me. I need to actually change the parameters and run the game to see what changes.

If a plugin is needed, that's fine by me. I am avoiding massive plugin base's like "VisuStella" for simplicity reasons. I looked into 'SomeRandomDude's' "HUD maker Ultra", but I think its going to introduce a lot more problems.

TL;DR: I need to find where the actor window's dimensions are defined in the games java files.

Thank you for your consideration.
You're looking for Window_BattleStatus, which is created and managed by Scene_Battle.

The window's position is updated in relation to the command windows outside of its initial creation method, so you'll need to look there as well.

You may also want to look at Window_BattleActor, which is effectively a clone of Window_BattleStatus used for actor selection (e.g. when choosing an actor to use a healing item on).

Specific methods to look at:
  • Scene_Battle.prototype.createStatusWindow
  • Scene_Battle.prototype.statusWindowRect
  • Scene_Battle.prototype.statusWindowX
  • Scene_Battle.prototype.updateStatusWindowPosition
  • similar create/rect methods for the actor window
You're looking for Window_BattleStatus, which is created and managed by Scene_Battle.

The window's position is updated in relation to the command windows outside of its initial creation method, so you'll need to look there as well.

You may also want to look at Window_BattleActor, which is effectively a clone of Window_BattleStatus used for actor selection (e.g. when choosing an actor to use a healing item on).

Specific methods to look at:
  • Scene_Battle.prototype.createStatusWindow
  • Scene_Battle.prototype.statusWindowRect
  • Scene_Battle.prototype.statusWindowX
  • Scene_Battle.prototype.updateStatusWindowPosition
  • similar create/rect methods for the actor windowin
Ahh, I see. I was looking in the wrong place. I was in rmmz_scenes and not rmmz_windows.

For future reference, all actor battle window information can be found around line 6151 in rmmz_windows. I'm gonna have to play around with the positions until they fit my liking, but the location is what matters.

Thank you!

1748023918540.png
So after a while of messing around with it i've got a problem I cant seem to find the solution to.

So the whole point of me asking this question is to find out how I can shrink the actor window so that I can customize it with graphics I made (highlighted in red). Unfortunately, no matter what I change, the base rectangle doesn't seem to change. Its most likely something I'm overlooking, or It could be something that's linked to all the other menu's in the game. If its the latter, that could be bad for my goal.

Does anyone know where I could possibly change the dimensions of this rectangle?

Thank you.

1748026553803.png
1748026686643.png
Does anyone know where I could possibly change the dimensions of this rectangle?
heres a thread from a few days ago that had the same thing come up. you can use the same statusWindowRect() function to change it however you want
heres a thread from a few days ago that had the same thing come up. you can use the same statusWindowRect() function to change it however you want

Ah thank you!

I copied your code into rmmz_windows.js and it seems to be what I'm looking for!

Would I be able to save that code as a plugin? I want to keep additions to the base code saved in the plugins menu so I can disable / re-enable them at will. Would it work or does it have to be placed within the rmmz_windows js file.

Thank you for the quick response!
Would I be able to save that code as a plugin?
ideally, yes. you want to keep the core JS files untouched for a number of reasons. any code you see on the forums like this would be best made as a plugin. you just need to open up a text processor and save the code as a .js file to introduce to your project as a plugin
ideally, yes. you want to keep the core JS files untouched for a number of reasons. any code you see on the forums like this would be best made as a plugin. you just need to open up a text processor and save the code as a .js file to introduce to your project as a plugin

I made a .js file with it and it works.

I agree. I try to avoid editing the core files if possible. I doubt im going to be altering them any further once I get past editing the menu's.

Thank you.
I suggest making all your menu changes plugins (or a single plugin) as well, even moreso since youre using MZ. MZ is still being developed and If a new version of the scripts come out, updating them would wipe out your changes as the core files would need to be overwritten.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/editing-actor-window-in-front-view-battle-menu-solved.177864/