Hi I copied the Phoenix Ring code from here: http://www.yanfly.moe/wiki/Phoenix_Ring_(MV_Plugin_Tips_&_Tricks)
Into my Death State and it works as intended except the ring does not break causing my character to be immortal because he keeps getting revived! Is there a way to fix this?
Into my Death State and it works as intended except the ring does not break causing my character to be immortal because he keeps getting revived! Is there a way to fix this?
<Custom Apply Effect>
if (target.isActor()) {
var ring = $dataArmors[377];
if (target.hasArmor(ring)) {
target.discardEquip(ring);
target.startAnimation(42);
var hp = Math.floor(target.mhp * 0.25);
target.gainHp(hp);
target.startDamagePopup();
}
}
</Custom Apply Effect>