this should work in theory shouldnt it? but its not . can someone help? im trying to run a common event before the battle defeat message.
Code:
BattleManager.displayDefeatMessage = function() {
$gameTemp.reserveCommonEvent(444);
//$gameMessage.add(TextManager.defeat.format($gameParty.name()));
};
BattleManager.processDefeat = function() {
this.displayDefeatMessage();
this.playDefeatMe();
if (this._canLose) {
this.replayBgmAndBgs();
} else {
AudioManager.stopBgm();
}
this.endBattle(2);
};