I'm planning on including a Guts state featured in Yanfly's 'Second Chance' Tips & Tricks video but the original way he sets it up only revives you at 1 HP. I plan on making 10 variations with a increasing percentage of HP restored instead, but I don't know how to make the change in the notetag:
The target.setHp(1) part is where the HP restore effect is set. How do I set it to a percentage of Max HP instead?
Code:
<Custom Respond Effect>
// Check to see if the party is in battle, has the Second Chance flag, and if the target is dead with 0 HP.
if ($gameParty.inBattle() && target._secondChance && target.hp <= 0) {
// Play the revival animation.
target.startAnimation(49);
// Set the target's HP to 1.
target.setHp(1);
}
</Custom Respond Effect>
The target.setHp(1) part is where the HP restore effect is set. How do I set it to a percentage of Max HP instead?