ultimate-angel-zerachiel/www/js/plugins/111_PartyCommandSkip.js
2024-01-17 11:38:37 -06:00

40 lines
1.2 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.

//=============================================================================
// PartyCommandSkip.js
//=============================================================================
/*:
* @plugindesc 戦闘の戦う・逃げるを飛ばして戦闘へ
* @author
*
* @desc 戦闘の戦う・逃げるを飛ばして戦闘へ
*
* @param SwitchNumber
* @default 111
*
* @help
* Parametersの番号のスイッチがONだった時、
* 戦闘に入る時の「戦う・逃げる」メニューを飛ばして
* そのまま戦闘へ。
*
*/
(function () {
var parameters = PluginManager.parameters("111_PartyCommandSkip");
var swicth_number = String(parameters["SwitchNumber"] || "111");
swicth_number = +swicth_number;
Scene_Battle.prototype.changeInputWindow = function () {
if (BattleManager.isInputting()) {
if ($gameSwitches.value(swicth_number)) {
// 戦う・逃げるの決定飛ばす
BattleManager._actorIndex = 0;
this.startActorCommandSelection();
} else if (BattleManager.actor()) {
this.startActorCommandSelection();
} else {
this.startPartyCommandSelection();
}
} else {
this.endCommandSelection();
}
};
})();