You could try saving this as a .js file and importing it as a plugin:
JavaScript:
BattleManager.updateEvent = function() {
if (this.isActionForced()) {
this.processForcedAction();
return true;
} else {
return this.updateEventMain() || this.checkAbort();
}
};
This is an override for the default
BattleManager.updateEvent method without any battle phase checks (cf paragraph & spoiler below). Slight warning: this might cause undesired effects...I'm not entirely sure why events are restricted to run only in certain phases.
😅
Technical explanation: the flow of battle is directed by the
BattleManager, which only considers event updates in specific phases of battle, namely "start", "turn", and "turnEnd". Player input is considered during the "input" phase: what you're seeing is the event getting queued until the phase changes from "input" to "turn".
Supporting core script excerpts (rpg_managers.js) plus some comments:
Spoiler: Annotated BattleManager event flow
JavaScript:
BattleManager.update = function() {
if (!this.isBusy() && !this.updateEvent()) { // update event
switch (this._phase) {
case 'start':
this.startInput();
break;
case 'turn':
this.updateTurn();
break;
case 'action':
this.updateAction();
break;
case 'turnEnd':
this.updateTurnEnd();
break;
case 'battleEnd':
this.updateBattleEnd();
break;
}
}
};
BattleManager.updateEvent = function() {
switch (this._phase) { // only start, turn, turnEnd phases
case 'start':
case 'turn':
case 'turnEnd':
if (this.isActionForced()) {
this.processForcedAction();
return true;
} else {
return this.updateEventMain(); // main event update stuff here
}
}
return this.checkAbort();
};
BattleManager.updateEventMain = function() {
$gameTroop.updateInterpreter(); // update event interpreter
$gameParty.requestMotionRefresh();
if ($gameTroop.isEventRunning() || this.checkBattleEnd()) {
return true;
}
$gameTroop.setupBattleEvent();
if ($gameTroop.isEventRunning() || SceneManager.isSceneChanging()) {
return true;
}
return false;
};