Healing Rod RPGMaker MV

I am struggling to figure out how i can make a weapon that heals instead of damaging enemies like in Final Fantasy series. like what plugins that have i am looking for or is there is a tips & Tricks from Yanfly that gives an example? i also wanted to make sure that the healing rod can also actually damage undead enemies too
You need to set it as a skill with that specific effect and use yep weapon unleash to replace that weapon's basic attack.
Note that the WeaponSkill plugin included by default in new RMMV projects can do the skill replacement thing, so you don't need a paid plugin for that (unless you want the extra features).

Not sure about the best way to make a skill damage undead but heal others. You can't just conditionally multiply the damage by -1, since by default the minimum damage formula result is 0. 😴

Edit @Cobax93: maybe a damage formula like this?
Code:
var r = a.atk * 4 - b.def * 2; if (b.elementRate(10) > 1) { b.gainHp(-r); 0 } else r
This says "let r temporarily store the result of the damage formula (a.atk * 4 - b.def * 2 in this case); if the target is weak to element 10, apply r damage and set the skill's heal amount to 0; else make the skill heal r". Haven't tested but I think it'll work; just need to give your undead enemies a weakness (> 100% element rate) to a specific element and change the numbers as needed~
thanks

Original thread: https://forums.rpgmakerweb.com/threads/healing-rod-rpgmaker-mv.127605/