How to adjust the Battle Log

I have learned some minor amounts of the hazy fog that is RPG Maker Code!

I have not learned nearly enough! T__T

Currently, I'm trying to affect the battle log. What I want is pretty simple -- I want it to display when MP damage is taken, like it does when HP damage is taken. However, I'm not even entirely certain how the battle log works, let alone feeling capable of doing literally anything other than causing the entire thing to crash.

I have managed to figure out that when HP damage is dealt, it calls:
this.push('performDamage', target);

It doesn't do that when MP damage is dealt. Instead it pushes 'performRecovery' if the damage is less than zero.

Could somebody poke me in the right direction, or tell me, where the 'performDamage' and 'performRecovery' is used, and how? I know they're pushed into a list that is later used in a loop, but I have no earthly idea how that results to actual text showing up on the battle log in the middle of battle.

Help please. D:
I want it to display when MP damage is taken, like it does when HP damage is taken.

The default battle system will print a battle log message when a battler loses/recovers MP through the default MP Damage and MP Recover functions in the Skills tab:

mptest.jpg


My guess is that you're either using a plugin that prevents that from printing to the battle log, or you're damaging the MP in a way that the default log doesn't pick up.

If you provide some more specific information, someone might be able to point you in the right direction.

Examples of specifics:

What plugins are you using? Specifically, plugins that affect battle.
How are you recovering the MP? A damage formula? Common event?
I -- huh. ;Frowns; That's really weird.

;Goes to do a test;

No, yeah, you're entirely right, I'm just a dumb-dumb. Thanks for pointing that out! It seems that one of my own plugins is mucking with something in an odd way. I can narrow it down from there.

I thought it was something in the system itself because the code for hp and mp damage messages is different... but nope, this is just me. XD I'd still like to know how to muck with the battle log, but this is something that I can at least figure out how to fix.

Thanks again! 😀

Original thread: https://forums.rpgmakerweb.com/threads/how-to-adjust-the-battle-log.121713/