Run event when enemy takes damage?

Hi!

I have an event I want to run when one specific enemy takes damage.

The enemy is a puppet who's MP should always be equal to the amount of damage it took, so I came

up with an event that changes his MP based on how much damage it took.

Not sure how to do this, I tried using a script which allowed enemies to counter with skills, making the skill run a common event.

However, counters negate the damage entirely, so that didn't work.

Help appreciated! thanks!
I misread this entirely.  Ignore what I said previously.   🙁
bump
Is your puppet going to engage in an event encounter or random encounter?
Is your puppet going to engage in an event encounter or random encounter?
It's an event encounter.

Original thread: https://forums.rpgmakerweb.com/threads/run-event-when-enemy-takes-damage.40078/