查看: 1291|回复: 4

怎么修改中毒的效果?

  [复制链接]
头像被屏蔽
梦石
0
星屑
50
在线时间
1 小时
注册时间
2007-1-30
回帖
249
发表于 2007-6-18 21:10:46 | 显示全部楼层 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
头像被屏蔽
梦石
0
星屑
50
在线时间
1 小时
注册时间
2007-1-30
回帖
249
发表于 2007-6-18 21:10:46 | 显示全部楼层 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽

冰

梦石
0
星屑
142
在线时间
264 小时
注册时间
2006-11-22
回帖
1010
发表于 2007-6-18 21:25:00 | 显示全部楼层
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
回复

使用道具 举报

冰

梦石
0
星屑
142
在线时间
264 小时
注册时间
2006-11-22
回帖
1010
发表于 2007-6-18 21:27:35 | 显示全部楼层
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
系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
1 小时
注册时间
2007-1-30
回帖
249
 楼主| 发表于 2007-6-18 21:57:57 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部