赞 | 0 |
VIP | 157 |
好人卡 | 6 |
积分 | 1 |
经验 | 113829 |
最后登录 | 2014-1-16 |
在线时间 | 26 小时 |
Lv1.梦旅人 B
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 26 小时
- 注册时间
- 2007-8-26
- 帖子
- 3693
|
本帖最后由 ONEWateR 于 2009-7-8 09:56 编辑
ps1:以下脚本时在SailCat前辈的单技能连击的基础上修改而来的。
ps2:楼主请耐心等待,切勿连帖。
若被凌辰见到的话………
说明:在46行中修改 追击技能 的技能ID- 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
- 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_update_phase4_step5 update_phase4_step5
- def update_phase4_step1
- @hit_count = 0
- sailcat_update_phase4_step1
- end
- def make_skill_action_result
- @skill = $data_skills[@active_battler.current_action.skill_id]
- unless @active_battler.current_action.forcing
- unless @active_battler.skill_can_use?(@skill.id)
- $game_temp.forcing_battler = nil
- @phase4_step = 1
- return
- end
- end
- @active_battler.sp -= @skill.sp_cost
- @status_window.refresh
- @help_window.set_text(@skill.name, 1)
- @animation1_id = @skill.animation1_id
- @animation2_id = @skill.animation2_id
- @common_event_id = @skill.common_event_id
- set_target_battlers(@skill.scope)
- for target in @target_battlers
- target.skill_effect(@active_battler, @skill)
- if @skill.id == 1 and target.dead? #and !@zhuji
- @hit_count = 1
- end
- end
- 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 = 4
- end
- end
- end
复制代码 |
|