In Pokemon, Endure allows you to survive any hit that will cause you to faint when using the move for the next turn.
E.G: Victini is hat 50 HP, Victini uses endure, Pachirisu uses Discharge, Victini endures the hit, Victini's current HP: 1
I think you will need Yanfly's States and Buffs scripts, and then use lunatic code to recreate it. Should be doable from there. Unfortunately I don't know the code, so will have to ask on the JavaScript forums for that one more than likely.
I doubt I will get any answer from the boards but thanks anyways.
It's something you'd need to script if you want it to work like Pokemon. If no one will make this script for you, get into the code and make the changes yourself; this kind of thing is pretty basic. I've seen you make a lot of requests so learning to do it yourself will be necessary in the long run anyhow. Figure out where the death state is applied (when a battler is reduced to 0 HP), and if the battler has the state applied (and has 0 or less HP), set their HP to 1 instead of applying the death state.
The closest you can get without scripting would be to have a state that lasts for as long as you want it to which has the Resist State: KO feature. The major difference between this and how it works in Pokemon is that this state will allow the user to keep battling while at 0 HP, and when it's removed I think the user dies unless they've been healed above 0 HP.
I would just add a state that makes the user resist KO, and add a low hp regen% with it as well(somewhere that gives at whatever level the skill is learned the user 1hp)
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