How can I delete MP bars?

Zrag

Villager
Member
Joined
Jun 3, 2014
Messages
7
Reaction score
0
First Language
Spanish
Primarily Uses
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!!!
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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);
 

Zrag

Villager
Member
Joined
Jun 3, 2014
Messages
7
Reaction score
0
First Language
Spanish
Primarily Uses
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 :/
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 

Zrag

Villager
Member
Joined
Jun 3, 2014
Messages
7
Reaction score
0
First Language
Spanish
Primarily Uses
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)
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 

Zrag

Villager
Member
Joined
Jun 3, 2014
Messages
7
Reaction score
0
First Language
Spanish
Primarily Uses
Oh, it works!!

Thanks Shaz, I really apreciate your help.

Cheers!!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,569
Latest member
Shtelsky
Top