Recoil Skill?

So, one of the skills I want to create is basically like Double-Edge from Pokémon. When the attack is used, the user attacks for massive damage, but then takes additional damage based off what they dealt. How would I do this? If it's a Lunatic Mode thing, I do have Yanfly's Damage Core.
You can do this using the damage formula box. Here's a baseline example:


a.gainHp(-a.atk); a.atk


Using that expression in the damage formula box would deal damage to both the user and the target(s) equal to the user's attack value.


Damage Core, of course, would be another way to go about it.
Okay, thanks Kenen! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/recoil-skill.60618/