I guess I need to put my code in a function inside the BattleManager, but I have no idea how to do that.
In a battle
In the BattleManager, when
Window_PartyCommand, Window_BattleCommand, Window_ActorCommand
are opened.
In a battle
In the BattleManager, when
Window_PartyCommand, Window_BattleCommand, Window_ActorCommand
are opened.
Code:
/*:
* @plugindesc When E key is pressed, turn atutobattle on.
*/
(function() { // IIFE for scope.
'use strict'; // Optional! Use strict-mode code evaluation within this IIFE.
Input.keyMapper[69] = 'E'; // extend keymapper
if (Input.isTriggered('E')) {
$gameParty.members()[0].addState(82);
$gameParty.members()[1].addState(82);
$gameParty.members()[2].addState(82);
$gameParty.members()[3].addState(82);
};
})();