How to remove the "enemy emerged" text at battle start?

I want battles to skip telling the player which enemies emerged and just go straight into the battle. There was a plugin posted in this thred https://forums.rpgmakerweb.com/index.php?threads/remove-the-enemy-emerge-text.148519/ which does do the job but it also removes the messages throughout the battle that tell the player what actions were preformed, how much damage was taken, etc.

VisustellaMZ plugin can apparently do this which I do have, however, I prefer not to use it because I don't like/have no need for any of the other changes it makes.

Any help would be greatly appreciated 🙂
In rpg_managers.js you can find this function at line 2358 :

JavaScript:
BattleManager.displayStartMessages = function() {
    $gameTroop.enemyNames().forEach(function(name) {
        $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()));
    }
};



You could create a small script call (or plugin) to overwrite that function

An example of plugin to overwrite this would be :

Code:
/*:
 * @target MZ
 * @plugindesc Removes the "Enemy emerged!" message at the start of battle.
 * @author Me
 */
(() => {
    BattleManager.displayStartMessages = function() {
        // Do nothing to skip the emerge/preemptive/surprise messages
    };
})();


You can also fiddle with the function to make it do whatever you want instead.


Edit : As this is an overwrite, place it at the end of your plugin list to avoid being overruled by others, also don't edit the core file, just make a quick plugin to overwrite it instead.
Alternatively, in Arthran's plugin in that thread you linked, the second part hides the battle log:
JavaScript:
Scene_Battle.prototype.updateLogWindowVisibility = function() {
    this._logWindow.visible = false;
};
So you can try removing that. Arthran's approach preserves the surprise/preemptive messages, in case you want those.

Personally, my preference is to just hide all messages (like Show Text) that have no text:
JavaScript:
/*:
 * @target MV MZ
 * @plugindesc Do not show blank messages.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/180896/
 * @help Free to use and/or modify for any project, no credit required.
 */
;void (alias => {
  Game_Message.prototype.add = function(text) {
    if (text)
      alias.apply(this, arguments);
  };
})(Game_Message.prototype.add);
Then you can hide the emerge messages by deleting the Emerge text on the Database -> Terms tab.
Alternatively, in Arthran's plugin in that thread you linked, the second part hides the battle log:
JavaScript:
Scene_Battle.prototype.updateLogWindowVisibility = function() {
    this._logWindow.visible = false;
};
So you can try removing that. Arthran's approach preserves the surprise/preemptive messages, in case you want those.

Personally, my preference is to just hide all messages (like Show Text) that have no text:
JavaScript:
/*:
 * @target MV MZ
 * @plugindesc Do not show blank messages.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/180896/
 * @help Free to use and/or modify for any project, no credit required.
 */
;void (alias => {
  Game_Message.prototype.add = function(text) {
    if (text)
      alias.apply(this, arguments);
  };
})(Game_Message.prototype.add);
Then you can hide the emerge messages by deleting the Emerge text on the Database -> Terms tab.
Thank you. this worked. Not sure why I didn't think of this myself and i'm honestly a little embarassed about it >.<

Original thread: https://forums.rpgmakerweb.com/threads/how-to-remove-the-enemy-emerged-text-at-battle-start.180896/