I need help creating a state that lets the target survive a fatal attack with 1 HP left, and auto-removes itself only after preventing a fatal attack. I've looked through the eventing options, but I fear I might need a line of code, or script for this... Anybody could help?
Creating a state that survives fatal damage on 1 HP...
RPG Maker MV SupportYanfly's buffs and states core makes this an easy task.
<Custom React Effect>
if (value > target.hp) {
value = target.hp - 1
target.removeState(350)
}
</Custom React Effect>
<Custom React Effect>
if (value > target.hp) {
value = target.hp - 1
target.removeState(350)
}
</Custom React Effect>
Original thread: https://forums.rpgmakerweb.com/threads/creating-a-state-that-survives-fatal-damage-on-1-hp.92185/