Skill formula help

Okay here's what I've been trying to do:


I want the user of the skill to hurt the target while restoring a set amount of mp to the user.


Is this possible using skill formulas or does it require a script? I've been trying all day and I can't get it to work  ;_;


Thanks in advance!
a.mp += 20; (damage formula here)
Thank you so much! You saved me hours of anger and headaches... I should really learn how to use skill formulas...

Original thread: https://forums.rpgmakerweb.com/threads/skill-formula-help.55952/