| 
 
| 赞 | 0 |  
| VIP | 77 |  
| 好人卡 | 306 |  
| 积分 | 1 |  
| 经验 | 85662 |  
| 最后登录 | 2023-11-23 |  
| 在线时间 | 1782 小时 |  
 Lv1.梦旅人 虱子 
	梦石0 星屑121 在线时间1782 小时注册时间2010-6-19帖子3597 | 
| 嗯搜到了你之前的脚本,用这个脚本覆盖原来的应该就行了,普通系统测试无问题 复制代码class Scene_Battle
  #--------------------------------------------------------------------------
  # ● 胜负判定
  #--------------------------------------------------------------------------
  def judge
    # 全灭判定是真、并且同伴人数为 0 的情况下
    if $game_party.all_dead? or $game_party.actors.size == 0
      if $game_temp.battle_can_lose
        # 还原为战斗开始前的 BGM
        $game_system.bgm_play($game_temp.map_bgm)
        # 战斗结束
        battle_end(2)
        # 返回 true
        return true
      end
      # 允许失败的情况下
    Audio.se_play("Audio/SE/神说了",100,100)
      Audio.bgm_fade(1000)
      $game_screen.start_tone_change(Tone.new(0,0,0,255), 40)
      40.times{
    # 刷新窗口
      $game_screen.update
      @help_window.update
      #@party_command_window.update
      #@actor_command_window.update
      #@status_window.update
      #@message_window.update
      # 刷新活动块
      @spriteset.update
      Graphics.update
      }
      w = Window_Command.new(128,["继续","退出"])
      w.x = 320-w.width/2
      w.y = 240-w.height/2
      loop do
        Graphics.update
        Input.update
        w.update
        if Input.press?(Input::C)
          $game_system.se_play($data_system.decision_se)
          case w.index
          when 0
            $scene = Scene_Load.new
            w.dispose
            w = nil
            return
          when 1
            exit
          end
        end
      end
      # 设置游戏结束标志
      $game_temp.gameover = true
      # 返回 true
      return true
    end
    # 如果存在任意 1 个敌人就返回 false
    for enemy in $game_troop.enemies
      if enemy.exist?
        return false
      end
    end
    # 开始结束战斗回合 (胜利)
    start_phase5
    # 返回 true
    return true
  end
end
 | 
 |