赞 | 2 |
VIP | 335 |
好人卡 | 3 |
积分 | 1 |
经验 | 14077 |
最后登录 | 2020-1-28 |
在线时间 | 264 小时 |
Lv1.梦旅人 冰
- 梦石
- 0
- 星屑
- 142
- 在线时间
- 264 小时
- 注册时间
- 2006-11-22
- 帖子
- 1057
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
4: 敵単体 ランダム
5: 敵二体 ランダム
6: 敵三体 ランダム
这3个,附送 全场,敌全体+随机我方单体 效果
先加入 19-23号属性
在Scene_Battle4 make_skill_action_result # 设定对像方战斗者 下
- set_target_battlers(@skill.scope)
复制代码 更改成
- if @skill.element_set.include?(19)
- set_target_battlers(8)
- elsif @skill.element_set.include?(20)
- set_target_battlers(9)
- elsif @skill.element_set.include?(21)
- set_target_battlers(10)
- elsif @skill.element_set.include?(22)
- set_target_battlers(11)
- elsif @skill.element_set.include?(23)
- set_target_battlers(12)
- else
- set_target_battlers(@skill.scope)
- end
复制代码
在 set_target_battlers(scope) 下
敌人的
- when 7 # 使用者
- @target_battlers.push(@active_battler)
复制代码
下加上
- when 8 # 全场
- for actor in $game_party.actors
- if actor.exist?
- @target_battlers.push(actor)
- end
- end
- for enemy in $game_troop.enemies
- if enemy.exist?
- @target_battlers.push(enemy)
- end
- end
- when 9 # 敌全体+随机我方单体
- for actor in $game_party.actors
- if actor.exist?
- @target_battlers.push(actor)
- end
- end
- number = rand(20)
- if number > 17
- index = rand($game_troop.enemies.size)
- @target_battlers.push($game_troop.smooth_target_enemy(index))
- end
- when 10 # 敌单体随机
- index = rand($game_party.actors.size)
- @target_battlers.push($game_party.smooth_target_actor(index))
- when 11 # 敌2体随机
- lastindex = nil
- 2.times do
- index = rand($game_party.actors.size) while lastindex == index
- @target_battlers.push($game_party.smooth_target_actor(index))
- lastindex = index
- end
- when 12 # 敌3体随机
- lastindex = nil
- 3.times do
- index = rand($game_party.actors.size) while lastindex == index
- @target_battlers.push($game_party.smooth_target_actor(index))
- lastindex = index
- end
复制代码
己方的则加上
- when 8 # 全场
- for actor in $game_party.actors
- if actor.exist?
- @target_battlers.push(actor)
- end
- end
- for enemy in $game_troop.enemies
- if enemy.exist?
- @target_battlers.push(enemy)
- end
- end
- when 9 # 敌全体+随机我方单体
- for enemy in $game_troop.enemies
- if enemy.exist?
- @target_battlers.push(enemy)
- end
- end
- number = rand(20)
- if number > 17
- index = rand($game_party.actors.size)
- @target_battlers.push($game_party.smooth_target_actor(index))
- end
- when 10 # 敌单体随机
- index = rand($game_troop.enemies.size)
- @target_battlers.push($game_troop.smooth_target_enemy(index))
- when 11 # 敌2体随机
- lastindex = nil
- 2.times do
- index = rand($game_troop.enemies.size) while lastindex == index
- @target_battlers.push($game_troop.smooth_target_enemy(index))
- lastindex = index
- end
- when 12 # 敌3体随机
- lastindex = nil
- 3.times do
- index = rand($game_troop.enemies.size) while lastindex == index
- @target_battlers.push($game_troop.smooth_target_enemy(index))
- lastindex = index
- end
复制代码
最后为要用这些scope的技能加上相应的属性
|
|