Skill that makes you RECEIVE damage by amound of damage DEALT

Basically, I want to make damage skill, that makes you suffer as much damage as you have dealt. So, if you deal 25 damage to target, you yourself receive 25 damage. It's probably more of damage formula thing, I believe. After looking around for a bit I haven't found topics on that yet, so thanks in advance.
For those cases it's identical to the MV one

For those cases it's identical to the MV one

Not sure if it's supposed to be linked to certain page, but after browsing like 20 last pages I didn't found what I was looking for (I did found some other useful stuff, so that's cool)
Hiya,

Assuming you're using the visustella battlecore and such, you could use something quick and simple in the skill's notetag box like:

Code:
<JS Post-Damage>
 user.gainHp(-value)
</JS Post-Damage>

This makes the user of the skill lose HP exactly equal to whatever is calculated from the skill's damage on the enemy, and pops up at the same time as the damage comes up on the enemy if that was what you were looking for!
Yup, seems to work pretty well, thanks!

Original thread: https://forums.rpgmakerweb.com/threads/skill-that-makes-you-receive-damage-by-amound-of-damage-dealt.163807/