Passive Ability

Is there a way to make a passive skill that gives 10% chance to revive automatically the character after it is knocked out?
(Also using the Yanfly Passive Abilities Plugins)
Try the following in a passive state. You'll need Yanfly's Buffs+States Core as well to make it work.
Spoiler: State Notetag
<Custom Respond Effect>
if (target.hp <= 0 && Math.randomInt(10) === 1) {
target.gainHp(Math.ceil(target.mhp*.3));
target.startAnimation(49);
target.startDamagePopup();
target.clearResult();
}
</Custom Respond Effect>
That will revive the character with the passive state with 30% of their Max Health. Change the ".3" to whatever percentage you wish - so .5 is 50%, .15 is 15%, so on and so forth. Let me know if that does what you need!
It's exactly what i needed, thank you very much!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/passive-ability.115218/