Um, he said that in response to mine, not in response to yours...
And then he promptly forgot about it, and didn't write anything up when he got home from work. Sorry.
I just remembered an
amazing guide I found a while ago, which might even be worth asking
@Shaz to add to the OP. It can be found here:
https://rpgmakermv.co/threads/damage-formulas-101-mv-edition.2172/
Sadly, it wasn't able to provide a simple solution. When I tried the formula (a.mp);(a.setMp(0)) it dealt 0 damage. I think it was running everything at once, then animating, then recalculating the damage, because a.mp and a.setMp(0) both worked individually. So we're going to have to go back to the plugin method.
First, set your attack to have NO MP cost, and use a.mp somewhere in your damage formula. For example (a.mat * a.mp)
Second, get
Yanfly's Skill Core. If you aren't already using Yanfly plugins, remember to get his
core engine plugin; the Skill Core won't work without it.
If you've read over the description of Skill Core, you might be tempted to use a <Custom MP Cost> tags. Don't. The cost is deducted before the skill is used, meaning you'll always have 0 mp when damage is calculated.
Instead, do the following:
<After Eval>
user.setMp(0);
</After Eval>
The game will NOT show a cost for this skill. You should either include something in the skill description that states that all MP will be consumed, or use the <Custom Cost Display> note tag to give a custom cost.