How to use HP as a subsitute for MP?

Hello, I want to make a warlock kind of character that deals damage to the enemy and the user. I'm god awful at coding and new to this, so sorry if I'm being stupid! Thanks
'Game Mechanics Design' is for looking at aspects of game play at a more conceptual level. "How do I...?' (implementation) questions belong in the Support forum for the engine you are using.

However, you have chosen not to tell us which engine that is under your avatar (N/A is really for people who are on the forums primarily as artists or musicians) which means that I cannot move this thread to the forum where you could get help. The exact answer varies according to which engine you are using.

Please post and tell us which engine it is, and possibly you might like to consider changing the info under your avatar.
if it's only for one set of skills, for one character, just add the extra self damage to the damage formula.
@Kes

Okay sorry about that. I'll fix it
There is no damage formula like in vx-ace in standard vx.
@gstv87 trouble is i dont know how to do that

I've moved this thread to MV Support. Thank you.

Perhaps this?
Try Yanfly Skill Core. It'll let you use HP as skill cost, ie lets say a skill cost 5 hp, then the skill will do whatever it's going to do and then it'll cost the user 5 of their hp.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-use-hp-as-a-subsitute-for-mp.86877/