one-winged-sinope/js/plugins/ParallelCommonCall.js
2026-02-06 16:16:37 -06:00

59 lines
2.1 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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.

/*=============================================================================
ParallelCommonCall.js
----------------------------------------------------------------------------
(C)2025 Triacontane
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
----------------------------------------------------------------------------
Version
1.0.0 2025/12/17 初版
----------------------------------------------------------------------------
[X] : https://x.com/triacontane/
[GitHub] : https://github.com/triacontane/
=============================================================================*/
/*:
* @plugindesc 並列コモン呼び出しプラグイン
* @target MZ
* @url https://github.com/triacontane/RPGMakerMV/tree/mz_master/ParallelCommonCall.js
* @base PluginCommonBase
* @orderAfter PluginCommonBase
* @author トリアコンタン
*
* @command CALL
* @text コモンイベント呼び出し
* @desc 指定したコモンイベントを並列処理として呼び出します。
*
* @arg id
* @text コモンイベントID
* @desc 呼び出す対象のコモンイベントIDです。
* @default 1
* @type common_event
*
* @help ParallelCommonCall.js
*
* コモンイベントを並列処理扱いで呼び出します。
* 実行中のイベントの実行を妨げることなく、同時に動作します。
* 
* このプラグインの利用にはベースプラグイン『PluginCommonBase.js』が必要です。
* 『PluginCommonBase.js』は、RPGツクールMZのインストールフォルダ配下の
* 以下のフォルダに格納されています。
* dlc/BasicResources/plugins/official
*
* 利用規約:
* 作者に無断で改変、再配布が可能で、利用形態商用、18禁利用等
* についても制限はありません。
* このプラグインはもうあなたのものです。
*/
(() => {
'use strict';
const script = document.currentScript;
PluginManagerEx.registerCommand(script, 'CALL', args => {
if ($gameParty.inBattle()) {
return;
}
$gameMap.setupDynamicCommon(args.id);
});
})();