removing HP and MP gauges

You can remove the TP guage altogether from the system screen.  I don't use the TP.  (LOL)


Seriously, I am making a Dragon Quest type of game and want the classic feel in menus WITHOUT the gauges.  I've looked through some plugins and searched the web.  Does anyone here have a solution?


Thanks 8)
You'd have to edit the scripts, but it's fairly simple to do. Using a program like Notepad, go into your project's folder, go into the "js" folder, and open "rpg_windows". (You'll likely need to set it to show all files.)


Now search for "prototype.drawActorHp". There is a line that starts "this.drawGauge"; delete or comment out (put "//" at the beginning) that line. Then do the same for "prototype.drawActorMp" (it's just below drawActorHP). That should remove the gauges while leaving the numbers displayed.


Addendum: If you are using a plugin that affects the menu layout, you may have to remove the "this.drawGauge" in the plugin's scripting. But that's if doing it in the base scripts doesn't work.
Thank you soooooooo much!  😀
Since you're here, one other little thing is the damage tile.  It's default is 10 damage.  I want to change it to 1.
That is in the "rpg_objects" file. Search for "basicFloorDamage", and change the return value to 1.
You are wonderful!  Thanks for the help.
I can't open the .js file. Can I still remove the HP and MP gauges? If not, does anyone recommend a program I could use to edit the .js file?
I can't open the .js file. Can I still remove the HP and MP gauges? If not, does anyone recommend a program I could use to edit the .js file?



You should be able to right-click and 'Open With' normal old Notepad. Although I would suggest using Notepad++ for editing.
@Exhydra Thank you! For some odd reason, when I just normally clicked on it, it said "Error: 'Window' is not defined, but now it works just fine.
@LittleLeoGamer The file was probably being parsed and run by JScript, a native javascript compiler in Windows. 
@Exhydra Now I have a different problem, and I'm wondering if you can help me fix it. Yes, the HP and MP gauges are gone, but the numbers (HP: 1/1, MP 0/0) still remain. What do I do?
@LittleLeoGamer So, you're wanting to remove the HP and MP gauges, along with the text in the battle display, correct?
@ExhydraWell, I'm not using the battle display, I want the text to be removed from the main screen.
@LittleLeoGamer Removing and/or commenting out anything in the core scripts as explained above is quick and easy, but may cause issues or incompatibilities down the road. I would highly suggest copying and pasting the following code into a '.js' document in your plugins directory (name it 'RemoveGauges' or whatever you want). Then add that to your project through the Plugin Manager. This will allow you to trouble shoot any issues later on by enabling or disabling the edit instead of having to remember which lines you changed in a huge script file.


Window_MenuStatus.prototype.drawActorSimpleStatus = function(actor, x, y, width) {
var lineHeight = this.lineHeight();
var x2 = x + 180;
var width2 = Math.min(200, width - 180 - this.textPadding());
this.drawActorName(actor, x, y);
this.drawActorLevel(actor, x, y + lineHeight * 1);
this.drawActorIcons(actor, x, y + lineHeight * 2);
this.drawActorClass(actor, x2, y);
// Draw HP and MP functions
/* this.drawActorHp(actor, x2, y + lineHeight * 1, width2);
this.drawActorMp(actor, x2, y + lineHeight * 2, width2); */
};

Window_Status.prototype.drawBasicInfo = function(x, y) {
var lineHeight = this.lineHeight();
this.drawActorLevel(this._actor, x, y + lineHeight * 0);
this.drawActorIcons(this._actor, x, y + lineHeight * 1);
// Draw HP and MP functions
/* this.drawActorHp(this._actor, x, y + lineHeight * 2);
this.drawActorMp(this._actor, x, y + lineHeight * 3); */
};


Do this whenever you want to make an edit to the original code. It will save so much pain and headaches in the future.


EDIT: Changed the code somewhat from my original posting.
@Exhydra Thank you for all of the help. I'm really lazy (XD), but I guess I'll do this to prevent problems. Thanks!
@LittleLeoGamer I made a change to the original code I posted.


Yes, making the edit within the core files is quick and easy ... but believe me, taking the extra few minutes to copy and paste the code you want to change into a plugin file will save you headaches down the road.
@Exhydra I did all of the scripts, and turned on the 'plugin', and it still has the numbers! Please help!
i made a plugin with the above script and now it still shows 1 hp and 0 below?

@BabyDonna , please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/removing-hp-and-mp-gauges.56630/