战斗者的名字是阿尔西斯就显示1111
module ZZZ # 战斗名设置方法:角色ID => 战斗名称 # 如果未设置的话会显示原来的名字 Zzz = { 1 => "1111" 2 => "2222" }endclass Game_Actor def battle_name return ZZZ::Zzz[self.id] != nil ? ZZZ::Zzz[self.id] : self.name endendclass 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) endend
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)
查看全部评分
折叠内容标题(非必须)
折叠内容
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2024-11-25 07:12
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.