[Solved] Can I change the "enemy emerged" message with a script?

I like the idea of having a different message pop up if a pair of enemies comes forward or only one
such as "a ramblin' evil mushroom and it's cohort appears" or "a pair of froggits hop towards you"
so I wanted to know if I could change the enemy emergence message using a in-game script or something
to do this.



I might also want to change the kill message for different enemies too but I do not need it at all
anything can be change in the engine - the question is just how much work that change would be.

I don't believe it could be done by something as simple as a script call however, because the template for the original message contains placeholders for the type of enemy.
But it should be doable by a plugin that rewrites that part of the battlescene. In such a case you just need the plugin to specify a place where it would get the correct message.
And you would need to specify if you want that change for random battles, evented battles or both (because if using random battles the data has to be stored either with the plugin or with the troop).
Correction on my part: I forgot to mention I would have all enemies on the map screen so supposedly the script would just tell rpg maker ''change battle message to 'The %1 blocks your path' instead "

In my mind I should only need to have the script done once and I could copy-paste the code into every script call and change what message is displayed, then i don't need to have a plugin

If it really can't be done, I don't have the money to pay somebody for a plugin
so I'm probably going to have to give up until I learn how to do it myself
plugins can be requested for free, and for something like this (usable by a lot of people and easy to do) there are very good chances to get it.
you usually only commission a plugin if you either want it exclusively for yourself only or if it is complex and of less use to the rest of the community.

and yes, with your restrictions it is much easier, but "The %1 blocks your path" would not allow the answers like "a pair of froggits hop towards you" because the %1 would always be single enemy.
i personally only need it to say " %1 and it's cohort" so it works out for me
i personally only need it to say " %1 and it's cohort" so it works out for me
but that is exactly what I meant.
The original code calls that template ones for every enemy, so the result would be something like
"Orc and it's cohort"
"Orc and it's cohort"
"Orc and it's cohort"
if you have three orcs approaching.

A script call can change what it's saying, but it cannot change that the message is called once per enemy in the troop. To change that, you need a plugin because that needs a code change and not a data change, and script calls like that can make only data changes.

I think I remember that there is or was a plugin that does this (replace one message per enemy with one total message of troop name), but I don't remember if it was for Ace or MV or who wrote it.
oooooohhhhhh ok

Original thread: https://forums.rpgmakerweb.com/threads/solved-can-i-change-the-enemy-emerged-message-with-a-script.106765/