Life Steal State

Saw this for yanfly's plug ins for Mv how would I impliment in Visustella?

<Custom Establish Effect>
a.gainHp(value * 0.2);
</Custom Establish Effect>
Figured it out. If anyone finds this thread throw this in the Note Box:

<JS Post-Damage as User>

user.gainHp(Math.ceil(value*.15));

</JS Post-Damage as User>

Change the .15 to what ever percentage of the damage you want the user to heal.

Original thread: https://forums.rpgmakerweb.com/threads/life-steal-state.177257/