Yanfly Menu Engine - TP Bar
RGSSx Script SupportIf 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:
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:
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/
