Recover MP whenever you kill any enemy in a battle.

Maybe the problem comes from your plugins list. Try to put Skill Core quite high.
Maybe the problem comes from your plugins list. Try to put Skill Core quite high.
Did it. I still got the same result.
Do you have YEP_Core Engine installed ?
Do you have YEP_Core Engine installed ?
A-ha. I found out that's the reason why I keep getting this error.
But I still seem to have issues with recovering MP. I still can't seem to recover MP, but at least I found out about what keeps causing this error.
Maybe add these lines after user.gainMp(value)

user.startDamagePopup();
user.clearResult();
Maybe add these lines after user.gainMp(value)

user.startDamagePopup();
user.clearResult();
1605810821752.png

It still doesn't work.
What do you have when you perform the skill ?
What do you have when you perform the skill ?
Whenever I perform the skill, it just functions normally.
Except that I don't actually get to recover any MP whenever I kill an enemy.
Very odd. Try with Pre Eval conditions and (value >= target.hp) in the if parenthesis
Very odd. Try with Pre Eval conditions and (value >= target.hp) in the if parenthesis
The same issue happens.
Maybe it is a capital sensitive problem.

Try "target.Hp"
Maybe it is a capital sensitive problem.

Try "target.Hp"
Same issue still happens..
I can't see what I miss... Maybe it is a plugin incompatibilty. I can suggest you to try the code in a blank project with only YEP_Core and YEP_Skill Core.
I can't see what I miss... Maybe it is a plugin incompatibilty. I can suggest you to try the code in a blank project with only YEP_Core and YEP_Skill Core.
I'm kind of starting to give up..
1607366932471.png

Apologies for double posting (and necro posting), but I decided to try out Joewoof's common event method.. At first, it didn't work, but when I tweaked it a little bit, it finally worked!
Thank you so much Joe (you too Boonty and udime)! Now I feel very satisfied. 😀

Original thread: https://forums.rpgmakerweb.com/threads/recover-mp-whenever-you-kill-any-enemy-in-a-battle.129682/