Is there any way to make a state that when inflicted on enemies, heals the actor who damages it by a certain amount?
plugins are accepted
thank you
plugins are accepted
thank you
Sorry, but isn't that an MV plugin? Is there one for MZ?
the plugin you use to run it is for MV, but the code itself works for either one.
<Action Respond Eval>
// Check to see if the skill deals damage.
if (skill.isDamage() && value > 0) {
// Sets the Heal Rate to 15% of damage dealt.
var rate = 0.15;
// Makes the attacker gain health equal to the damage * the rate.
user.gainHp(Math.ceil(value * rate));
}
</Action Respond Eval>
Original thread: https://forums.rpgmakerweb.com/threads/state-that-heals-actor-upon-hitting-the-statused-enemy.173851/