#============================================================================== # ■ Window_ActorCommand #------------------------------------------------------------------------------ # 选择角色命令(如「攻击」或「技能」)的窗口。 #============================================================================== class Window_ActorCommand < Window_Command #-------------------------------------------------------------------------- # ● 初始化对像 #-------------------------------------------------------------------------- def initialize super(128, [], 1, 4) self.active = false end #-------------------------------------------------------------------------- # ● 设置 # actor : 角色 #-------------------------------------------------------------------------- def setup(actor) if actor.id == 2 # 小小的角色的ID s1 = "防守" s2 = "待机" @commands = [s1, s2] @item_max = 2 else s1 = Vocab::attack s2 = Vocab::skill s3 = Vocab::guard s4 = Vocab::item if actor.class.skill_name_valid # 是否指定职业技能文字 s2 = actor.class.skill_name # 替换「技能」命令文字 end @commands = [s1, s2, s3, s4] @item_max = 4 end refresh self.index = 0 end end
#======================修改段开始======================== when 0 # 攻击/防守 Sound.play_decision if @active_battler.id == 2 # 小小的角色的ID @active_battler.action.set_guard next_actor else @active_battler.action.set_attack start_target_enemy_selection end when 1 # 技能/待机 Sound.play_decision if @active_battler.id == 2 # 小小的角色的ID next_actor else start_skill_selection end #======================修改段结束========================
2.jpg (747.63 KB, 下载次数: 36)
1.jpg (65.1 KB, 下载次数: 32)
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |