Project1

标题: VA的反击问题 [打印本页]

作者: 负零    时间: 2013-3-18 18:04
标题: VA的反击问题
本帖最后由 负零 于 2013-3-19 09:44 编辑

VA反击的效果是:躲避并且回击敌人
我希望的效果则是:去掉躲避的效果,自己也承受伤害,之后再反击敌人
这个问题应该修改脚本的哪里?
作者: wangswz    时间: 2013-3-18 22:27
Scene_Battle 589行 这么改
  1.   #--------------------------------------------------------------------------
  2.   # ● 发动技能/物品
  3.   #--------------------------------------------------------------------------
  4.   def invoke_item(target, item)
  5.     if rand < target.item_cnt(@subject, item)
  6.       apply_item_effects(apply_substitute(target, item), item)
  7.       invoke_counter_attack(target, item) if !(target.state?(1))
  8.     elsif rand < target.item_mrf(@subject, item)
  9.       apply_item_effects(apply_substitute(target, item), item)
  10.       invoke_magic_reflection(target, item) if !(target.state?(1))
  11.     else
  12.       apply_item_effects(apply_substitute(target, item), item)
  13.     end
  14.     @subject.last_target_index = target.index
  15.   end
复制代码

作者: 负零    时间: 2013-3-19 09:43
此贴结楼,认可楼上。谢谢!




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1