[QUESTION] How to delete a Term Message Type?

Either delete it or disable it.

I am trying to get rid of the "Emerge" Term Message Type and if I delete the content (%1!) I will still get a blank window, because it is activating still but not displaying any text. Is there a command I don't know about that I can type in a TMT to disable it? If not, how would I go about preventing it from firing off?
Place this into a new. js-file and import it as a plugin, place it at the bottom.
PHP:
BattleManager.displayStartMessages = function() {
    if (this._preemptive) {
        $gameMessage.add(TextManager.preemptive.format($gameParty.name()));
    } else if (this._surprise) {
        $gameMessage.add(TextManager.surprise.format($gameParty.name()));
    }
};
Thank you. That worked quite well. I wish I knew how to make these simple solutions myself.

What is the thing in the script that disables it? Is it the empty function?
How did you know that display.StartMessages is the same as the Emerge TMT?
Normally that function looks like this:
PHP:
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()));
    }
};

That first part will setup the text for the emerge message. I removed that part from the function. When you import that edited function as a plugin, that old version of the function will be overridden.
I kinda knew where to look in the code, because I am quite familiar with the MV Core Code. 🙂
Wow. Very surgical. How can I go look into the code as well? I'd like to dabble with it. I am not a programmer but I can scavenge code.
All the code is inside your /js folder.

The MV Code is seperated into 6 files.
rpg_core.js
Wrapper classes of Pixi.js and base classes such as audio and input processing.
rpg_managers.js
Static classes named XxxManager that manage the game overall.
rpg_objects.js
Classes named Game_Xxx dealing with game data (many are saved).
rpg_scenes.js
Classes named Scene_Xxx in which the scene is defined.
rpg_sprites.js
Classes named Sprite_Xxx related to image display and processing.
rpg_windows.js
Classes named Window_Xxx handling window display and input.
In addition, a plugin list is defined in plugins.js, and main.js launches the game.

Also I suggest that you click on the third last link in my signature. There you can get a solid overview on how the MV Core Code works.
Arrived here 5 years later, using MZ. This was exactly what I needed! I'm also going to look at those links in your signature. Cheers!
All the code is inside your /js folder.

The MV Code is seperated into 6 files.
rpg_core.js
Wrapper classes of Pixi.js and base classes such as audio and input processing.
rpg_managers.js
Static classes named XxxManager that manage the game overall.
rpg_objects.js
Classes named Game_Xxx dealing with game data (many are saved).
rpg_scenes.js
Classes named Scene_Xxx in which the scene is defined.
rpg_sprites.js
Classes named Sprite_Xxx related to image display and processing.
rpg_windows.js
Classes named Window_Xxx handling window display and input.
In addition, a plugin list is defined in plugins.js, and main.js launches the game.

Also I suggest that you click on the third last link in my signature. There you can get a solid overview on how the MV Core Code works.
Good to hear it helped, but next time maybe just leave a like/reaction on the post. 👋

@Eddy_Dantino, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/question-how-to-delete-a-term-message-type.83066/