Skill that damages user?

I'm trying to make it so when a character casts a specific spell it damages them as well as the enemy. I thought I could change HP recover in the negative to do this but, that didn't work, and Common events didn't work either.

Will I need some script or something?
rip, vx ace, l was looking at recent threads sorry.
It will take a script. I think Yanfly has one to let skills cost HP, and there might be others.

I've moved this thread to RGSSx Script Requests. Thank you.

no need for a script, this can be done by damage formula code.
Please search the forum for the topic "how to make most of the damage formula", it should be pinned somewhere in the Ace forums.
Basically you write into the damage formula something like
Code:
a.hp-=20; damage
then the damage will be done to the enemy and 20 point substracted from the skill user HP.

But you need to be exact in the code used, and that was from (perhaps faulty) memory, so please check the mentioned topic for the correct code.

Original thread: https://forums.rpgmakerweb.com/threads/skill-that-damages-user.74872/