Request: Remove Defeat Window in Battle

Status
Not open for further replies.

Lnik3500

Master Troll
Veteran
Joined
Feb 26, 2015
Messages
307
Reaction score
48
First Language
French
Primarily Uses
RMMV
Hi everyone :D  


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 :p  


Good day and sorry for my english :D  
 

Lnik3500

Master Troll
Veteran
Joined
Feb 26, 2015
Messages
307
Reaction score
48
First Language
French
Primarily Uses
RMMV

DreamX

Veteran
Veteran
Joined
May 30, 2015
Messages
816
Reaction score
826
First Language
English
Primarily Uses
Have you tried this?
 

Lnik3500

Master Troll
Veteran
Joined
Feb 26, 2015
Messages
307
Reaction score
48
First Language
French
Primarily Uses
RMMV
@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
 

TheTitan99

Veteran
Veteran
Joined
Nov 2, 2015
Messages
190
Reaction score
87
First Language
English
Primarily Uses
RMMV
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.
 

Lnik3500

Master Troll
Veteran
Joined
Feb 26, 2015
Messages
307
Reaction score
48
First Language
French
Primarily Uses
RMMV
@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?
 

TheTitan99

Veteran
Veteran
Joined
Nov 2, 2015
Messages
190
Reaction score
87
First Language
English
Primarily Uses
RMMV
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);
};
 
Last edited by a moderator:
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,047
Messages
1,018,540
Members
137,834
Latest member
EverNoir
Top