RPG MAKER MZ Custom Scenes

First I tried with a plugin to modify the location of the commands, the status (hp, mp, level) and the windows but to no avail...

Then I tried to modify rmmz_scenes, mian, rmmz_windows, etc and nothing... I made a change and I didn't see a difference (in-game).

I also tried this one but I didn't understand anything... HAHAHA... (It's a Japanese plugin called SceneCustomMenu) https://github.com/triacontane/RPGMakerMV/blob/mz_master/SceneCustomMenu.js

I created a plugin to be able to create windows depending on the scene... But the only thing that interests me is moving the command window and the status window (HP, MP, LVL) (it seems impossible to me)

In conclusion, I don't know if anyone knows a way that allows me to modify the location of the windows and commands, etc. RPG MZ



ORIGINAL

Desktop Screenshot 2024.01.31 - 15.33.17.72.png


An example of how I would like:
sadasdas.png


EXTRA

The-Legend-of-Zelda-Tears-of-the-Kingdom06242023-043652-4273.jpg
It would be more helpful if you showed the plugin that should've moved it that didn't work.

By default, that's contained in rmmz_windows (as it is the properties of the window you're looking at), in the drawItemStatus() method. It's drawing the status block 180 pixels to the right of the actor's area, halfway up minus one and a half lines.

Code:
Window_MenuStatus.prototype.drawItemStatus = function(index) {
    const actor = this.actor(index);
    const rect = this.itemRect(index);
    const x = rect.x + 180;
    const y = rect.y + Math.floor(rect.height / 2 - this.lineHeight() * 1.5);
    this.drawActorSimpleStatus(actor, x, y);
};

Very notably, you're not using the default code. You're clearly already using a plugin that changes the menu, probably VisuStella's.

So you have to look in their parameters and see what you can edit, or ditch that plugin in favor of one customized to look the way you want.
Firstly, it's highly inadvisable to edit the rpg maker source code directly( i.e. the rmmz_scene, rmmz_window files, etc ), always make a plugin, if you need to modify code, it's generally bad to modify the source code directly.

After that, It looks like your using a custom menu script based on the "original" screenshot, which means you would need to probably make editos to that particular menu plugin, or at the very least create a NEW plugin which modifies these particular sections of code.

JavaScript:
Scene_Menu.prototype.commandWindowRect = function() {
    const ww = this.mainCommandWidth();
    const wh = this.mainAreaHeight() - this.goldWindowRect().height;
    const wx = this.isRightInputMode() ? Graphics.boxWidth - ww : 0;
    const wy = this.mainAreaTop();
    return new Rectangle(wx, wy, ww, wh);
};

this function returns a rectangle that changes the command window size/position, if you wanna move it, you need this section of code

next, the gold window, is similar.

JavaScript:
Scene_Menu.prototype.goldWindowRect = function() {
    const ww = this.mainCommandWidth();
    const wh = this.calcWindowHeight(1, true);
    const wx = this.isRightInputMode() ? Graphics.boxWidth - ww : 0;
    const wy = this.mainAreaBottom() - wh;
    return new Rectangle(wx, wy, ww, wh);
};

and finally the status windows position/dimensions can be set from the below function.


JavaScript:
Scene_Menu.prototype.commandPersonal = function() {
    this._statusWindow.setFormationMode(false);
    this._statusWindow.selectLast();
    this._statusWindow.activate();
    this._statusWindow.setHandler("ok", this.onPersonalOk.bind(this));
    this._statusWindow.setHandler("cancel", this.onPersonalCancel.bind(this));
};

as for where the HP, MP, etc, is drawn in the status window... this is multipart, simply follow the functions within this particular function.
JavaScript:
Window_MenuStatus.prototype.drawItem = function(index) {
    this.drawPendingItemBackground(index);
    this.drawItemImage(index);
    this.drawItemStatus(index);
};

each one of these three functions, splits into smaller functions, but this is where you should look for changing how/where, HP/MP/Name/Class info etc.
If you just want to move or resize things in an existing scene, there's GraphicalDesignMode but, well, it's also in Japanese. If you're using Chrome you could right click the page and tell it to translate it.
Ok, thank you very much, solved, I will comment on what the problem is in case it happens to someone... I already saw why there was no difference when I touched something in rmmz_scenes and it is because VisuStellaCore there is an option called Menu Layout Settings if the values are not the same nothing has any effect... or very probably said Plugin has more priority than rmmz_scenes. :stache:
Ok, thank you very much, solved, I will comment on what the problem is in case it happens to someone... I already saw why there was no difference when I touched something in rmmz_scenes and it is because VisuStellaCore there is an option called Menu Layout Settings if the values are not the same nothing has any effect... or very probably said Plugin has more priority than rmmz_scenes. :stache:

So the way it works, is plugins usually extend, or overwrite the functionality built in rpg maker functions, I.E. plugins take priority over the source JS files. Also plugins that are LOWER on the list, take the highest priority, I.E. they overwrite things later than plugins higher up..

