MV [Help] Common event on PArty Death

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);
};
the command you're using is RESERVE common event, not call common event.
the difference is that the common event is only reserved to be executed at the next possible moment - and that moment no longer exists because the game ends before the next common event is handled.

unfortunately there is no command to directly call a common event, so that way will never work.

please check the plugin lists, I know that there are several plugins for common event on Game Over - you can either use them, or check them for how they handle things correctly.

Original thread: https://forums.rpgmakerweb.com/threads/help-common-event-on-party-death.148838/