MV/MZ Battle Messages Plugin

PluginName: SDJB_BattleMessages
Author: ShadowDragon

=== TERMS OF USE ===
Free for Non-Commercial and Commercial use when credit is given.
credit one of the following:
ShadowDragon
ShadowDragonJB

Version + UPDATE'S
3-03-2023 Version 0.1.0 first release
12-03-2023 Version 0.2.0 added option to hide battle messages or not.
21-08-2024 restructure code and added option to play common event
on Victory or Defeated
18-07-2025 added featyres

=== WARNING ===
YOU ARE NOT ALLOWED TO:
* MODIFY without permission
* EXTEND without permission
* TAKE CODE without permission
* CLAIM AS YOU MADE IT
* REDISTRIBUTE but link back to the forum or itch.io
* SELL this product as standalone.
* DO NOT REMOVE THE HEADER

set random Battle Messages to the following in the parameter
to take 1 random each time you enter a battle.

Each time you get the upper hand, a text is shown at random.
Each time you get a surprise attack, a text is shown at random.
Each time you lost a battle, a text is shown at random.
Each time you win a battle, a text is shown at random.
Each time you try to escape (success), a text is shown at random.
Each time you try to escape (failure), a text is shown at random.

Add Escape Penalty when you successfully escaped!
Add custom Message when you use a skill.
Add custom Message when you use an item.

No more the same message over and over again, now it's YOUR choice,
what text is shown.

You can also disable the text entirely for those, so you don't
see the text for Emerge, start, lost, win or escape.

When Victory Message or Defeat Message is FALSE, you can play
a Common Event stead, which require a base setup to make this work.
What happens after is totally up to you.

Base setup for Victory
conditional scriptcall: $gameTroop.aliveMembers() < 1

Base setup for Defeat
conditional scriptcall: $gameParty.aliveMembers() < 1

Download it [here].
abillity to skip battle log message on top and skip the delay from them.
so the speed of battles can increase (ideal for frontview and sideview).
Shadow Dragon,

I just started using this today and placed it at the bottom of the load order, but for some reason I'm unable to get the new random messages, it's still using the static ones from the default messages window.
@Zer0Morph while I overwrote the function, I didn't add a callback, to return
the default messages.

the question that I like to know, are you using MV or MZ engine?
@Zer0Morph while I overwrote the function, I didn't add a callback, to return
the default messages.

the question that I like to know, are you using MV or MZ engine?
After more research, I found that it does display the new message, but also displays the old one too. I'm using MZ 1.5, but we've monkeyed around with the battle log so that may be why it's displaying both yours and ours. The issue is probably on our end, and if so, kudos to you for making this wonderful plugin. 😀
I dont know yours, but if it conflict with some, try ruling it out.
otherwise, add it to the other, I didn't know it worked for MZ, bu if it does,
I will add "@target MZ MV" to it.

good luck on your project and thank you for the kind words 🙂
Nice plugin! 😤
Would it be possible to call a common event instead of a message? And can I control what message is shown? Instead of randomness :0

I would like to have the character that deals the final blow say a voiceline, with the dialogue box appear and a picture of their sprite.
not currently, but if MZ handles the same, I can make each part return
to the same common event or separately.

if it's for victory, you can add a simple line to it for hardcoding.
on the victoryMessage to add be }

} else {
$gameTemp.reserveCommonEvent(x);
}

to play the common event if you keep it empty or the function being false.
so the array is ignored and play a common event instead.

so you can do the same on the other in an hardcode way as I will rewrite this one
later for using my base to parse the params better and able to use a common event
or array for they want.

only MZ might not support all options from my base, so I make a mini version
of some options that does work, so it wont be extended for MZ users.
so try the code above if your able to implement it on your own.

so your code should look like this:
JavaScript:
    BattleManager.displayVictoryMessage = function() {
        if (SDJBbm._showVictory) {
            let victory = SDJBbm._victory;
            let dVM = victory[Math.randomInt(victory.length)];
            $gameMessage.add(dVM);
        } else {
            $gameTemp.reserveCommonEvent(10);
        }
    };
I have made the change in the plugin code, created a CommonEvent with ID "10" that shows a text, and left the "Victory Message" parameter blank but it still shows the message written in the Terms section on the Database, even if blank.

I also have tried to write something on the Victory Message parameter, but it will ignore it and display the default message. The plugin is also at the top of the plugin list.

Maybe it's incompatibile with MZ? :0

I will rewrite this one
later for using my base to parse the params better and able to use a common event
or array for they want.
I look forward to it! :]
@Angy1910 here is a plugin, works for enemy and actors to play
a common event (on victory when all enemies dies) and when
defeated if all actors dies.

I attached my modified base for MZ inside the zip, as I don't own MZ,
I cannot test all functions for it, but some that does work and not relied
on it should work.

hopefully, the common events works too if it uses the same in MV.
so let me know if it's working for you.

PS: if anyone uses MZ, you can use this zip with it's base, any update
version of the battle message can be safely downloaded for MV and MZ,
MV users are advised to use the MV version my base.
New features to the plugin:

Add Escape Penalty when you successfully escaped!
Add custom Message when you use a skill.
Add custom Message when you use an item.

escape loses gold at x% chance, if succeed, you lose gold with y% or max gold.
you can escape without losing gold if x% fails 🙂

enjoy.

Original thread: https://forums.rpgmakerweb.com/threads/battle-messages-plugin.155484/