blowjob-monster-amirin/www/js/plugins/TYA_SwitchControl.js
2026-05-01 00:29:49 -05:00

26 lines
No EOL
1.1 KiB
JavaScript
Raw 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.

/*:
* @plugindesc 全マップの全イベントのセルフスイッチを一括で操作します。
詳しい使い方はヘルプを参照してください。
* @author 茶の助
*
* @help プラグインコマンドにて下記の文字列を入力してください。
「TYA_SelfSwitchAll true/false有効か無効か A/B/C/Dセルフスイッチの種類
TYA_SelfSwitchAll true A → 全てのセルフスイッチAを有効にする。
TYA_SelfSwitchAll false B → 全てのセルフスイッチBを無効にする。
*/
(function () {
var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand;
Game_Interpreter.prototype.pluginCommand = function (command, args) {
_Game_Interpreter_pluginCommand.call(this, command, args);
if (command === 'TYA_SelfSwitchAll') {
for (var mi = 1; mi <= 1000; mi++) {
for (var ei = 1; ei <= 2500; ei++) {
$gameSelfSwitches.setValue([mi, ei, args[1]], eval(args[0]));
}
}
}
};
})();