Hello everyone,
I'm trying to make a state that heals the Magic Points of the Actor who kills the enemy.
With YEP Buff & States Core this should be easy, and I tried this:
<Custom Deselect Effect>
if (target.hp <= 0) {
user.gainMp(1000);
}
</Custom Deselect Effect>
But unfortunately this doesn't have any effect on the actor that kills the enemy with this state.
Can somebody give me a hint what's wrong here?
I'm trying to make a state that heals the Magic Points of the Actor who kills the enemy.
With YEP Buff & States Core this should be easy, and I tried this:
<Custom Deselect Effect>
if (target.hp <= 0) {
user.gainMp(1000);
}
</Custom Deselect Effect>
But unfortunately this doesn't have any effect on the actor that kills the enemy with this state.
Can somebody give me a hint what's wrong here?