So, in my game I have a skill called "Endure" which allows an actor to survive an attack that would normally kill them at 1 HP. I found another person asking the same question on the forum, and this was the final answer.
Well, that's all fine and dandy, but they never specified a way to get the state the only be removed if the state is activated. I know that it must involve some sort of If-then code, but I don't know javascript. @Riff or anyone else, if you're out there, please tell me what additional code I should add in order to have the state be automaticly removed when the state activates. Thanks!Hello!
If you use Yanfly's Buff & State Core, you can use the following notetag in your Endure state:
<Custom React Effect>
if ($gameParty.inBattle() && !this.isCertainHit() && value >= target.hp) {
value = target.hp - 1;
}
</Custom React Effect>
If you wanna endure one hit only, simply check the 'Remove by Damage' box.
You can also use <Action Start: 1> to make it last until that battler's next turn.
Hope that helps!
- Riff


