插入以下脚本即可。
module ZZZ # 战斗名设置方法:角色ID => 战斗名称 # 如果未设置的话会显示原来的名字 Zzz = { 1 => "1111" 2 => "2222" } end class Game_Actor def battle_name return ZZZ::Zzz[self.id] != nil ? ZZZ::Zzz[self.id] : self.name end end class Window_Base def draw_actor_battle_name(actor, x, y) self.contents.font.color = normal_color self.contents.draw_text(x, y, 120, 32, actor.battle_name) end end
module ZZZ
# 战斗名设置方法:角色ID => 战斗名称
# 如果未设置的话会显示原来的名字
Zzz = {
1 => "1111"
2 => "2222"
}
end
class Game_Actor
def battle_name
return ZZZ::Zzz[self.id] != nil ? ZZZ::Zzz[self.id] : self.name
end
end
class Window_Base
def draw_actor_battle_name(actor, x, y)
self.contents.font.color = normal_color
self.contents.draw_text(x, y, 120, 32, actor.battle_name)
end
end
然后把你第一张图中高亮选择的部分替换成
draw_actor_battle_name(actor, actor_x, 0)
draw_actor_battle_name(actor, actor_x, 0)
|