Project1
标题:
怎么做出技能连击
[打印本页]
作者:
没有马甲
时间:
2010-11-7 07:42
提示:
作者被禁止或删除 内容自动屏蔽
作者:
白宇七
时间:
2010-11-7 07:53
像梦群连击那样,有连击脚本
作者:
jklpgh
时间:
2010-11-7 09:05
class Skill
def name
name = @name.split(/,/)[0]
return name != nil ? name : ""
end
def hit_count
name = @name.split(/,/)[1]
return name != nil ? name.to_i.abs : 0
end
end
#class Sprite < ::Sprite
# def effect?
# @_whiten_duration > 0 or
# @_appear_duration > 0 or
# @_escape_duration > 0 or
# @_animation_duration > 0
#end
#def damage_effect?
# @_damage_duration > 0 or
# @_collapse_duration > 0
#end
#end
end
class Spriteset_Battle
def damage_effect?
for sprite in @enemy_sprites + @actor_sprites
return true if sprite.damage_effect?
end
return false
end
end
class Scene_Battle
alias sailcat_update_phase4_step1 update_phase4_step1
alias sailcat_make_skill_action_result make_skill_action_result
alias sailcat_update_phase4_step5 update_phase4_step5
def update_phase4_step1
@hit_count = 0
sailcat_update_phase4_step1
end
def make_skill_action_result
sailcat_make_skill_action_result
@hit_count = @skill.hit_count
end
def update_phase4_step5
sailcat_update_phase4_step5
if @hit_count > 0
for target in @target_battlers.clone
if target.dead?
if @target_battlers.size > 1
@target_battlers.delete(target)
else
@target_battlers.delete(target)
if target.is_a?(Game_Enemy)
target = $game_troop.smooth_target_enemy(target.index)
else
target = $game_party.smooth_target_actor(target.index)
end
if target.is_a?(Game_Battler)
@target_battlers.push(target)
end
end
end
end
if @target_battlers.size == 0
return
end
for target in @target_battlers
if target.damage != nil
@phase4_step = 5
return
end
target.skill_effect(@active_battler, @skill)
end
# 如果你应用了23种战斗特效的公共事件版脚本请去掉下面几行的注释
# if @common_event_id > 0
# common_event = $data_common_events[@common_event_id]
# $game_system.battle_interpreter.setup(common_event.list, 0)
# end
@hit_count -= 1
@phase4_step = 3
end
end
end
复制代码
在技能后面用“,数字”表示要连击的数
作者:
kukurui00
时间:
2010-11-7 09:29
用事件 强制行动
作者:
azdet54639
时间:
2010-11-7 10:13
或者可以用RTAB1.16在动画库里面设置(X,100,0,0)的闪烁来实现连击
缺点是脚本冲突太多
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1