| 
默认是允许失败的战斗输了后会变成不能战斗状态。
x
加入我们,或者,欢迎回来。您需要 登录 才可以下载或查看,没有帐号?注册会员  我想要让1号主角有1点HP
 可是我在胜负判定的这里插入       $data_actors[1].hp += 1没有什么效果。
 
 
 
 
 
 #--------------------------------------------------------------------------  # ● 胜负判定  #--------------------------------------------------------------------------  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)#####################              $data_actors[1].hp += 1 #######################        # 返回 true        return true      end      # 设置游戏结束标志      $game_temp.gameover = true      # 返回 true      return true    end    # 如果存在任意 1 个敌人就返回 false    for enemy in $game_troop.enemies      if enemy.exist?        return false      end    end
#-------------------------------------------------------------------------- 
  # ● 胜负判定 
  #-------------------------------------------------------------------------- 
  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) 
##################### 
              $data_actors[1].hp += 1 
  
####################### 
        # 返回 true 
        return true 
      end 
      # 设置游戏结束标志 
      $game_temp.gameover = true 
      # 返回 true 
      return true 
    end 
    # 如果存在任意 1 个敌人就返回 false 
    for enemy in $game_troop.enemies 
      if enemy.exist? 
        return false 
      end 
    end 
 |