MV Changing the Battle Start Text

Is there a plugin that can replace the start battle text? I want to replace the "X emerges" to either not display at all (cut right to the action commands) or display the boss name when in a boss battle.
So for example, the player encounters a Hornet enemy. Normally the text shows "Hornet has emerged" then it goes to the command menu for battle. I want it to start the battle, and goes right to the battle commands. However, if the player encounters a boss (for example an Assassin named Arlo), it'd show text saying "Arlo the Assassin" then go to the commands, but for another boss it'd read "Supreme Golem" then go to commands. Currently the solution I have is to remove the text line in the manager js file that displays the start message at Battle, and then have an event in the troop setup that uses a Show Text event to display the name. This TECHNICALLY works, but is sloppy cause it still shows the combat window BEFORE displaying the name. I want to avoid that sloppiness if I absolutely can.

I apologize if I didn't make this quite clear enough, but I'll try to clarify things if people have questions.
Yanfly Battle engine core let's you disable emerge text.
Yanfly Battle engine core let's you disable emerge text.
Ah alright. Any chance you can point me to where to get this plugin? I tried searching for it on my own, but had no luck finding it (I honestly am not sure I looked in the right spot though....)
Like the first 3 results googling yanfly plugins...
Some people might try having a play around in the "Terms" tag of the editor. On the right-hand side of the screen there is a long list of messages that you can edit. One of them happens to be "1% emerged". I assume that '1%' is a code for the enemy troop name.
Some people might try having a play around in the "Terms" tag of the editor. On the right-hand side of the screen there is a long list of messages that you can edit. One of them happens to be "1% emerged". I assume that '1%' is a code for the enemy troop name.
Yeah, that I knew about. %1 is the enemy's name, but not the name of the troop battle, so a battle containing multiple different enemies just lists all the enemies. I'm gonna look into Yanfly's plugin to see how that works before going forward, but if someone has a more simple solution for this I'm open to suggestions.
Yeah, that I knew about. %1 is the enemy's name, but not the name of the troop battle, so a battle containing multiple different enemies just lists all the enemies. I'm gonna look into Yanfly's plugin to see how that works before going forward, but if someone has a more simple solution for this I'm open to suggestions.
You are correct! :LZYblush: Sorry for the misinformation. I have just had a play with a test project, and created a troop called "guess what" with both slime an bats. I changed the exclamation mark in the message "1% emerged!" to a question mark. When I ran a battle from a map event, instead of "guess what emerged?" I saw:

"bat emerged?
slime emerged?"

I hadn't expected that because I usually use the auto-naming function for troops. Yanfly's MessageCore doesn't seem to have any codes for the current troop types, but I haven't looked at his battle related plugins.


Edited to make the last sentence clearer.

2nd Edit: If you change the text of the message to "Trouble..." and fight the troop with both slimes and bats, it outputs:

"Trouble...
Trouble..."

Even if you get rid of the 1%, it still repeats the message for each enemy type.
Currently the solution I have is to remove the text line in the manager js file that displays the start message at Battle, and then have an event in the troop setup that uses a Show Text event to display the name
instead of outright removing it, you could have changed it to only display the message if a switch was on and then be sure to flip the switch before and after boss fights.

also you dont want to change code inside the js engine's core js files directly. you want to copy the functions and make your changes plugins.
Like you say, if you disable the default Emerge message(s) with a plugin, then you can use a Turn 0 troop event with Show Text for per-troop start messages. If Battle Engine Core has stuff you don't want, then maybe this would suffice (untested):
Spoiler: plugin code A
JavaScript:
/*:
 * @target MV MZ
 * @plugindesc Skip blank battle start messages.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/176867/
 * @help Free to use and/or modify for any project, no credit required.
 */
;void (function() {
"use strict";
  /** If `true`, skip blank messages. @type {boolean} */
  let skipBlank = false;
  
  // Patch - skip empty messages when appropriate.
  void (function(alias) {
    Game_Message.prototype.add = function(text) {
      if (!skipBlank || text)
        alias.apply(this, arguments);
    };
  })(Game_Message.prototype.add);

  // Patch - enable `skipBlank` specifically for battle start messages.
  void (function(alias) {
    BattleManager.displayStartMessages = function() {
      skipBlank = true;
      alias.apply(this, arguments);
      skipBlank = false;
    };
  })(BattleManager.displayStartMessages);

})();
Then just clear the Emerge message on the Terms tab of the Database. This should also work for the preemptive/surprise messages.

Or, to skip all blank messages:
Spoiler: plugin code B
JavaScript:
/*:
 * @target MV MZ
 * @plugindesc Skip all blank messages.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/176867/
 * @help Free to use and/or modify for any project, no credit required.
 */
// Patch - add message text only if it's not empty.
;void (function(alias) {
  Game_Message.prototype.add = function(text) {
    if (text)
      alias.apply(this, arguments);
  };
})(Game_Message.prototype.add);
(You should still be able make a "blank-looking" message by writing e.g. a single space.)

Alternatively, in case it helps, I have a plugin called Cae_BattleMessages that has options for customising these messages. It also happens to skip any of them that are blank.
also you dont want to change code inside the js engine's core js files directly. you want to copy the functions and make your changes plugins.
Yeah in all honesty I figured with something as minor as this it'd be fine. I modified the escape code so that it was always true, and I have had no issues with that. I will keep this in mind in the future.
Alternatively, in case it helps, I have a plugin called Cae_BattleMessages that has options for customising these messages. It also happens to skip any of them that are blank.
Ohhh, this honestly would probably be what I'm looking for. I'll give it a try to see if it helps.

Thank you both for the help.

Original thread: https://forums.rpgmakerweb.com/threads/changing-the-battle-start-text.176867/