How can I delete MP bars?

Hi everyone!

I don't really understand java so much, I want to delete MP bars from my game, and just replace it for the TP ones, but I can't.

Obviouly I want to replace it in combat and menus.

Hope anyone can help me with this.

Thanks!!!
javascript, not java 😉

So EVERYWHERE where you currently see an MP title & bar, you want to replace it with a TP title and bar? If that's the case, save the following to your plugins folder (any name, with .js extension):

Window_Base.prototype.drawActorMP = function(actor, x, y, width) { this.drawActorTP(actor, x, y, width);}If you don't want to add a whole new plugin file for just those lines, go to rpg_windows.js, line 562. Delete the contents of that function (from lines 563 - 570) or just comment them out by placing // at the start of the lines and add this instead:

Code:
this.drawActorTP(actor, x, y, width);
Thanks for the reply Shaz

Yes, I want to replace the MP bars in the whole game and replace it for TP ones.

After trying that it gives to me a TypeError.

Im using YEP_EnhancedTP, I don't think it could be a problem but...

Thanks again and yes, I meant javascript  🙁

Soz for my english :/
What is the full error message? If you play with developer tools turned on (hit F8 after starting the game), what does the console window show when the error occurs? That will give a more detailed message, and state what script/plugin and line is causing the issue.


And yes, maybe that plugin IS causing issues.
This is what I get

Code:
TypeError: undefined is not a function    at Window_MenuStatus.Window_Base.drawActorMp (rpg_windows.js:563)    at Window_MenuStatus.Window_Base.drawActorSimpleStatus (rpg_windows.js:594)    at Window_MenuStatus.drawItemStatus (rpg_windows.js:1764)    at Window_MenuStatus.drawItem (rpg_windows.js:1737)    at Window_MenuStatus.Window_Selectable.drawAllItems (rpg_windows.js:1251)    at Window_MenuStatus.Window_Selectable.refresh (rpg_windows.js:1278)    at Window_MenuStatus.initialize (rpg_windows.js:1704)    at new Window_MenuStatus (rpg_windows.js:1691)    at Scene_Menu.createStatusWindow (rpg_scenes.js:800)    at Scene_Menu.create (rpg_scenes.js:771)
ah - typo on my part. Sorry. I said TP but it should be Tp.


Change that line to this:

Code:
this.drawActorTp(actor, x, y, width);
and you should be okay.
Oh, it works!!

Thanks Shaz, I really apreciate your help.

Cheers!!

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-delete-mp-bars.54670/