Yanfly Menu Engine - TP Bar

I've got Yanfly's Menu Engine installed, and I'd like three separate bars on my menu screen for HP, MP, and TP.


However, I can't figure out how to NOT make the menu look like this - With MP and TP on the same bar and MP totally gone for some.

TP Bar.png
If an actor got no skills which consume MP, there will be no MP bar.


If an actor got no skills which consume TP, there will be no TP bar.


That is, if I remember right, but I haven't used that script since ages, so I am not sure.


MP and TP are not on the same bar, they are different bars aligned beside each other.


You can move the bars if you want, but for that you will need to edit the draw_actor_simple_status method in Yanfly's Menu Engine script.


Change the X and Y position for the bar drawing methods there however you like it (draw_actor_hp(actor,x,y), draw_actor_mp(actor,x,y), draw_actor_tp(actor,x,y))


Just note that the X argument needs to be based on the dx variable you see there, and the Y argument needs to based on the dy variable. Add to or subtract from these values to set a new position for them.


If you want both the bars to be shown all the time regardless if they got an MP or TP consuming skill, you can enter this little snippet below Yanfly's Menu Engine:

Spoiler
Code:
class Game_Actor < Game_Battler
  
  def draw_mp?
    return true
  end
  
  def draw_tp?
    return true
  end
  
end

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-menu-engine-tp-bar.70830/