Hello,
Couldn't find the answer, but is there a way to detect / do something at the very end of the battle when the party is typically cheering (right before it cuts to the battle summary)? So far I've only seen things that kick in after and you've already left the battle screen. Thanks!
What you want to do? The base code does all this inside single method:
BattleManager.processVictory = function() {
$gameParty.removeBattleStates();
$gameParty.performVictory();
this.playVictoryMe();
this.replayBgmAndBgs();
this.makeRewards();
this.displayVictoryMessage();
this.displayRewards();
this.gainRewards();
this.endBattle(0);
};
You can just add something there, but if you want waits to happen, you need to code it differently.
I guess you can also try to use HIME end phase triggers plugin and check when all the enemies are dead, then in that troop event make the battlers perform the victory motion and play the ME and then do your custom stuff. Then it goes to processVictory only after that troop event.
EDIT: So you can comment out the victory motion and ME from the processVictory
if you don't want to go into scripting, the way to handle this is tricking the battle engine with an invisible immortal state.
you'll need one troop event on turn 0 to apply that immortal state to all enemies.
then one troop event per enemy conditioned on HP=0 that will count the death and remove the immortal state. And check if the death number is high enough to be battleend or something else, doing whatever you want if the conditions are fulfilled.