MZ Lifesteal State?(inverse thorns)

Recently I've been attempting to figure out a way to implement what is essentially an inverse thorns state, where instead of taking recoil damage from attacking something, the attacker heals off of the blow that they dealt. Is there any way to accomplish this? I did attempt to look at a few thorns solutions and alter them to try and make it a heal, though none of my attempts worked, likely due to incompetence and a lacking knowledge of javascript.

I'd rather not have to use Battle Core to do it either as well.
I did attempt to look at a few thorns solutions and alter them to try and make it a heal, though none of my attempts worked, likely due to incompetence and a lacking knowledge of javascript.
someone asked the same question the other day. did you see that thread?

it doesnt require any VS plugin if you use Turan's eval tags plugin
I actually saw it a few minutes after I made this thread if you can believe it ^^" Though as I only want it to heal a portion of the damage dealt, its been putting decimals in the healthbar and I'm not sure how to get it to not, is there a way to make it round?
is there a way to make it round?
you can put your adjusted value inside a Math.ceil(), round(), or floor() call to round the number to an integer.
Code:
user.gainHp(Math.ceil(value*.33));
Ooh! That seems to have solved it! Thank!

Original thread: https://forums.rpgmakerweb.com/threads/lifesteal-state-inverse-thorns.182147/