Request: Remove Defeat Window in Battle

Hi everyone 😀  


I have a small plugin request to make! I would like a plugin to remove the defeat window during the battle. Instead, when your party dies, it stays there a bit and then fade to the next thing (which would be the gameover scene or other events)


In short:


- Defeat Window Removed


- (Optional) Wait 180 Frames before next action (gameover or events)


I hope I was clear enough on my request, I'm sorry I can't do something as simple as that by myself. If it appears after that it's more difficult, then I apologize because of my lack of understanding javascript 😛  


Good day and sorry for my english 😀  
Bump
Have you tried this?
@DreamX It's not exactly what I needed, but it'll come off handy in the future for sure 🙂


I'm sorry if I wasn't clear enough to begin with. The following screenshot is the window of it


Sans titre.png
In rpg_managers.js, there is this function:


BattleManager.processDefeat = function() {
    this.displayDefeatMessage();
    this.playDefeatMe();
    if (this._canLose) {
        this.replayBgmAndBgs();
    } else {
        AudioManager.stopBgm();
    }
    this.endBattle(2);
};


I changed it to this, commenting (//) out this.displayDefeatMessage();


BattleManager.processDefeat = function() {
    //this.displayDefeatMessage();
    this.playDefeatMe();
    if (this._canLose) {
        this.replayBgmAndBgs();
    } else {
        AudioManager.stopBgm();
    }
    this.endBattle(2);
};


This got rid of the message for me. I'm not testing on a vanilla game, though, but I imagine this should work anywhere.
@TheTitan99 Yes it worked in my project! Thank you!, but the thing is that he GameOver screen appears way too fast: I don't even have time to see how I died...


Any way to wait a certain number of frames before it appears?
Sure, think this'll work. I added this line, "this.actionWait(300);". Change the 300 to however many frames you wanna wait. I'm pretty sure this requires Yanfly's Battle Engine, though... Not 100% sure.


Like this:


BattleManager.processDefeat = function() {
    //this.displayDefeatMessage();
    this.playDefeatMe();
    this.actionWait(300);



    if (this._canLose) {
        this.replayBgmAndBgs();
    } else {
        AudioManager.stopBgm();
    }
    this.endBattle(2);
};
@TheTitan99 Thank you! It can be marked as solved now 😀  

Original thread: https://forums.rpgmakerweb.com/threads/request-remove-defeat-window-in-battle.66023/