赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 925 |
最后登录 | 2014-1-4 |
在线时间 | 2 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 2 小时
- 注册时间
- 2006-11-12
- 帖子
- 380
|
- -地球村有个脚本。。连环动画。。。。下面是脚本。。应该可以达到LZ要的效果。下面是脚本
- #==============================================================================
- # 本脚本来自www.66rpg.com,转载与使用请保留此内容。
- #==============================================================================
- # 连环动画 Ver.2.1.0 by Claimh
- #------------------------------------------------------------------------------
- # http://www.k3.dion.ne.jp/~claimh/
- #==============================================================================
- class Scene_Battle
- S_COMB = []
- #==============================================================================
- # 自定义内容开始
- #==============================================================================
- # 连环动画属性编号。也就是说,所有需要使用连环动画的特技添加上20号属性
- COMBO_ID = 20
- # 连环动画设置方法:
- # S_COMB[n] = [特技编号, [动画ID1,动画ID2,动画ID3...]]
- S_COMB[0] = [57, [27, 31, 25]] #——57号特技追加27、31、25这3个动画连环播放
- #——也就是十字斩动画追加
- S_COMB[1] = [61, [53]] #——61号特技追加,也就是扫荡特技的动画追加
- S_COMB[2] = [7, [28]] #——7号特技追加,也就是火焰特技的动画追加
- #==============================================================================
- # 自定义内容结束
- #==============================================================================
- #--------------------------------------------------------------------------
- #--------------------------------------------------------------------------
- alias make_skill_action_result_combo make_skill_action_result
- def make_skill_action_result
- make_skill_action_result_combo # 尨宍
- @combo = false
- if @skill.element_set.include?(COMBO_ID)
- for i in 0...S_COMB.size
- combo = S_COMB[i]
- if @skill.id == combo[0]
- @combo = true
- @anime_counter = 0
- @anime = combo[1]
- @combo_counter = @anime.size
- return
- end
- end
- end
- end
- #--------------------------------------------------------------------------
- #--------------------------------------------------------------------------
- alias update_phase4_step4_n_combo update_phase4_step4
- def update_phase4_step4
- if @combo
- for target in @target_battlers
- target.animation_id = @animation2_id
- target.animation_hit = (target.damage != "Miss")
- end
- @animation2_id = @anime[@anime_counter]
- @anime_counter += 1
- if @anime_counter > @combo_counter
- @combo = false
- @wait_count = 8
- @phase4_step = 5
- end
- else
- update_phase4_step4_n_combo
- end
- end
- end
复制代码 系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~ |
|