Need help with damage formula

im trying to make a weapon that drains your hp and procs for damage equal to the hp that was drained. How would i go about doing that?
I don't know what procs means, so can't help you.  But you might find something here (pinned at the top of this forum):
it does damage equal to the damage drained
When making the Skill, just look in the damage section and change the Type to HP Drain. Hope that's what you're looking for^^


Update: Just noticed that it's for a weapon. In that case you could use yanfly's plugin for lifesteal and turn in to 100% to get the same drain than the damage you did.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-damage-formula.70597/