| 赞 | 24 |
| VIP | |
| 好人卡 | |
| 积分 | 62 |
| 经验 | |
| 最后登录 | 2023-9-6 |
| 在线时间 | 3077 小时 |
聪仔
- 梦石
- 0
- 星屑
- 6187
- 在线时间
- 3077 小时
- 注册时间
- 2013-12-26
- 回帖
- 3076
|
发表于 2014-3-12 20:51:02
|
显示全部楼层
- #--------------------------------------------------------------------------
- # ● 逃跑处理
- #--------------------------------------------------------------------------
- def process_escape
- @info_viewport.visible = false
- @message_window.visible = true
- text = sprintf(Vocab::EscapeStart, $game_party.name)
- $game_message.texts.push(text)
- if $game_troop.preemptive
- success = true
- else
- success = (rand(100) < @escape_ratio)
- # 加下面一句就行了
- success = (rand(100) < 80) if $game_party.members.include?($game_actors[1])
- end
- Sound.play_escape
- if success
- wait_for_message
- battle_end(1)
- else
- @escape_ratio += 10
- $game_message.texts.push('\.' + Vocab::EscapeFailure)
- wait_for_message
- $game_party.clear_actions
- start_main
- end
- end
复制代码 |
评分
-
查看全部评分
|