49 lines
1.7 KiB
JavaScript
49 lines
1.7 KiB
JavaScript
/*
|
||
* --------------------------------------------------
|
||
* MNKR_PartyCommandSkip Ver.1.0.0
|
||
* Copyright (c) 2020 Munokura
|
||
* This software is released under the MIT license.
|
||
* http://opensource.org/licenses/mit-license.php
|
||
* --------------------------------------------------
|
||
*/
|
||
|
||
/*:ja
|
||
* @target MV
|
||
* @url https://raw.githubusercontent.com/munokura/MNKR-MV-plugins/master/MNKR_PartyCommandSkip.js
|
||
* @plugindesc 戦闘開始時にパーティコマンドを飛ばし、アクターコマンドから開始します。
|
||
* @author munokura
|
||
*
|
||
* @help
|
||
* 戦闘開始時にパーティコマンドを飛ばします。
|
||
* 先頭のアクターでキャンセルすると、パーティコマンドに戻ります。
|
||
*
|
||
* パーティコマンドウィンドウでキャンセルすると、戦うを選んだ状態になります。
|
||
*
|
||
* プラグインコマンドはありません。
|
||
*
|
||
*
|
||
* 利用規約:
|
||
* MITライセンスです。
|
||
* https://ja.osdn.net/projects/opensource/wiki/licenses%2FMIT_license
|
||
* 作者に無断で改変、再配布が可能で、
|
||
* 利用形態(商用、18禁利用等)についても制限はありません。
|
||
*/
|
||
|
||
(function () {
|
||
"use strict";
|
||
|
||
const _Scene_Battle_prototype_startPartyCommandSelection =
|
||
Scene_Battle.prototype.startPartyCommandSelection;
|
||
Scene_Battle.prototype.startPartyCommandSelection = function () {
|
||
this.selectNextCommand();
|
||
};
|
||
|
||
Scene_Battle.prototype.selectPreviousCommand = function () {
|
||
BattleManager.selectPreviousCommand();
|
||
if (BattleManager.isInputting() && BattleManager.actor()) {
|
||
this.startActorCommandSelection();
|
||
} else {
|
||
_Scene_Battle_prototype_startPartyCommandSelection.call(this);
|
||
}
|
||
};
|
||
})();
|