HP stealing weapon

Hi I´m new here and I´m sorry if there already is a topic like this but I couldn´t find it.


Well...I wanted to make a weapon that is very strong but also steals some of the users HP as a punishment for using it. I´m trying to make it myself because I need a strong demon sword  with this sideeffect but I´m not good at programming something like this.


I tried using the skill core and the weapon unleash core but it didn´t work and I really don´t know how else it would be possible to make this effect.


It would be great if somebode could help me.
Use Yanfly's Skill Core, and set up this in the notetag for your attack skill:


<HP Cost: x> replace the 'x' with the amount you want the attack to cost. 


Alternatively, you can use <HP Cost: x%> and have it cost a percentage of the attacker's health, instead of a flat amount. 


The best way to set up the skill is to just make a copy of the first skill in the database, which is "Attack". Rename it whatever you want, then apply one of these two notetags to it. That's all it should take. 


EDIT:If it didn't work, there might be a problem with the way you set up the plugins in your plugin manager. Be sure to put all the plugins in the order Yanfly has them in on the Yanfly Engine Plugins screen, not the order the YouTube videos are in. I made that mistake once. 
Thank you a lot. It finally worked, I didn´t thought that it could be that easy.


Really thanks a lot 😀
"How do I..." questions belong in the Support forum for the engine you are using.  As this question might be useful for others


I've moved this thread to RPGMaker MV. Please be sure to post your threads in the correct forum next time. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/hp-stealing-weapon.70212/