You should read up on how damage formulae work:
Please note: A discussion has already been started about different things you can do with these formulas so please direct those comments and question to the appropriate thread. https://forums.rpgmakerweb.com/index.php?threads/rmmv-damage-formula-ideas-and-help.47099/ A link to the list of...
forums.rpgmakerweb.com
The most important part is that the
last number in your formula is always what gets used for the damage. Since saying "this equals this" isn't a number, that's why your damage is 0.
The other thing that's worth mentioning is that, depending on some of your game mechanics, it's not good to
put things like this in the damage formula.
If you ever use the auto-battle trait, or give this skill to enemies, the code in your damage formula gets run
without the skill being used. So you might get that variable set to unexpected things.
All that being said, if you want to do this and deal damage equal to the actor's current MP, just swap the order.