Project1
标题:
技能
[打印本页]
作者:
abcd1051915215
时间:
2012-4-30 09:23
标题:
技能
请问如何用技能给俩个或俩个以上加血呢? 还有怎么给俩人或俩个以上加防御呢? 为什么默认只能给一个人或全队伍加呢? 怎么改麻烦朋友教下 dsu_plus_rewardpost_czw
作者:
冲啊小笼包
时间:
2012-4-30 10:22
可以参考游戏中群体回血技能来做。
冲啊小笼包
作者:
春风莉露
时间:
2012-4-30 10:57
喔喔
试试这个脚本!
使用方法:在技能后面加◆(表示秒几)
把此脚本插入到Main之前
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
复制代码
作者:
abcd1051915215
时间:
2012-4-30 13:32
2(IPWNG34{(SFGO}69_7W.jpg
(103.23 KB, 下载次数: 3)
下载附件
保存到相册
2012-4-30 13:31 上传
朋友是这样吗?不行啊,只给一个人加
‘‘──abcd1051915215于2012-5-1 11:19补充以下内容
用了上面的脚本不行啊
’’
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1