How to change the size of a window?

I'm using MZ and I'm looking at a specific window in windows.js, but I have no idea where or what the parameters are for the window sizes so I can change them, does anybody know what they might be?
It is strongly recommended that you do not change any system plugins. I would look for 3rd party plugin to make the changes you are looking for. If you are only looking to change the actual game window size, you can do the with the 'Community Basic' plugin provide with the engine.
It is strongly recommended that you do not change any system plugins. I would look for 3rd party plugin to make the changes you are looking for. If you are only looking to change the actual game window size, you can do the with the 'Community Basic' plugin provide with the engine.
I want to, and I've made a backup. I also want to change windows within the game, not the game window size.
Seems like you want a CMS (Custom Menu System). Which will change the appearance of the menus/windows in your game. There are a bunch of those out in the ether to choose from. Might check out VisuStella plugins.
In MZ game windows are typically initialised by passing a bounding rect to their constructor. This is done by the scene, e.g.
JavaScript:
Scene_Message.prototype.createMessageWindow = function() {
    const rect = this.messageWindowRect();
    this._messageWindow = new Window_Message(rect);
    this.addWindow(this._messageWindow);
};
As seen in this example, the scene usually has a method that returns the appropriate rectangle. You can write a plugin to change the window's x, y, width, and/or height by patching that method, e.g. (untested):
Spoiler: plugin code
JavaScript:
/*:
 * @target MZ
 * @plugindesc Change the size of the message window.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/169427/
 * @help Free to use and/or modify for any project, no credit required.
 */
;void (() => {
  const alias = Scene_Message.prototype.messageWindowRect;
  Scene_Message.prototype.messageWindowRect = function() {
    const rect = alias.apply(this, arguments);  // as usual
    rect.width -= 200;  // reduce width by 200 px
    return rect;  // return adjusted rect
  };
})();
Some windows resize and/or reposition after initialisation, e.g. for Show Choices. In that case you'd want to patch the window's updatePlacement method instead.

(Windows added by plugins may function differently.)
It is strongly recommended that you do not change any system plugins. I would look for 3rd party plugin to make the changes you are looking for.
It's true that you shouldn't edit the actual file in the js folder, but there's nothing wrong with copying a function into a separate file and editing it - that's all a plugin is. It seems overkill to try to use another entire plugin just to change the dimensions of one window.

@RPGMakerUser4001 If you can't figure out what to change based on caethyril's information, you need to tell us which actual window you're trying to edit.
It's true that you shouldn't edit the actual file in the js folder, but there's nothing wrong with copying a function into a separate file and editing it - that's all a plugin is. It seems overkill to try to use another entire plugin just to change the dimensions of one window.
Totally, legit. You're right.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-change-the-size-of-a-window.169427/