For example, lets say you have plugin A at the top of your list, it includes, a EXTENSION of Function X, then below this, you have plugin B, which completely OVERWRITES Function X! This means whatever plugin A was doing was invalid, because plugin B is lower in the list, AND it completely wipes out the old function X! this is why the order of plugins can sometimes be important in solving bugs, if plugin B was ABOVE plugin A, then plugin B would overwrite function X( as intended ), THEN since plugin A is now BELOW plugin B, it will EXTEND the new function X that plugin A made.

hopefully that makes sense! :hswt: But yeah, that's why I said create a new plugin BELOW the plugin that alters the menu, and this is also PARTLY why it's bad to try to edit source files directly. 🙂
Sorry if I ask too much, but how could I remove this window: Z:Select X:Back? Annoys me.... D:<:barf:
RED
Desktop Screenshot 2024.01.31 - 18.55.45.36.png


Green
I know that there was a plugin (mv) but I don't remember which one (*Synred* something like that) that allowed me to modify the length of HP, MP, LVL and modify other things... or I don't know if anyone knows of a similar plugin or way manual (code)... PS: Attach this at the end in case someone who is creating their game finds this Thread useful...


As for removing the rectangle (window), I don't think this is it...?

Scene_Menu.prototype.commandPersonal = function() {
this._statusWindow.setFormationMode(false);
this._statusWindow.selectLast();
this._statusWindow.activate();
this._statusWindow.setHandler("ok", this.onPersonalOk.bind(this));
this._statusWindow.setHandler("cancel", this.onPersonalCancel.bind(this));
};

Scene_Menu.prototype.commandFormation = function() {
this._statusWindow.setFormationMode(true);
this._statusWindow.selectLast();
this._statusWindow.activate();
this._statusWindow.setHandler("ok", this.onFormationOk.bind(this));
this._statusWindow.setHandler("cancel", this.onFormationCancel.bind(this));
I BELIEVE that is the help window... you'd wanna "alias" whatever function is creating it and probably just hide it? Make sure to do this in a plugin that is BELOW the Visustella one.

JavaScript:
const _aliased_Scene_Menu_prototype_create = Scene_Menu.prototype.create;
Scene_Menu.prototype.create = function() {
    _aliased_Scene_Menu_prototype_create.call( this );
    this._helpWindow.hide();
}

code is untested I'm not sure what the help window is actually called, but it's from the visustella plugin and I don't plan to poke around too much as I dont have it installed, you can probably find it from the console if this doesnt work...

just start typing in the console "SceneManager._scene._" and you should be able to scroll through everything attached to to the scene( which should include the windows ). you can then find any thing with _YYYMenu, and if you think you found it, try typing "SceneManager._scene._YYYMenu.hide(), till you get the right window, just trial and error it lol. :x

hope that helps
I BELIEVE that is the help window... you'd wanna "alias" whatever function is creating it and probably just hide it? Make sure to do this in a plugin that is BELOW the Visustella one.

JavaScript:
const _aliased_Scene_Menu_prototype_create = Scene_Menu.prototype.create;
Scene_Menu.prototype.create = function() {
    _aliased_Scene_Menu_prototype_create.call( this );
    this._helpWindow.hide();
}

code is untested I'm not sure what the help window is actually called, but it's from the visustella plugin and I don't plan to poke around too much as I dont have it installed, you can probably find it from the console if this doesnt work...

just start typing in the console "SceneManager._scene._" and you should be able to scroll through everything attached to to the scene( which should include the windows ). you can then find any thing with _YYYMenu, and if you think you found it, try typing "SceneManager._scene._YYYMenu.hide(), till you get the right window, just trial and error it lol. :x

hope that

Thank you very much friend... :stache:🤘 at first I get an error but when I do some things the help window no longer appears... By the way, I find that pixel movement plugin of yours interesting. Maybe I'll buy it for my next game... (I like collisions)
Sorry if I ask too much, but how could I remove this window: Z:Select X:Back? Annoys me.... D:<:barf:
RED
View attachment 293721

Green
I know that there was a plugin (mv) but I don't remember which one (*Synred* something like that) that allowed me to modify the length of HP, MP, LVL and modify other things... or I don't know if anyone knows of a similar plugin or way manual (code)... PS: Attach this at the end in case someone who is creating their game finds this Thread useful...


As for removing the rectangle (window), I don't think this is it...?

Scene_Menu.prototype.commandPersonal = function() {
this._statusWindow.setFormationMode(false);
this._statusWindow.selectLast();
this._statusWindow.activate();
this._statusWindow.setHandler("ok", this.onPersonalOk.bind(this));
this._statusWindow.setHandler("cancel", this.onPersonalCancel.bind(this));
};

Scene_Menu.prototype.commandFormation = function() {
this._statusWindow.setFormationMode(true);
this._statusWindow.selectLast();
this._statusWindow.activate();
this._statusWindow.setHandler("ok", this.onFormationOk.bind(this));
this._statusWindow.setHandler("cancel", this.onFormationCancel.bind(this));
What plugin that you used on your game?

Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-mz-custom-scenes.165334/