encounter text

is there a way I can turn off the "Blank emerged" dialogue so it goes straight into a battle instead of having to see the message pop up on screen every time?
Paste the below into a text editor, save as a *.js file, include as a plugin.

Code:
BattleManager.displayStartMessages = function() {
/*
    for (const name of $gameTroop.enemyNames()) {
        $gameMessage.add(TextManager.emerge.format(name));
    }
*/
    if (this._preemptive) {
        $gameMessage.add(TextManager.preemptive.format($gameParty.name()));
    } else if (this._surprise) {
        $gameMessage.add(TextManager.surprise.format($gameParty.name()));
    }
};
Paste the below into a text editor, save as a *.js file, include as a plugin.

Code:
BattleManager.displayStartMessages = function() {
/*
    for (const name of $gameTroop.enemyNames()) {
        $gameMessage.add(TextManager.emerge.format(name));
    }
*/
    if (this._preemptive) {
        $gameMessage.add(TextManager.preemptive.format($gameParty.name()));
    } else if (this._surprise) {
        $gameMessage.add(TextManager.surprise.format($gameParty.name()));
    }
};
i tried and it didnt work
That's not very helpful for anyone to say anything else.

What doesn't work? What happens instead? Are you using other plugins you didn't tell us about?

It works perfectly for me.
That's not very helpful for anyone to say anything else.

What doesn't work? What happens instead? Are you using other plugins you didn't tell us about?

It works perfectly for me.
im probably just doing it wrong, i'll try again at some point

Original thread: https://forums.rpgmakerweb.com/threads/encounter-text.171959/