As we all know, there's multiple ways of creating an "Endure" state in RPG Maker MV.
For those of you who don't know, an "Endure" or "Guts" state is a state where upon taking fatal damage, a character is revived or holds on with minimal HP. I'm using Yanfly's second chance code to replicate this in my game, however, I want to add an extra line of code that will give this effect a chance to occur depending on the characters luck stat.
I've been having trouble accomplishing this however, and would like some help.
Here are the endure codes:
Basically, I want to add a formula to calculate the chance of this effect happening. Something like if = a.luk / 2 . That way, a character with a high luck chance will have a better chance of activating the endure effect in battle.
Thank you for reading through my thread!
For those of you who don't know, an "Endure" or "Guts" state is a state where upon taking fatal damage, a character is revived or holds on with minimal HP. I'm using Yanfly's second chance code to replicate this in my game, however, I want to add an extra line of code that will give this effect a chance to occur depending on the characters luck stat.
I've been having trouble accomplishing this however, and would like some help.
Here are the endure codes:
Basically, I want to add a formula to calculate the chance of this effect happening. Something like if = a.luk / 2 . That way, a character with a high luck chance will have a better chance of activating the endure effect in battle.
Thank you for reading through my thread!