How to do vampiric attacks/weapons

Tried and failed to make my own vampiric weapons. I want to make an attack that steals a percentage of health and a weapon that steals a set number of hp for each attack.
For the skill you can put it in damage formula:

a.gainHp(b.hp*0.1); b.hp*0.1

For the weapon, do you use Yanfly plugins? He has a lifesteal plugin.
imo, youll want to use yanfly's skill core, buffs and states core, and auto passive states plugins for those and use their notetags. All of them are available for free on their website

Youre kinda limited in your options for this without plugins. The skill based lifesteal can be done through the damage formula but wouldnt count a number of factors for damage dealt. The weapon based one afaik isnt possible without a plugin
I got all of Yanfly's plugins i think
I got all of Yanfly's plugins i think
If you have yanfly's lifesteal plugin, there should be notetags to do all that you mentioned then. No need for any other approach.
I usually avoid suggesting it because its a paid plugin and yanfly's free plugins can accomplish the same task, but if you already own it then its the easiest option.
If you have yanfly's lifesteal plugin, there should be notetags to do all that you mentioned then. No need for any other approach.
I usually avoid suggesting it because its a paid plugin and yanfly's free plugins can accomplish the same task, but if you already own it then its the easiest option.
no i dont, i thought i did.
with the skill core, you can use the <Post-Damage Eval> notetag to grab the value of the damage dealt and do things with it. so the following tag would let you drain 47% of the damage dealt
Code:
<Post-Damage Eval>
user.gainHp(Math.ceil(value*.47))
</Post-Damage Eval>

the weapon effect needs a little more to get going
make a state with the following notetag
Code:
<Custom Establish Effect>
if (this.isAttack())
  user.gainHp(12)
</Custom Establish Effect>
and that state will make the affected battler heal 12 hp whenever they use their standard attack. then you want to use the passive state notetag to attack the state to the weapon as a passive so that anyone holding the weapon also has the state
If you're using Yanfly stuff, use that. Otherwise, you can use the WeaponSkill plugin that comes bundled with MV. In either case, just replace Attack with a skill that does Absorb HP for the type.
In either case, just replace Attack with a skill that does Absorb HP for the type
the issue is that they wanted lifesteal skills to absorb a portion of the damage dealt and the drain attack type does just heal for 100% of whats dealt.

the weapon they said should flat heal the user when its used to attack and you could use the weaponskills plugin like you said to set a separate skill with a gainHp in the formula, but when they said "attack", it wasnt really clear if they meant the standard attack or any physical skill. if it were the latter then the weaponskills plugin alone wouldnt be able to do it. all the above would need is the condition to change
Another Robro33 banger. You are the man.
with the skill core, you can use the <Post-Damage Eval> notetag to grab the value of the damage dealt and do things with it. so the following tag would let you drain 47% of the damage dealt
Code:
<Post-Damage Eval>
user.gainHp(Math.ceil(value*.47))
</Post-Damage Eval>

the weapon effect needs a little more to get going
make a state with the following notetag
Code:
<Custom Establish Effect>
if (this.isAttack())
  user.gainHp(12)
</Custom Establish Effect>
and that state will make the affected battler heal 12 hp whenever they use their standard attack. then you want to use the passive state notetag to attack the state to the weapon as a passive so that anyone holding the weapon also has the state

Original thread: https://forums.rpgmakerweb.com/threads/how-to-do-vampiric-attacks-weapons.178297/