MV Creating a lifesteal weapon without Yanfly's lifesteal plugin

I am trying to make a weapon that when "Attack" is used on an enemy, it will apply the "normal attack" state to the enemy (damaging the enemy) and healing the user for 15% of the damage dealt. However, I do not know how to use this.

According to another user, I can use the "YEP_BuffsStatesCore" plugin and the "WeaponSkill" plugin to do this. I looked through the description of each plugin, but I cannot make sense of this.

Extra info: I tried adding "Recover HP" to the weapon's effects, but that just healed the enemy. I also tried using weaponskills to activate 2 spells, but it only used the healing spell on myself thanks to the fact that RMMV processes status skills before attacking skills.

If there is anything else you would like to know, please tell me. Thank you.
Depending on how you want to handle it, it can be done with Yanfly's Buffs/States and autopassives plugins, or with yanfly's skill core and weapon unleash/the weaponskill dlc plugins.

With buffs and states, it would be a passive tied to the weapon. you'd make a confirm effect that runs a gainHp on the user for 15% of the damage dealt, and youd restrict the effect with conditionals to only activate in certain situations like if the attack is physical or is the user's default attack.

with the skill core, youd make a duplicate attack skill tied to the weapon. the skill itself could have a post damage eval to heal the user for 15% of the damage dealt and then use weaponskills/unleash to make the actor's default attack the lifesteal one when the weapon is equipped.
Depending on how you want to handle it, it can be done with Yanfly's Buffs/States and autopassives plugins, or with yanfly's skill core and weapon unleash/the weaponskill dlc plugins.

With buffs and states, it would be a passive tied to the weapon. you'd make a confirm effect that runs a gainHp on the user for 15% of the damage dealt, and youd restrict the effect with conditionals to only activate in certain situations like if the attack is physical or is the user's default attack.

with the skill core, youd make a duplicate attack skill tied to the weapon. the skill itself could have a post damage eval to heal the user for 15% of the damage dealt and then use weaponskills/unleash to make the actor's default attack the lifesteal one when the weapon is equipped.
Say I'm using skill core: How do I make the post-damage effect? Is it part of the formula, or is it a special plugin in the notes section?
How do I make the post-damage effect?
its a note tag you put in the skill's notebox
Code:
<Post-Damage Eval>
user.gainHp(Math.ceil(value*.15));
</Post-Damage Eval>
that takes the damage dealt by the skill's usage and heals the user for 15% of it

Original thread: https://forums.rpgmakerweb.com/threads/creating-a-lifesteal-weapon-without-yanflys-lifesteal-plugin.166919/