princess-knight/js/plugins/FastMZ.js
2024-10-03 10:37:04 -05:00

95 lines
No EOL
3.9 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//=============================================================================
// RPG Maker MZ - FastMZ
//=============================================================================
//=============================================================================
// FastMZ.js
// ----------------------------------------------------------------------------
// (C)2021 unaunagi
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
// ----------------------------------------------------------------------------
// Version
// 1.0.0 2021/01/28 初版
// 1.1.0 2021/01/31 もっと速くした
// 1.2.0 2021/02/02 もうちょっとだけ速くして、英語用アノテーションの修正
// 1.3.0 2021/02/05 イベントスクリプトから、thisでGame_Interpreterにアクセス出来るようにした
// ----------------------------------------------------------------------------
// [Twitter]: https://twitter.com/unaunagi1/
// [GitHub] : https://github.com/unaunagi/
//=============================================================================
/*:
* @plugindesc FastMZ
* @target MZ
* @author unaunagi
* @url https://github.com/unaunagi/FastMZ
* @base Fs
* @orderAfter Fs
*
* @command set
* @text FastMZ Setting
* @desc Toggles between enabled and disabled. Enabled by default.
*
* @arg fasteval
* @type boolean
* @text Eval to new Function
*
* @arg fastskip
* @type boolean
* @text IF,While,Jump...
*
* @help This plugin will speed up your game!
*
* Required plug-ins
* Fs.js
* https://github.com/f-space/rmmz-plugins
*
* // (C)2021 unaunagi
* This software is released under the MIT License.
* http://opensource.org/licenses/mit-license.php
*/
/*:ja
* @plugindesc FastMZ RPGツクールMZ高速化プラグイン
* @target MZ
* @author うなうなぎ
* @url https://github.com/unaunagi/FastMZ
* @base Fs
* @orderAfter Fs
*
* @command set
* @text FastMZによる高速化の設定
* @desc 各機能を有効にするか無効にするかゲーム中から設定ができますデフォルトだと有効です
*
* @arg fasteval
* @type boolean
* @text スクリプトイベントの高速化
* @desc イベントコマンドスクリプト移動ルートの設定のスクリプトを高速化します
*
* @arg fastskip
* @type boolean
* @text 条件分岐ラベルジャンプ等の高速化
* @desc フロー制御関係の処理を高速化しますコマンド数の多いイベントループ回数が多い場合に効果を発揮
*
* @help RPGツクールMZ製ゲームを高速化するプラグインです
*
* イベント処理やスクリプト処理を書き換えることでだいたい2倍数倍の高速化が見込めます
* 特にイベントコマンドをたくさん使ったりループ回数が多い場合には効いてきます
* ただしGame_Interpreterの中身を書き換えるプラグインとは競合する可能性があります
*
* プラグインコマンドで昨日のONがOFFできます
* ただしOFFの状態でも一部の処理が入っちゃうので素の状態よりちょっと遅くなります
* 全く使わないという場合はプラグイン自体を無効にしてください
*
* 前提プラグインとして f-space さんの Fs.jsが必要です
* FastMZ.jsより上になるようにしてください
* MZ用 基本機能ライブラリ Fs β版 | ツクールフォーラム
* https://forum.tkool.jp/index.php?threads/4276/
*
* 利用規約
* (C)2021 unaunagi
* This software is released under the MIT License.
* http://opensource.org/licenses/mit-license.php
*
* MITライセンスということ以外に制限はありません
* 商用利用や18禁作品での使用についても当然問題ありません