Project1

标题: 关于逃跑的问题 [打印本页]

作者: 往哪    时间: 2014-8-21 18:27
标题: 关于逃跑的问题
  1. #--------------------------------------------------------------------------
  2.   # ● 撤退时的处理
  3.   #--------------------------------------------------------------------------
  4.     def self.process_escape
  5.     $game_message.add(sprintf(Vocab::EscapeStart, $game_party.name))
  6.     success = @preemptive ? true : (rand < @escape_ratio)
  7.     Sound.play_escape
  8.     if success
  9.       process_abort
  10.     else
  11.       @escape_ratio += 0.1
  12.       $game_message.add('\.' + Vocab::EscapeFailure)
  13.       $game_party.clear_actions
  14.     end
  15.     wait_for_message
  16.     return success
  17.   end
复制代码
请问我应该怎么改逃跑的概率呢?
作者: taroxd    时间: 2014-8-21 18:42
在 @escape_ratio 赋值的地方。
具体是哪里我不清楚。我现在爪机环境,无法看到完整的代码
作者: 喵呜喵5    时间: 2014-8-21 19:09
BattleManager 81~86行
  1.   #--------------------------------------------------------------------------
  2.   # ● 生成撤退成功率
  3.   #--------------------------------------------------------------------------
  4.   def self.make_escape_ratio
  5.     @escape_ratio = 1.5 - 1.0 * $game_troop.agi / $game_party.agi
  6.   end
复制代码

作者: 往哪    时间: 2014-8-21 19:55
喵呜喵5 发表于 2014-8-21 19:09
BattleManager 81~86行

嗯。。谢谢~
作者: 往哪    时间: 2014-8-21 19:55
taroxd 发表于 2014-8-21 18:42
在 @escape_ratio 赋值的地方。
具体是哪里我不清楚。我现在爪机环境,无法看到完整的代码 ...

嗯。。谢谢~




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