Project1

标题: 如何制作提高闪避率/暴击率/连击率? [打印本页]

作者: 77777741    时间: 2011-8-17 14:16
提示: 作者被禁止或删除 内容自动屏蔽
作者: xiezhen6805    时间: 2011-8-17 15:44
其他的不会,会心率那个,在game_battle3的57行
  1. # 会心一击修正
  2.         if rand(100) < 4 * attacker.dex / self.agi
  3.           self.damage *= 2
  4.           self.critical = true
  5.         end
复制代码
改成
  1. # 会心一击修正
  2. if attacker.state?(17)        
  3. if rand(100) < 4 * attacker.dex / self.agi + 10
  4.           self.damage *= 2
  5.           self.critical = true
  6. else
  7. if rand(100) < 4 * attacker.dex / self.agi
  8.           self.damage *= 2
  9.           self.critical = true
  10.         end
复制代码
就是处于17号状态时会心率提高10%。。
作者: plummy    时间: 2011-8-17 16:53
灵巧决定暴击
作者: 钢铁列兵    时间: 2011-8-18 10:08
不知你玩过本站的魔力宝贝没有?
里面的那个战斗特技效果就可以轻松地通过设置属性并在武器和特技处选取实现
作者: 16386301    时间: 2011-8-18 10:53
我有点不懂,但应该是把脚本改动吧




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