Hello! I was wondering if anybody knew how to make it so the values of HP and MP appear truncated in battles?
Kind of like this.
Kind of like this.
Probably only for you.
class Window_Base < Window
#--------------------------------------------------------------------------
# * Draw HP
#--------------------------------------------------------------------------
def draw_actor_hp(actor, x, y, width = 124)
draw_gauge(x, y, width, actor.hp_rate, hp_gauge_color1, hp_gauge_color2)
change_color(system_color)
draw_text(x, y, 30, line_height, Vocab::hp_a)
h = actor.hp.to_s[0].to_i
m = actor.mhp.to_s[0].to_i
draw_current_and_max_values(x, y, width, h, m,
hp_color(actor), normal_color)
end
#--------------------------------------------------------------------------
# * Draw MP
#--------------------------------------------------------------------------
def draw_actor_mp(actor, x, y, width = 124)
draw_gauge(x, y, width, actor.mp_rate, mp_gauge_color1, mp_gauge_color2)
change_color(system_color)
draw_text(x, y, 30, line_height, Vocab::mp_a)
h = actor.mp.to_s[0].to_i
m = actor.mmp.to_s[0].to_i
draw_current_and_max_values(x, y, width, h, m,
mp_color(actor), normal_color)
end
#--------------------------------------------------------------------------
# * Draw TP
#--------------------------------------------------------------------------
def draw_actor_tp(actor, x, y, width = 124)
draw_gauge(x, y, width, actor.tp_rate, tp_gauge_color1, tp_gauge_color2)
change_color(system_color)
draw_text(x, y, 30, line_height, Vocab::tp_a)
change_color(tp_color(actor))
h = actor.tp.to_s[0].to_i
draw_text(x + width - 42, y, 42, line_height, h, 2)
end
end
Original thread: https://forums.rpgmakerweb.com/threads/truncated-hp-and-mp-values-in-battle-menu.173847/