module Vocab HP2 = "SP" #更换后的HP名 end class Window_Base #-------------------------------------------------------------------------- # ● 绘制 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) #================================================================== vocab_hp_a = actor.id < 3 ? Vocab::hp_a : Vocab::HP2 #3号角色开始更换用语 draw_text(x, y, 30, line_height, vocab_hp_a) #================================================================== draw_current_and_max_values(x, y, width, actor.hp, actor.mhp, hp_color(actor), normal_color) end end
module Vocab
HP2 = "SP"
#更换后的HP名
end
class Window_Base
#--------------------------------------------------------------------------
# ● 绘制 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)
#==================================================================
vocab_hp_a = actor.id < 3 ? Vocab::hp_a : Vocab::HP2 #3号角色开始更换用语
draw_text(x, y, 30, line_height, vocab_hp_a)
#==================================================================
draw_current_and_max_values(x, y, width, actor.hp, actor.mhp,
hp_color(actor), normal_color)
end
end
将注释那行的3改成11就是你要的效果了 |