Changing a skill user's MP

Hey, I'd like a quick heads up on this.

I'd like to create skills that - in addition to their normal effects and targets - restore the use's MP. For example, I'd like to have the default "Attack" skill also restore 20 MP to the user.

Thanks in advance! 🙂
you can add almost any effect by placing additional commands into the damage formula, where a stands for the user and b for the target.

a.mp += 20; a.atk * 4 - b.def * 2will add 20 points to the skill user's MP before dealing regular damage to the target.

search for damage formulae in this forum, there is a long topic of different commands and effects available to use in the damage formula field
I hadn't realised there was such flexibility in damage formulae. Thanks, I'll certainly look it up!

Original thread: https://forums.rpgmakerweb.com/threads/changing-a-skill-users-mp.20207/