I wanted to make a armor piece that after taking damage heals the wearers MP (5% of MaxMP). I'm using Battle-core and some javascript for Thornmail (Visustella version) However it does not work probably because i do not know javascript and may be misinterpreting what the note tags do. If someone could help, that would be appreciated -o-.
MP Healing armor
RPG Maker MZ SupportYour notetag runs as the user deals damage, not as they take damage. you'd have to use a different notetag and cchange your battler references.
then you need to use
then you need to use
mhp to get the battler's max hp, not maxHp. Also since this is a healing effect, it shouldnt ever be able to kill anything and need to check if a battler dies to itI figured it out. The issue was both the note tag and that i needed to replace "user." with "target." since defending party member is the target. And now it works perfectly
Every time a unit with the armor is hit they regen 5% MP.
Every time a unit with the armor is hit they regen 5% MP.
Original thread: https://forums.rpgmakerweb.com/threads/mp-healing-armor.179983/