/*============================================================================= DisableFastForward.js ---------------------------------------------------------------------------- (C)2024 Triacontane This software is released under the MIT License. http://opensource.org/licenses/mit-license.php ---------------------------------------------------------------------------- Version 1.0.1 2025/08/03 禁止スイッチを指定しなかった場合、イベント高速化禁止が常に無効になる問題を修正 1.0.0 2024/12/16 初版 ---------------------------------------------------------------------------- [Blog] : https://triacontane.blogspot.jp/ [Twitter]: https://twitter.com/triacontane/ [GitHub] : https://github.com/triacontane/ =============================================================================*/ /*: @target MZ @url https://github.com/triacontane/RPGMakerMV/tree/mz_master/DisableFastForward.js @plugindesc Event acceleration prohibition plugin @author Triacontane @license MIT License @help English Help Translator: munokura This is an unofficial English translation of the plugin help, created to support global RPG Maker users. Feedback is welcome to improve translation quality (see: https://github.com/munokura/triacontane-MZ-plugins ). Original plugin by Triacontane. Please check the latest official version at: https://triacontane.blogspot.com ----- DisableFastForward.js This disables the feature that doubles the game speed by holding down the Confirm button during an event. This does not disable the message fast-forward feature by holding down the Confirm button. This plugin requires the base plugin "PluginCommonBase.js." "PluginCommonBase.js" is located in the following folder under the RPG Maker MZ installation folder: dlc/BasicResources/plugins/official Terms of Use: You may modify and redistribute this plugin without permission, and there are no restrictions on its use (commercial, R18+, etc.). This plugin is now yours. @param disableSwitchId @text Prohibited Switch ID @desc Disables event acceleration when the specified switch is ON. Specifying 0 disables it at all times. @type switch @default 0 */ /*:ja @plugindesc イベント高速化禁止プラグイン @target MZ @url https://github.com/triacontane/RPGMakerMV/tree/mz_master/DisableFastForward.js @base PluginCommonBase @orderAfter PluginCommonBase @author トリアコンタン @param disableSwitchId @text 禁止スイッチID @desc 指定したスイッチがONのときイベントの高速化を禁止します。0を指定すると常に禁止されます。 @default 0 @type switch @help DisableFastForward.js イベント中に決定ボタンを押し続けることでゲームスピードを2倍速にする機能を 無効にできます。 同じ決定ボタン押し続けによるメッセージ早送り機能は無効になりません。 このプラグインの利用にはベースプラグイン『PluginCommonBase.js』が必要です。 『PluginCommonBase.js』は、RPGツクールMZのインストールフォルダ配下の 以下のフォルダに格納されています。 dlc/BasicResources/plugins/official 利用規約: 作者に無断で改変、再配布が可能で、利用形態(商用、18禁利用等) についても制限はありません。 このプラグインはもうあなたのものです。 */ (() => { 'use strict'; const script = document.currentScript; const param = PluginManagerEx.createParameter(script); const _Scene_Map_isFastForward = Scene_Map.prototype.isFastForward; Scene_Map.prototype.isFastForward = function() { return _Scene_Map_isFastForward.apply(this, arguments) && !this.isDisableFastForward(); }; Scene_Map.prototype.isDisableFastForward = function() { return !param.disableSwitchId || $gameSwitches.value(param.disableSwitchId); }; })();