MV help with auto run victory rewards

I'm trying to find a way to make the after battle victory screen run automatically (as in it'll show the rewards for like a second then move on without waiting for a player input)

Normally after a battle it'll show your rewards then stay there waiting for the player to click to advance it.

I found I can simply take out the display rewards part of the function here to skip them but that's not what I want, I simply want it to show the rewards, then move on without the player having to click anything. I've never done anything with programing or javascript is there something I can just add real fast to these to make it go on it's own.
1734117665074.png
Its a feature of the BattleManger's update loop to not process anything if a message box is being displayed.
easiest way is probably adding a little bit to processVictory() to close the message box after some timer
Code:
BattleManager.processVictory = function() {
    $gameParty.removeBattleStates();
    $gameParty.performVictory();
    this.playVictoryMe();
    this.replayBgmAndBgs();
    this.makeRewards();
    this.displayVictoryMessage();
    this.displayRewards();
    this.gainRewards();
    this.endBattle(0);
    
    setTimeout(function(){
        SceneManager._scene._messageWindow.terminateMessage()
    }, 5000);
};
Its a feature of the BattleManger's update loop to not process anything if a message box is being displayed.
easiest way is probably adding a little bit to processVictory() to close the message box after some timer
Code:
BattleManager.processVictory = function() {
    $gameParty.removeBattleStates();
    $gameParty.performVictory();
    this.playVictoryMe();
    this.replayBgmAndBgs();
    this.makeRewards();
    this.displayVictoryMessage();
    this.displayRewards();
    this.gainRewards();
    this.endBattle(0);
   
    setTimeout(function(){
        SceneManager._scene._messageWindow.terminateMessage()
    }, 5000);
};
this works perfectly, big thanks 👍👍

Original thread: https://forums.rpgmakerweb.com/threads/help-with-auto-run-victory-rewards.173891/