查看: 4195|回复: 1

[已经过期] 如何让逃跑几率为100%?

[复制链接]
梦石
0
星屑
50
在线时间
34 小时
注册时间
2017-3-25
回帖
31
发表于 2017-7-30 11:04:22 | 显示全部楼层 |阅读模式

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

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

×
如题,是改脚本rpg_managers的哪里?
梦石
0
星屑
16261
在线时间
4014 小时
注册时间
2015-9-14
回帖
1322

开拓者

发表于 2017-7-30 17:31:23 | 显示全部楼层
日本論壇:http://tm.lucky-duet.com/viewtopic.php?f=5&t=1308
(未測試)
  1. //=============================================================================
  2. // Escape100.js
  3. //=============================================================================
  4. /*:
  5. * @plugindesc 逃げる成功率を100%にする
  6. * @author みこと
  7. *
  8. * @param escapeSwitche
  9. * @desc 逃げる成功率を100%にするスイッチの番号
  10. * @default 10
  11. *
  12. * @help 指定のスイッチがONになっている間、戦闘コマンド『逃げる』を必ず成功させます。
  13. * ただしバトルの処理で『逃走可能』にチェックが入っていない場合は逃げられません。
  14. *
  15. * このプラグインには、プラグインコマンドはありません。
  16. */

  17. (function() {
  18.     var parameters = PluginManager.parameters('Escape100');
  19.     BattleManager.processEscape = function() {
  20.         $gameParty.performEscape();
  21.         SoundManager.playEscape();
  22.         var success = this._preemptive ? true : (Math.random() < this._escapeRatio);
  23.         if (success || $gameSwitches.value(parameters['escapeSwitche'])) {
  24.             this.displayEscapeSuccessMessage();
  25.             this._escaped = true;
  26.             this.processAbort();
  27.         } else {
  28.             this.displayEscapeFailureMessage();
  29.             this._escapeRatio += 0.1;
  30.             $gameParty.clearActions();
  31.             this.startTurn();
  32.         }
  33.         return success;
  34.     };
  35. })();
复制代码
https://rpg.blue/data/attachment/album/202003/28/021323lltgrsvfytfwuya5.gif
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部