设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
Project1 查看内容

新·仿梦幻多体攻击

2008-1-24 21:42| 发布者: 雷子| 查看: 4102| 评论: 0|原作者: 萧萧无痕|来自: 点此进入发布帖

摘要:  class Scene_Battledef tg_xiuzheng(s)   for kds_dui in  $data_skills[@active_battler.current_action.skill_id].plus_state_set     if $game_party.smooth_target_actor(s).states.include?(kds_dui)       
 class Scene_Battle
def tg_xiuzheng(s)
   for kds_dui in  $data_skills[@active_battler.current_action.skill_id].plus_state_set
     if $game_party.smooth_target_actor(s).states.include?(kds_dui)
        return true
     end
   end
  return false
end
def tg_xiuzheng2(s)
   for kds_dui in  $data_skills[@active_battler.current_action.skill_id].plus_state_set
     if $game_troop.smooth_target_enemy(s).states.include?(kds_dui)
        return true
     end
   end
  return false
end
def dr_ac
      index = @active_battler.current_action.target_index
       $miao = 1
      if @active_battler.current_action.kind == 1
        @skill = $data_skills[@active_battler.current_action.skill_id]
       if $data_skills[@skill.id].kds_miao > 1
       @sudu = []
       @guang = []
       for s in 0..$game_party.actors.size-1
         if $game_party.actors[s].hp != 0
          @sudu.push($game_party.smooth_target_actor(s).agi)
          @guang.push(s)
         end
       end
       for a in [email protected]
        for s in [email protected]
         if s < @sudu.size-1 and @sudu[s] < @sudu[s+1]
         elsif s < @sudu.size-1 and @sudu[s] > @sudu[s+1]
          @abc = @sudu[s]
          @sudu[s] = @sudu[s+1]
          @sudu[s+1] = @abc
          @bcd = @guang[s]
          @guang[s] = @guang[s+1]
          @guang[s+1] = @bcd
         end
        end
       end
       for s in [email protected]
         if @guang[@sudu.size-1-s] == index
         else
           $miao += 1
           @target_battlers.push($game_party.smooth_target_actor(@guang[@sudu.size-1 - s]))
         end
         if $miao == $data_skills[@skill.id].kds_miao
          break
         end
       end
       end
     end
end
def dr_dr
     index = @active_battler.current_action.target_index
       $miao = 1
     if @active_battler.current_action.kind == 1
        @skill = $data_skills[@active_battler.current_action.skill_id]
       if $data_skills[@skill.id].kds_miao > 1
       @sudu = []
       @guang = []
       for s in 0..$game_troop.enemies.size-1
         if $game_troop.enemies[s].hp != 0 and @active_battler.current_action.kind == 1 and tg_xiuzheng2(s) == false
          @sudu.push($game_troop.smooth_target_enemy(s).agi)
          @guang.push(s)
         end
       end
       for a in [email protected]
        for s in [email protected]
         if s < @sudu.size-1 and @sudu[s] < @sudu[s+1]
         elsif s < @sudu.size-1 and @sudu[s] > @sudu[s+1]
          @abc = @sudu[s]
          @sudu[s] = @sudu[s+1]
          @sudu[s+1] = @abc
          @bcd = @guang[s]
          @guang[s] = @guang[s+1]
          @guang[s+1] = @bcd
         end
        end
       end
       for s in [email protected]
         if @guang[@sudu.size-1-s] == index
         else
           $miao += 1
           @target_battlers.push($game_troop.smooth_target_enemy(@guang[@sudu.size-1 - s]))
         end
         if $miao == $data_skills[@skill.id].kds_miao
          break
         end
       end
       end
      end
end
def ac_dr
     index = @active_battler.current_action.target_index
     if @active_battler.current_action.kind == 1
       @skill = $data_skills[@active_battler.current_action.skill_id]
       $miao = 1
       if $data_skills[@skill.id].kds_miao > 1
       @sudu = []
       @guang = []
       for s in 0..$game_troop.enemies.size-1
         if $game_troop.enemies[s].hp != 0
          @sudu.push($game_troop.smooth_target_enemy(s).agi)
          @guang.push(s)
         end
       end
       for a in [email protected]
        for s in [email protected]
         if s < @sudu.size-1 and @sudu[s] < @sudu[s+1]
         elsif s < @sudu.size-1 and @sudu[s] > @sudu[s+1]
          @abc = @sudu[s]
          @sudu[s] = @sudu[s+1]
          @sudu[s+1] = @abc
          @bcd = @guang[s]
          @guang[s] = @guang[s+1]
          @guang[s+1] = @bcd
         end
        end
       end
       for s in [email protected]
         if @guang[@sudu.size-1-s] == index
         else
           $miao += 1
           @target_battlers.push($game_troop.smooth_target_enemy(@guang[@sudu.size-1 - s]))
         end
         if $miao == $data_skills[@skill.id].kds_miao
          break
         end
       end
       end
      end
end
def ac_ac
     index = @active_battler.current_action.target_index
     if @active_battler.current_action.kind == 1
       @skill = $data_skills[@active_battler.current_action.skill_id]
       $miao = 1
       if $data_skills[@skill.id].kds_miao > 1
       @sudu = []
       @guang = []
       for s in 0..$game_party.actors.size-1
         if $game_party.actors[s].hp != 0 and @active_battler.current_action.kind == 1 and tg_xiuzheng(s) == false
          @sudu.push($game_party.smooth_target_actor(s).agi)
          @guang.push(s)
         end
       end
       for a in [email protected]
        for s in [email protected]
         if s < @sudu.size-1 and @sudu[s] < @sudu[s+1]
         elsif s < @sudu.size-1 and @sudu[s] > @sudu[s+1]
          @abc = @sudu[s]
          @sudu[s] = @sudu[s+1]
          @sudu[s+1] = @abc
          @bcd = @guang[s]
          @guang[s] = @guang[s+1]
          @guang[s+1] = @bcd
         end
        end
       end
       for s in [email protected]
         if @guang[@sudu.size-1-s] == index
         else
           $miao += 1
           @target_battlers.push($game_party.smooth_target_actor(@guang[@sudu.size-1 - s]))
         end
         if $miao == $data_skills[@skill.id].kds_miao
          break
         end
       end
     end
   end
end
end

鲜花

刚表态过的朋友 (0 人)

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-12-24 00:46

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

返回顶部