MV Encounter Custom Names

Is there any way to make it so that an encounter will have a custom name? For example, when there's an encounter with three slimes, something like "Slime Trio Appeared" rather than "Slime Emerged" but when it's say, a battle with a Bat and a Slime it says "Slime and Bat Appeared" Rather than "Slime Emerged Bat Emerged"? The best example I can find of this is Undertale in which every combination of enemies has custom titles that show up before battle. If this isn't possible with just the base engine, where would I find a plugin that allows that? Thanks in advance for any help I get!
Moved to: Plugin Requests

What are you going to do when you have 3 or 4 different enemies in the same troop?
someone made a plugin for it, but do not know who exactly.
Moved to: Plugin Requests

What are you going to do when you have 3 or 4 different enemies in the same troop?
Well the plan is, each individual troop would have Its own name that would show up instead of the names of each individual unit. For example, if I had a Red Slime, Blue Slime, Green Slime, and Yellow slime, rather than having each name appear individually I’d like to have it say like “Slime Hoard Emerged” or “Slime Variety Pack Emerged” instead. If this is possible it would add a lot to my games, if that be slight lore told or simply some jokes or puns in each troop’s name.
someone made a plugin for it, but do not know who exactly.
If you recall the name of the plugin or have any more information, please share. Thank you.
So what you're after is a plugin that shows the troop name rather than the enemy names (this was not mentioned in your original request).

Try this - save into a new plugin called TroopEmergeName.js (though what you call it doesn't really matter)

Code:
BattleManager.displayStartMessages = function() {
    $gameMessage.add(TextManager.emerge.format($gameTroop.troop().name));
    if (this._preemptive) {
        $gameMessage.add(TextManager.preemptive.format($gameParty.name()));
    } else if (this._surprise) {
        $gameMessage.add(TextManager.surprise.format($gameParty.name()));
    }
};

I haven't tested this, so post back if it gives you any errors.

And if you want it to say emerges rather than emerge, go into rpg_managers.js and change this line:
Code:
    emerge          : TextManager.getter('message', 'emerge'),
to this:
Code:
    emerge          : TextManager.getter('message', 'emerges'),
So what you're after is a plugin that shows the troop name rather than the enemy names (this was not mentioned in your original request).

Try this - save into a new plugin called TroopEmergeName.js (though what you call it doesn't really matter)

Code:
BattleManager.displayStartMessages = function() {
    $gameMessage.add(TextManager.emerge.format($gameTroop.troop().name));
    if (this._preemptive) {
        $gameMessage.add(TextManager.preemptive.format($gameParty.name()));
    } else if (this._surprise) {
        $gameMessage.add(TextManager.surprise.format($gameParty.name()));
    }
};

I haven't tested this, so post back if it gives you any errors.

And if you want it to say emerges rather than emerge, go into rpg_managers.js and change this line:
Code:
    emerge          : TextManager.getter('message', 'emerge'),
to this:
Code:
    emerge          : TextManager.getter('message', 'emerges'),
Thank you so much, and sorry for any confusion, it's my first time here. But I have run into an issue, rather than showing the troop name, it shows... well, nothing. Attached is a screenshot, where it should say "A Forest Dragoon emerges!" with how it's set up.
It works for me.

1677479018032.png


Is your troop actually named?

What other plugins do you have? If you disable them (or put this one into a brand new project without any other plugins) does it work?
It works for me.

View attachment 254445

Is your troop actually named?

What other plugins do you have? If you disable them (or put this one into a brand new project without any other plugins) does it work?
After some troubleshooting, The troop was named, and no troop name ever worked in my main game. HOWEVER, it did in fact work in a brand new game. I disabled all of my plugins one by one and then all at once in my main game, but it still didn't work. Anything else that might be causing it to break possibly?
After some troubleshooting, The troop was named, and no troop name ever worked in my main game. HOWEVER, it did in fact work in a brand new game. I disabled all of my plugins one by one and then all at once in my main game, but it still didn't work. Anything else that might be causing it to break possibly?
Ah nevermind! I found the issue. The game did not like me changing Emerge to Emerges in the rpg_managers.js file. I can work with it now that it works. Thank you so much for your time and patience!
It should be fine. Unless you removed the comma at the end or changed something else. You could try again, and when you should get the message, hit F8 and look at the console tab to see if there are any errors.
@Shaz You may be interested to know that on initial testing, in a project that is VisuStella heavy, this also works flawlessly in MZ. I do have Fossil, which may or may not be essential.
the code Shaz gave you is the same from 2017 post found [here].
as it also have a demo on it.

while it doesn't add the message of emerge to emerges that
Shaz mentioned, it is a nice idea.

keep in mind that if you use YEP_BattleEngineCore, that you
place it below it, as YEP overwrite the function, so placing
it below fixes it, in case you use it.

Original thread: https://forums.rpgmakerweb.com/threads/encounter-custom-names.155312/