| 
 
| 赞 | 2 |  
| VIP | 333 |  
| 好人卡 | 91 |  
| 积分 | 2 |  
| 经验 | 55775 |  
| 最后登录 | 2017-7-18 |  
| 在线时间 | 2070 小时 |  
 Lv1.梦旅人 Mr.Gandum 
	梦石0 星屑226 在线时间2070 小时注册时间2007-1-31帖子3039 
 | 
| 直接插入到Main上头。在战斗中选择队伍指令时按Shift即可。按得键可以在13行改复制代码#==============================================================================
# ■ Scene_Battle
#------------------------------------------------------------------------------
#  处理战斗画面的类。
#==============================================================================
class Scene_Battle < Scene_Base
  alias one_botton_update_party_command_selection update_party_command_selection
  #--------------------------------------------------------------------------
  # ● 更新队伍命令选择
  #--------------------------------------------------------------------------
  def update_party_command_selection
    if Input.trigger?(Input::A)
      do_one_botton_result
    else
      one_botton_update_party_command_selection
    end
  end
  #--------------------------------------------------------------------------
  # ● 执行一键判定
  #--------------------------------------------------------------------------
  def do_one_botton_result
    esta = [0,0,0,0]
    asta = [0,0,0,0]
    $game_troop.members.each{|enemy|
      esta[0] += enemy.atk
      esta[1] += enemy.def
      esta[2] += enemy.agi
      esta[3] += enemy.spi
    }
    $game_party.members.each{|actor|
      asta[0] += actor.atk
      asta[1] += actor.def
      asta[2] += actor.agi
      asta[3] += actor.spi
    }
    t = 0
    [0,1,2,3].each{|i|
    if asta[i] > esta[i]
      t += 1
    end
    }
    if t < 3
      process_defeat
    else
      process_one_botton_victory
    end
  end
  #--------------------------------------------------------------------------
  # ● 处理一键胜利
  #--------------------------------------------------------------------------
  def process_one_botton_victory
    $game_troop.members.each{|enemy|
    enemy.add_state(1)
    }
    process_victory
  end
end
 | 
 |