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

Project1

 找回密码
 注册会员
搜索
查看: 1344|回复: 1
打印 上一主题 下一主题

[已经过期] 请问,这个脚本要怎么使用

[复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
439 小时
注册时间
2013-3-2
帖子
710
跳转到指定楼层
1
发表于 2014-4-15 23:31:09 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
本帖最后由 guoyq1988 于 2014-4-16 12:20 编辑

按照说明设置了,可好像没作用,是不是我设置错了?
  1. 教学摘要:
  2.   使用方法:在技能后面加◆(表示秒几)
  3. 把此脚本插入到Main之前

  4. 教程作者:萧萧无痕
  5. 首发网址:点此进入本教学的原始帖
  6. 技术通用度:★★★
  7. 技术应用复杂度:50 (满分150分)
  8. 学习的理解难度:65 (满分150分)



  9. --------------------------------------------------------------------------------

  10. 教学正文:

  11. class Scene_Battle
  12. def tg_xiuzheng(s)
  13.    for kds_dui in  $data_skills[@active_battler.current_action.skill_id].plus_state_set
  14.      if $game_party.smooth_target_actor(s).states.include?(kds_dui)
  15.         return true
  16.      end
  17.    end
  18.   return false
  19. end
  20. def tg_xiuzheng2(s)
  21.    for kds_dui in  $data_skills[@active_battler.current_action.skill_id].plus_state_set
  22.      if $game_troop.smooth_target_enemy(s).states.include?(kds_dui)
  23.         return true
  24.      end
  25.    end
  26.   return false
  27. end
  28. def dr_ac
  29.       index = @active_battler.current_action.target_index
  30.        $miao = 1
  31.       if @active_battler.current_action.kind == 1
  32.         [url=home.php?mod=space&uid=260100]@skill[/url] = $data_skills[@active_battler.current_action.skill_id]
  33.        if $data_skills[@skill.id].kds_miao > 1
  34.        @sudu = []
  35.        @guang = []
  36.        for s in 0..$game_party.actors.size-1
  37.          if $game_party.actors[s].hp != 0
  38.           @sudu.push($game_party.smooth_target_actor(s).agi)
  39.           @guang.push(s)
  40.          end
  41.        end
  42.        for a in [email protected]
  43.         for s in [email protected]
  44.          if s < @sudu.size-1 and @sudu[s] < @sudu[s+1]
  45.          elsif s < @sudu.size-1 and @sudu[s] > @sudu[s+1]
  46.           [url=home.php?mod=space&uid=5823]@abc[/url] = @sudu[s]
  47.           @sudu[s] = @sudu[s+1]
  48.           @sudu[s+1] = @abc
  49.           @bcd = @guang[s]
  50.           @guang[s] = @guang[s+1]
  51.           @guang[s+1] = @bcd
  52.          end
  53.         end
  54.        end
  55.        for s in [email protected]
  56.          if @guang[@sudu.size-1-s] == index
  57.          else
  58.            $miao += 1
  59.            @target_battlers.push($game_party.smooth_target_actor(@guang[@sudu.size-1 - s]))
  60.          end
  61.          if $miao == $data_skills[@skill.id].kds_miao
  62.           break
  63.          end
  64.        end
  65.        end
  66.      end
  67. end
  68. def dr_dr
  69.      index = @active_battler.current_action.target_index
  70.        $miao = 1
  71.      if @active_battler.current_action.kind == 1
  72.         [url=home.php?mod=space&uid=260100]@skill[/url] = $data_skills[@active_battler.current_action.skill_id]
  73.        if $data_skills[@skill.id].kds_miao > 1
  74.        @sudu = []
  75.        @guang = []
  76.        for s in 0..$game_troop.enemies.size-1
  77.          if $game_troop.enemies[s].hp != 0 and @active_battler.current_action.kind == 1 and tg_xiuzheng2(s) == false
  78.           @sudu.push($game_troop.smooth_target_enemy(s).agi)
  79.           @guang.push(s)
  80.          end
  81.        end
  82.        for a in [email protected]
  83.         for s in [email protected]
  84.          if s < @sudu.size-1 and @sudu[s] < @sudu[s+1]
  85.          elsif s < @sudu.size-1 and @sudu[s] > @sudu[s+1]
  86.           @abc = @sudu[s]
  87.           @sudu[s] = @sudu[s+1]
  88.           @sudu[s+1] = @abc
  89.           @bcd = @guang[s]
  90.           @guang[s] = @guang[s+1]
  91.           @guang[s+1] = @bcd
  92.          end
  93.         end
  94.        end
  95.        for s in [email protected]
  96.          if @guang[@sudu.size-1-s] == index
  97.          else
  98.            $miao += 1
  99.            @target_battlers.push($game_troop.smooth_target_enemy(@guang[@sudu.size-1 - s]))
  100.          end
  101.          if $miao == $data_skills[@skill.id].kds_miao
  102.           break
  103.          end
  104.        end
  105.        end
  106.       end
  107. end
  108. def ac_dr
  109.      index = @active_battler.current_action.target_index
  110.      if @active_battler.current_action.kind == 1
  111.        @skill = $data_skills[@active_battler.current_action.skill_id]
  112.        $miao = 1
  113.        if $data_skills[@skill.id].kds_miao > 1
  114.        @sudu = []
  115.        @guang = []
  116.        for s in 0..$game_troop.enemies.size-1
  117.          if $game_troop.enemies[s].hp != 0
  118.           @sudu.push($game_troop.smooth_target_enemy(s).agi)
  119.           @guang.push(s)
  120.          end
  121.        end
  122.        for a in [email protected]
  123.         for s in [email protected]
  124.          if s < @sudu.size-1 and @sudu[s] < @sudu[s+1]
  125.          elsif s < @sudu.size-1 and @sudu[s] > @sudu[s+1]
  126.           @abc = @sudu[s]
  127.           @sudu[s] = @sudu[s+1]
  128.           @sudu[s+1] = @abc
  129.           @bcd = @guang[s]
  130.           @guang[s] = @guang[s+1]
  131.           @guang[s+1] = @bcd
  132.          end
  133.         end
  134.        end
  135.        for s in [email protected]
  136.          if @guang[@sudu.size-1-s] == index
  137.          else
  138.            $miao += 1
  139.            @target_battlers.push($game_troop.smooth_target_enemy(@guang[@sudu.size-1 - s]))
  140.          end
  141.          if $miao == $data_skills[@skill.id].kds_miao
  142.           break
  143.          end
  144.        end
  145.        end
  146.       end
  147. end
  148. def ac_ac
  149.      index = @active_battler.current_action.target_index
  150.      if @active_battler.current_action.kind == 1
  151.        @skill = $data_skills[@active_battler.current_action.skill_id]
  152.        $miao = 1
  153.        if $data_skills[@skill.id].kds_miao > 1
  154.        @sudu = []
  155.        @guang = []
  156.        for s in 0..$game_party.actors.size-1
  157.          if $game_party.actors[s].hp != 0 and @active_battler.current_action.kind == 1 and tg_xiuzheng(s) == false
  158.           @sudu.push($game_party.smooth_target_actor(s).agi)
  159.           @guang.push(s)
  160.          end
  161.        end
  162.        for a in [email protected]
  163.         for s in [email protected]
  164.          if s < @sudu.size-1 and @sudu[s] < @sudu[s+1]
  165.          elsif s < @sudu.size-1 and @sudu[s] > @sudu[s+1]
  166.           @abc = @sudu[s]
  167.           @sudu[s] = @sudu[s+1]
  168.           @sudu[s+1] = @abc
  169.           @bcd = @guang[s]
  170.           @guang[s] = @guang[s+1]
  171.           @guang[s+1] = @bcd
  172.          end
  173.         end
  174.        end
  175.        for s in [email protected]
  176.          if @guang[@sudu.size-1-s] == index
  177.          else
  178.            $miao += 1
  179.            @target_battlers.push($game_party.smooth_target_actor(@guang[@sudu.size-1 - s]))
  180.          end
  181.          if $miao == $data_skills[@skill.id].kds_miao
  182.           break
  183.          end
  184.        end
  185.      end
  186.    end
  187. end
  188. end

复制代码
没人来指点下吗?
那就烧香请神了
@恋′挂机 @弗雷德 @芯☆淡茹水 @myownroc @天地有正气 @你最珍贵  

   
【RMXP共享】50个脚本整合的系统

Lv1.梦旅人

薄凉看客

梦石
0
星屑
50
在线时间
1269 小时
注册时间
2010-6-20
帖子
1316
2
发表于 2014-4-16 13:02:07 | 只看该作者

点评

那个脚本有注释 参考 默认方法 很容易整合  发表于 2014-4-16 18:08
额,可是有冲突。  发表于 2014-4-16 13:32
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-9-30 19:42

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表