Chance to get back up (instead of K.O) increased by LUK stat?

Thank you,
I had it coded wrong it seems.
Here's what I have at the moment:


4d28270ab6d41745e7851ecae451eb6a.png


I also tried to add that by default hp recovered is 10% but expanded upon by the luck stat. Did I do that okay?

And say, if Fayhe dies mid battle and resses, and then my 2nd char Lumia dies too, does the variables used here (ResChance/NumRessbattle) interfere? Does she need a seperate variable for her? E.g. NumResBattleFayhe and NumResBattleLumia?

And edit: out of curiosity, why did you add labels?
If you want to add 10% of luck to the amount healed, then that looks right.

Yes, you'll need a separate variable for other characters if they can res mid-battle too. You'd then check the combined value of the variables for whatever your max cap is.

I added a label just so you don't have to repeat the same code for whatever happens if a res fails. Jumping to the label means you only need to code the branch once and both of them will do the same thing.
Alright 😀 thank you for the help Trihan.

Original thread: https://forums.rpgmakerweb.com/threads/chance-to-get-back-up-instead-of-k-o-increased-by-luk-stat.123496/