MZ How do I change the location and size of the battle skill/item help window?

What the title says, I'm a javascript noob, but I've been editing my battle HUD by changing the rmmz_windows.js file, and so far its going well, but I can't figure out how to edit the battle item/skill help window without changing the help window of the entire game (which I don't want). Any help?
I'm a javascript noob, but I've been editing my battle HUD by changing the rmmz_windows.js
you shouldnt be editing those files directly. what you want to do is find what you need in the core files and then make your changes as plugins.
As MZ still gets updates, if you update your project itll wipe out all the changes youve made.
if you need to troubleshoot stuff its easier to do so from a plugin as itll contain only the things youve edited.
Many plugins are made with the core files in their default state as a baseline. changing them can cause plugins added later to break depending on what youve done.

I can't figure out how to edit the battle item/skill help window without changing the help window of the entire game (which I don't want). Any help?
depends on your changes. without knowing what they are, best i can suggest is that instead of changing Window_Help directly, create a new window that inherits from it, make your changes to that one, and then use your new window in place of the default help window within those scenes
you shouldnt be editing those files directly. what you want to do is find what you need in the core files and then make your changes as plugins.
As MZ still gets updates, if you update your project itll wipe out all the changes youve made.
if you need to troubleshoot stuff its easier to do so from a plugin as itll contain only the things youve edited.
Many plugins are made with the core files in their default state as a baseline. changing them can cause plugins added later to break depending on what youve done.


depends on your changes. without knowing what they are, best i can suggest is that instead of changing Window_Help directly, create a new window that inherits from it, make your changes to that one, and then use your new window in place of the default help window within those scenes
I wasn't aware of MZ wiping my changes with the project update, thanks.
you shouldnt be editing those files directly. what you want to do is find what you need in the core files and then make your changes as plugins.
As MZ still gets updates, if you update your project itll wipe out all the changes youve made.
if you need to troubleshoot stuff its easier to do so from a plugin as itll contain only the things youve edited.
Many plugins are made with the core files in their default state as a baseline. changing them can cause plugins added later to break depending on what youve done.


depends on your changes. without knowing what they are, best i can suggest is that instead of changing Window_Help directly, create a new window that inherits from it, make your changes to that one, and then use your new window in place of the default help window within those scenes
Could you suggest what I should type assuming that I haven't changed anything? I'm not sure how to do what you said.
Could you suggest what I should type assuming that I haven't changed anything? I'm not sure how to do what you said.
every window within the window js file starts off the same way - by inheriting from some other window. So if more examples are needed, theyre all there
Code:
function Window_CustomHelp() {
    this.initialize(...arguments);
}

Window_CustomHelp.prototype = Object.create(Window_Help.prototype);
Window_CustomHelp.prototype.constructor = Window_CustomHelp;

that defines a new window thats just a copy of WIndow_Help, but called Window_CustomHelp.
now any change you made prior to Window_Help can be moved to this one instead. then from there, youd look in the scenes js file, look at the functions that creates the help windows for skill and item scene, and change them from making a new Window_Help to a new Window_CustomHelp (within the plugin, not the scenes file).
now those two scenes use your altered help window and all the others ones like the equip scene are untouched
every window within the window js file starts off the same way - by inheriting from some other window. So if more examples are needed, theyre all there
Code:
function Window_CustomHelp() {
    this.initialize(...arguments);
}

Window_CustomHelp.prototype = Object.create(Window_Help.prototype);
Window_CustomHelp.prototype.constructor = Window_CustomHelp;

that defines a new window thats just a copy of WIndow_Help, but called Window_CustomHelp.
now any change you made prior to Window_Help can be moved to this one instead. then from there, youd look in the scenes js file, look at the functions that creates the help windows for skill and item scene, and change them from making a new Window_Help to a new Window_CustomHelp (within the plugin, not the scenes file).
now those two scenes use your altered help window and all the others ones like the equip scene are untouched
I understand, thank you for you help!
Save the following within your custom plugin for the size aspect. You can do this by making it a notepad file and changing the extension to .js if you do not have a capable editor. Modifying it as needed adding or subtracting the value of the lines. The "-225" in the ww line, for example, tells rpg maker to shorten the right side of the help window by 225 pixels. If you place "your" custom plugin under/lower than a visustella plugin, it will usually override or modify it... which is handy.



// Override - change height of battle scene's help area.
Scene_Battle.prototype.helpAreaHeight = function() {
return this.calcWindowHeight(2, false);
};


// Override - change width of battle scene's help area.
Scene_Battle.prototype.helpWindowRect = function() {
const wx = 0;
const wy = this.helpAreaTop();
const ww = Graphics.boxWidth -225;
const wh = this.helpAreaHeight();
return new Rectangle(wx, wy, ww, wh);
};
Save the following within your custom plugin for the size aspect. You can do this by making it a notepad file and changing the extension to .js if you do not have a capable editor. Modifying it as needed adding or subtracting the value of the lines. The "-225" in the ww line, for example, tells rpg maker to shorten the right side of the help window by 225 pixels. If you place "your" custom plugin under/lower than a visustella plugin, it will usually override or modify it... which is handy.



// Override - change height of battle scene's help area.
Scene_Battle.prototype.helpAreaHeight = function() {
return this.calcWindowHeight(2, false);
};


// Override - change width of battle scene's help area.
Scene_Battle.prototype.helpWindowRect = function() {
const wx = 0;
const wy = this.helpAreaTop();
const ww = Graphics.boxWidth -225;
const wh = this.helpAreaHeight();
return new Rectangle(wx, wy, ww, wh);
};
This did it nice and easy! Thank you!!

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-change-the-location-and-size-of-the-battle-skill-item-help-window.174582/