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

Project1

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

[已经解决] 技能

[复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
40 小时
注册时间
2012-2-11
帖子
49
跳转到指定楼层
1
发表于 2012-4-30 09:23:21 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
请问如何用技能给俩个或俩个以上加血呢?  还有怎么给俩人或俩个以上加防御呢?  为什么默认只能给一个人或全队伍加呢? 怎么改麻烦朋友教下

评分

参与人数 1星屑 +2 收起 理由
R-零 + 2 = = b史上最强提问……

查看全部评分

Lv1.梦旅人

萌萌的小笼包

梦石
0
星屑
50
在线时间
193 小时
注册时间
2012-4-30
帖子
652
2
发表于 2012-4-30 10:22:26 | 只看该作者
可以参考游戏中群体回血技能来做。

冲啊小笼包
回复

使用道具 举报

Lv2.观梦者

仙木精灵

梦石
0
星屑
651
在线时间
215 小时
注册时间
2012-4-16
帖子
502
3
发表于 2012-4-30 10:57:00 | 只看该作者
喔喔
试试这个脚本!
使用方法:在技能后面加◆(表示秒几)
把此脚本插入到Main之前
  1. class Scene_Battle
  2. def tg_xiuzheng(s)
  3.    for kds_dui in  $data_skills[@active_battler.current_action.skill_id].plus_state_set
  4.      if $game_party.smooth_target_actor(s).states.include?(kds_dui)
  5.         return true
  6.      end
  7.    end
  8.   return false
  9. end
  10. def tg_xiuzheng2(s)
  11.    for kds_dui in  $data_skills[@active_battler.current_action.skill_id].plus_state_set
  12.      if $game_troop.smooth_target_enemy(s).states.include?(kds_dui)
  13.         return true
  14.      end
  15.    end
  16.   return false
  17. end
  18. def dr_ac
  19.       index = @active_battler.current_action.target_index
  20.        $miao = 1
  21.       if @active_battler.current_action.kind == 1
  22.         @skill = $data_skills[@active_battler.current_action.skill_id]
  23.        if $data_skills[@skill.id].kds_miao > 1
  24.        @sudu = []
  25.        @guang = []
  26.        for s in 0..$game_party.actors.size-1
  27.          if $game_party.actors[s].hp != 0
  28.           @sudu.push($game_party.smooth_target_actor(s).agi)
  29.           @guang.push(s)
  30.          end
  31.        end
  32.        for a in [email protected]
  33.         for s in [email protected]
  34.          if s < @sudu.size-1 and @sudu[s] < @sudu[s+1]
  35.          elsif s < @sudu.size-1 and @sudu[s] > @sudu[s+1]
  36.           @abc = @sudu[s]
  37.           @sudu[s] = @sudu[s+1]
  38.           @sudu[s+1] = @abc
  39.           @bcd = @guang[s]
  40.           @guang[s] = @guang[s+1]
  41.           @guang[s+1] = @bcd
  42.          end
  43.         end
  44.        end
  45.        for s in [email protected]
  46.          if @guang[@sudu.size-1-s] == index
  47.          else
  48.            $miao += 1
  49.            @target_battlers.push($game_party.smooth_target_actor(@guang[@sudu.size-1 - s]))
  50.          end
  51.          if $miao == $data_skills[@skill.id].kds_miao
  52.           break
  53.          end
  54.        end
  55.        end
  56.      end
  57. end
  58. def dr_dr
  59.      index = @active_battler.current_action.target_index
  60.        $miao = 1
  61.      if @active_battler.current_action.kind == 1
  62.         @skill = $data_skills[@active_battler.current_action.skill_id]
  63.        if $data_skills[@skill.id].kds_miao > 1
  64.        @sudu = []
  65.        @guang = []
  66.        for s in 0..$game_troop.enemies.size-1
  67.          if $game_troop.enemies[s].hp != 0 and @active_battler.current_action.kind == 1 and tg_xiuzheng2(s) == false
  68.           @sudu.push($game_troop.smooth_target_enemy(s).agi)
  69.           @guang.push(s)
  70.          end
  71.        end
  72.        for a in [email protected]
  73.         for s in [email protected]
  74.          if s < @sudu.size-1 and @sudu[s] < @sudu[s+1]
  75.          elsif s < @sudu.size-1 and @sudu[s] > @sudu[s+1]
  76.           @abc = @sudu[s]
  77.           @sudu[s] = @sudu[s+1]
  78.           @sudu[s+1] = @abc
  79.           @bcd = @guang[s]
  80.           @guang[s] = @guang[s+1]
  81.           @guang[s+1] = @bcd
  82.          end
  83.         end
  84.        end
  85.        for s in [email protected]
  86.          if @guang[@sudu.size-1-s] == index
  87.          else
  88.            $miao += 1
  89.            @target_battlers.push($game_troop.smooth_target_enemy(@guang[@sudu.size-1 - s]))
  90.          end
  91.          if $miao == $data_skills[@skill.id].kds_miao
  92.           break
  93.          end
  94.        end
  95.        end
  96.       end
  97. end
  98. def ac_dr
  99.      index = @active_battler.current_action.target_index
  100.      if @active_battler.current_action.kind == 1
  101.        @skill = $data_skills[@active_battler.current_action.skill_id]
  102.        $miao = 1
  103.        if $data_skills[@skill.id].kds_miao > 1
  104.        @sudu = []
  105.        @guang = []
  106.        for s in 0..$game_troop.enemies.size-1
  107.          if $game_troop.enemies[s].hp != 0
  108.           @sudu.push($game_troop.smooth_target_enemy(s).agi)
  109.           @guang.push(s)
  110.          end
  111.        end
  112.        for a in [email protected]
  113.         for s in [email protected]
  114.          if s < @sudu.size-1 and @sudu[s] < @sudu[s+1]
  115.          elsif s < @sudu.size-1 and @sudu[s] > @sudu[s+1]
  116.           @abc = @sudu[s]
  117.           @sudu[s] = @sudu[s+1]
  118.           @sudu[s+1] = @abc
  119.           @bcd = @guang[s]
  120.           @guang[s] = @guang[s+1]
  121.           @guang[s+1] = @bcd
  122.          end
  123.         end
  124.        end
  125.        for s in [email protected]
  126.          if @guang[@sudu.size-1-s] == index
  127.          else
  128.            $miao += 1
  129.            @target_battlers.push($game_troop.smooth_target_enemy(@guang[@sudu.size-1 - s]))
  130.          end
  131.          if $miao == $data_skills[@skill.id].kds_miao
  132.           break
  133.          end
  134.        end
  135.        end
  136.       end
  137. end
  138. def ac_ac
  139.      index = @active_battler.current_action.target_index
  140.      if @active_battler.current_action.kind == 1
  141.        @skill = $data_skills[@active_battler.current_action.skill_id]
  142.        $miao = 1
  143.        if $data_skills[@skill.id].kds_miao > 1
  144.        @sudu = []
  145.        @guang = []
  146.        for s in 0..$game_party.actors.size-1
  147.          if $game_party.actors[s].hp != 0 and @active_battler.current_action.kind == 1 and tg_xiuzheng(s) == false
  148.           @sudu.push($game_party.smooth_target_actor(s).agi)
  149.           @guang.push(s)
  150.          end
  151.        end
  152.        for a in [email protected]
  153.         for s in [email protected]
  154.          if s < @sudu.size-1 and @sudu[s] < @sudu[s+1]
  155.          elsif s < @sudu.size-1 and @sudu[s] > @sudu[s+1]
  156.           @abc = @sudu[s]
  157.           @sudu[s] = @sudu[s+1]
  158.           @sudu[s+1] = @abc
  159.           @bcd = @guang[s]
  160.           @guang[s] = @guang[s+1]
  161.           @guang[s+1] = @bcd
  162.          end
  163.         end
  164.        end
  165.        for s in [email protected]
  166.          if @guang[@sudu.size-1-s] == index
  167.          else
  168.            $miao += 1
  169.            @target_battlers.push($game_party.smooth_target_actor(@guang[@sudu.size-1 - s]))
  170.          end
  171.          if $miao == $data_skills[@skill.id].kds_miao
  172.           break
  173.          end
  174.        end
  175.      end
  176.    end
  177. end
  178. end
复制代码
回复

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
40 小时
注册时间
2012-2-11
帖子
49
4
 楼主| 发表于 2012-4-30 13:32:22 | 只看该作者
朋友是这样吗?不行啊,只给一个人加


‘‘──abcd1051915215于2012-5-1 11:19补充以下内容

用了上面的脚本不行啊
’’

点评

还是不行啊  发表于 2012-5-4 12:20
喔喔 貌似还需要干涉其他脚本。  发表于 2012-5-1 12:27
用你楼上那个脚本啊,“朋友”  发表于 2012-5-1 00:33
回复

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-5-16 00:20

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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