| 赞 | 8  | 
 
| VIP | 20 | 
 
| 好人卡 | 126 | 
 
| 积分 | 117 | 
 
| 经验 | 33282 | 
 
| 最后登录 | 2025-11-1 | 
 
| 在线时间 | 1683 小时 | 
 
 
 
 
 
Lv4.逐梦者 
	- 梦石
 - 8 
 
        - 星屑
 - 3711 
 
        - 在线时间
 - 1683 小时
 
        - 注册时间
 - 2010-10-22
 
        - 帖子
 - 1067
 
 
   
 
 | 
	
1.设置状态1号,标记为连续伤害; 
2.修改Game_Battler 3:-   #--------------------------------------------------------------------------
 
 -   # ● 应用连续伤害效果
 
 -   #--------------------------------------------------------------------------
 
 -   def slip_damage_effect
 
 - #=============
 
 -      if self.state?(1) #状态为1号时
 
 -     self.damage -= 200 #恢复量为200
 
 -      else
 
 -     # 设置伤害
 
 -     self.damage = self.maxhp / 10
 
 -      end
 
 - #=============
 
 -     # 分散
 
 -     if self.damage.abs > 0
 
 -       amp = [self.damage.abs * 15 / 100, 1].max
 
 -       self.damage += rand(amp+1) + rand(amp+1) - amp
 
 -     end
 
 -     # HP 的伤害减法运算
 
 -     self.hp -= self.damage
 
 -     # 过程结束
 
 -     return true
 
 -   end
 
  复制代码 3. 修改Game_Party:-   #--------------------------------------------------------------------------
 
 -   # ● 检查连续伤害 (地图用)
 
 -   #--------------------------------------------------------------------------
 
 -   def check_map_slip_damage
 
 -     for actor in @actors
 
 -       if actor.hp > 0 and actor.slip_damage?
 
 - #=======================
 
 -        if actor.state?(1) #状态为1号时
 
 -      actor.hp += [200, 1].max #回复量为200
 
 -        else
 
 -         actor.hp -= [actor.maxhp / 100, 1].max#伤害量为1%
 
 -         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
 
 -   end
 
  复制代码 |   
 
 
 
 |