Making Normal Attack Recover some MP

So, this is my first time with RPGMaker MV and I've already poured a good chunk of time into this project that I'm making. Is there any way to make it so that the normal attack recovers MP instead of TP? Having it recover both per use is completely fine for this, too. I have a few Yanfly plugins installed that affect the battle system such as Battle Engine Core and Action Sequences, but I haven't exactly found anything that gives me the simple effect I want (either that or I'm just blind and one of these plugins are capable of such.)

Simply, I want the normal attack skill to gain a flat 10 MP for the user.
Maybe put in each skill gain the amount of MP you need?

Captura de pantalla 2024-07-26 132028.png
Maybe put in each skill gain the amount of MP you need?
Anything in Effects applies to the target of the action. So that would give MP back to the enemy you're attacking.

@Vivivince you can put a Skill Core notetag on the skill:
Code:
<Post-Damage Eval>
user.gainMp(10);
</Post-Damage Eval>

Replace 10 with whatever number or formula you like.
Anything in Effects applies to the target of the action. So that would give MP back to the enemy you're attacking.

@Vivivince you can put a Skill Core notetag on the skill:
Code:
<Post-Damage Eval>
user.gainMp(10);
</Post-Damage Eval>

Replace 10 with whatever number or formula you like.
This is exactly what I was looking for, thanks! Maybe I should pick up some coding for RPGM...
This is exactly what I was looking for, thanks! Maybe I should pick up some coding for RPGM...
You can also look up individual things like this really easily.

If you Google "rpg maker mv recover mp script call," you'll find threads with this in there.

Or if you go to the pinned thread of MV Script Calls, it's listed in there, too.

Doesn't require any additional JavaScript practice.

Original thread: https://forums.rpgmakerweb.com/threads/making-normal-attack-recover-some-mp.170634/