| 
 
| 赞 | 13 |  
| VIP | 118 |  
| 好人卡 | 28 |  
| 积分 | 13 |  
| 经验 | 35779 |  
| 最后登录 | 2017-7-6 |  
| 在线时间 | 1564 小时 |  
 Lv3.寻梦者 
	梦石0 星屑1305 在线时间1564 小时注册时间2008-7-30帖子4418 
 | 
| 本帖最后由 DeathKing 于 2011-11-22 23:55 编辑 
 将此脚本插入到【Main】之前即可正常使用,会对之前定义好的其他非默认战斗系统造成一定程度上的影响。注意,如果是事件调用【战斗处理】,则需要勾选上【允许逃跑】,才可以正常逃跑。
 复制代码#==============================================================================
# ■ Window_ActorCommand
#------------------------------------------------------------------------------
#  选择角色命令(如「攻击」或「技能」)的窗口。
#==============================================================================
class Window_ActorCommand < Window_Command
  #--------------------------------------------------------------------------
  # ● 设置
  #     actor : 角色
  #--------------------------------------------------------------------------
  def setup(actor)
    s1 = Vocab::attack                  # 不再起效
    s2 = Vocab::skill
    s3 = Vocab::guard
    s4 = Vocab::item
    s5 = Vocab::escape
    if actor.class.skill_name_valid     # 是否指定职业技能文字
      s2 = actor.class.skill_name       # 替换「技能」命令文字
    end
    @commands = [s2, s3, s4, s5]
    @item_max = 4
    refresh
    self.index = 0
  end
end
#==============================================================================
# ■ Scene_Battle
#------------------------------------------------------------------------------
#  处理战斗画面的类。
#==============================================================================
class Scene_Battle < Scene_Base
  #--------------------------------------------------------------------------
  # ● 更新队伍命令选择
  #--------------------------------------------------------------------------
  def update_party_command_selection
    @status_window.index = @actor_index = -1
    next_actor
  end
  #--------------------------------------------------------------------------
  # ● 更新角色命令选择
  #--------------------------------------------------------------------------
  def update_actor_command_selection
    if Input.trigger?(Input::B)
      Sound.play_cancel
      prior_actor
    elsif Input.trigger?(Input::C)
      case @actor_command_window.index
      when 0  # 技能
        Sound.play_decision
        start_skill_selection
      when 1  # 防御
        Sound.play_decision
        @active_battler.action.set_guard
        next_actor
      when 2  # 物品
        Sound.play_decision
        start_item_selection
      when 3  # 逃跑
        if $game_troop.can_escape == false
          Sound.play_buzzer
          return
        end
        Sound.play_decision
        process_escape
      end
    end
  end
end
 | 
 |