查看: 2612|回复: 2

[已经解决] VA关于群体技能的伤害显示问题

[复制链接]
梦石
0
星屑
59
在线时间
74 小时
注册时间
2009-11-21
回帖
1
发表于 2014-5-1 15:50:18 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
各位大大好,本人是新手.
用的是默认战斗系统
想问下使用群体技能时敌人是一个一个受到伤害然后再死亡的.
请问能改成被全体技能攻击到的敌人同时显示伤害然后同时死亡的效果吗?
谢谢

…あたしは天

梦石
0
星屑
2308
在线时间
4033 小时
注册时间
2010-10-4
回帖
10548

开拓者贵宾

发表于 2014-5-1 17:12:46 | 显示全部楼层
本帖最后由 taroxd 于 2014-5-1 17:18 编辑

未经仔细测试,很可能有奇怪的bug

[pre lang="ruby" line="1"]
class Scene_Battle < Scene_Base
  #--------------------------------------------------------------------------
  # ● 使用技能/物品
  #--------------------------------------------------------------------------
  def use_item
    item = @subject.current_action.item
    @log_window.display_use_item(@subject, item)
    @subject.use_item(item)
    refresh_status
    targets = @subject.current_action.make_targets.compact
    show_animation(targets, item.animation_id)
    return unless (last_target = targets.pop)
    @log_window.method_wait = @log_window.method_wait_for_effect = nil
    targets.each {|target| item.repeats.times { invoke_item(target, item) } }
    @log_window.method_wait = method(:wait)
    @log_window.method_wait_for_effect = method(:wait_for_effect)
    item.repeats.times { invoke_item(last_target, item) }
  end
end

class Window_BattleLog < Window_Selectable
  #--------------------------------------------------------------------------
  # ● 显示行动结果
  #--------------------------------------------------------------------------
  def display_action_results(target, item)
    if target.result.used
      last_line_number = line_number
      display_critical(target, item)
      display_damage(target, item)
      display_affected_status(target, item)
      display_failure(target, item)
      wait if line_number > last_line_number
    end
  end
end
[/pre]

点评

确实有奇怪的bug  发表于 2014-8-3 11:01

评分

参与人数 1梦石 +1 收起 理由
VIPArcher + 1 补发,这样可以吧?

查看全部评分

回复

使用道具 举报

梦石
0
星屑
59
在线时间
74 小时
注册时间
2009-11-21
回帖
1
 楼主| 发表于 2014-5-1 17:47:58 | 显示全部楼层
taroxd 发表于 2014-5-1 17:12
未经仔细测试,很可能有奇怪的bug

十分感谢
话说为什么我这边攻击怪物和被怪物攻击都不掉血了呢..
用技能也不耗费mp了

点评

还有问题麻烦上工程  发表于 2014-5-1 17:59
你的问题我没有重现  发表于 2014-5-1 17:56
等会我看看=。= 果然有bug  发表于 2014-5-1 17:51
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部