幻想森林

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 2025|回复: 5

[RM2K&2K3] 为什么我用了横版战斗的相关脚本修改方法后,角色在挨打

[复制链接]

6

主题

19

帖子

211

积分

③业余

积分
211
发表于 2007-3-16 11:00:57 | 显示全部楼层 |阅读模式
如题。同上。角色挨打后,一直是在播放挨打的动画
死的时候也是,防玉的时候也是,我修改
改的是:Scene_Battle 4中的:
#--------------------------------------------------------------------------
# ● 刷新画面 (主回合步骤 4 : 对像方动画) ★
#--------------------------------------------------------------------------
def update_phase4_step4
   # 对像方动画
   for target in @target_battlers
     target.animation_id = @animation2_id
     target.animation_hit = (target.damage != "Miss")
     if target.is_a?(Game_Actor)
       target.battler_name = target.battler_name.split(/★/)[0]
       if (target.current_action.kind == 0 and target.current_action.basic == 1) or target.damage == "Miss" or target.damage.to_i <= 0
         target.battler_name = target.battler_name + "★3"
       else
         target.battler_name = target.battler_name + "★4"
       end
     end
   end
   # 限制动画长度、最低 8 帧
   @wait_count = 8
   # 移至步骤 5
   @phase4_step = 5
end
#--------------------------------------------------------------------------
# ● 刷新画面 (主回合步骤 5 : 显示伤害)
#--------------------------------------------------------------------------
def update_phase4_step5
   # 隐藏帮助窗口
   @help_window.visible = false
   # 刷新状态窗口
   @status_window.refresh
   # 显示伤害
   for target in @target_battlers
     if target.damage != nil
       target.damage_pop = true
     end
     if target.is_a?(Game_Actor)
       target.battler_name = target.battler_name.split(/★/)[0]
       if target.hp < target.maxhp/2
         target.battler_name = target.battler_name + "★5"
       end
     end
   end
   # 移至步骤 6
   @phase4_step = 6
end
人家做的范例还都好好的,我把脚本原样拷过来还是那样,角色挨打后,一直是在播放挨打的动画
死的时候也是,防玉的时候也是,真是不知在那儿改回来?
回复

使用道具 举报

好人卡的 该用户已被删除
发表于 2007-3-16 13:12:29 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

6

主题

19

帖子

211

积分

③业余

积分
211
 楼主| 发表于 2007-3-16 21:55:05 | 显示全部楼层
好人卡的神话大姐,这个区只有你一个人在支撑啊,真是太  苦了 [s:8]
回复 支持 反对

使用道具 举报

134

主题

2120

帖子

214748万

积分

⑥精研

ご覧の通り 、僕は妄

积分
2147483647
QQ
发表于 2007-3-16 22:03:59 | 显示全部楼层
辛苦了,好人卡大姐,其实我很想说说话,只是我不懂脚本~~~~~~~
回复 支持 反对

使用道具 举报

38

主题

3468

帖子

1

积分

超级版主

传说中的Bunny火神~!

Rank: 8Rank: 8

积分
1
发表于 2007-3-17 00:04:15 | 显示全部楼层
引用第2楼zhangyulin2007-03-16 21:55发表的:
好人卡的神话大姐,这个区只有你一个人在支撑啊,真是太  苦了 [s:8]

不只一个,只是出现时间不同。

PS:停止跑题……
我突然发现,我是一个很幸运的好人。老婆真好~ 点我进入JQ(激情)教程范例收集!
回复 支持 反对

使用道具 举报

6

主题

19

帖子

211

积分

③业余

积分
211
 楼主| 发表于 2007-3-17 08:30:25 | 显示全部楼层
呵呵,我知道怎么回事了,我昨天把所有和处理战斗伤害有关的内容都查了一下,发现在下面我用了一个公共事件特效脚本中的关于伤害处理的内容搞的,现已正常。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|幻想森林

GMT+8, 2025-6-24 12:45 , Processed in 0.011625 second(s), 21 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表