Project1

标题: 怎么修改中毒的效果? [打印本页]

作者: 大米稀饭    时间: 2007-6-18 21:10
提示: 作者被禁止或删除 内容自动屏蔽
作者: 大米稀饭    时间: 2007-6-18 21:10
提示: 作者被禁止或删除 内容自动屏蔽
作者: 3535    时间: 2007-6-18 21:25
Game_Battler3

  #--------------------------------------------------------------------------
  # ● 套用連續傷害效果
  #--------------------------------------------------------------------------
  def slip_damage_effect
    # 設定傷害
    self.damage = $game_variables[自己填]
    # HP 的傷害減法運算
    self.hp -= self.damage
    # 過程結束
    return true
  end

Game_Party

  #--------------------------------------------------------------------------
  # ● 檢查連續傷害 (地圖用)
  #--------------------------------------------------------------------------
  def check_map_slip_damage
    for actor in @actors
      if actor.hp > 0 and actor.slip_damage?
        actor.hp -= $game_variables[自己填]
        if actor.hp == 0
          $game_system.se_play($data_system.actor_collapse_se)
        end
        $game_screen.start_flash(Color.new(255,0,0,128), 4)
        $game_temp.gameover = $game_party.all_dead?
      end
    end
  end
作者: 3535    时间: 2007-6-18 21:27
Game_Player

  #--------------------------------------------------------------------------
  # ● 增加步數
  #--------------------------------------------------------------------------
  def increase_steps
    super
    # 不是強制移動路線的場合
    unless @move_route_forcing
      # 增加步數
      $game_party.increase_steps
      # 步數是偶數的情況下
      if $game_party.steps % 10 == 0
        # 檢查連續傷害
        $game_party.check_map_slip_damage
      end
    end
  end [LINE]1,#dddddd[/LINE]系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
作者: 大米稀饭    时间: 2007-6-18 21:57
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1