Animation when taking damage?

Is there an easy way to set up an animation to play on my actor when taking any damage including 0 damage?

I want to recreate the effect made by yanflys barrier absorption where an animation will play if an actor takes damage while having barrier points. I'd like to create a state like protect, so when the player gets hit, a barrier animation plays while the state is active. I would use yanfly's plugin but I run into incompatibility issues with moghunter huds that i'd rather not lose.
JS Plugin Releases is, as the name suggests, the place where plugins which people have written for use by the community are released. It is not for asking general questions.
Moved to: RPGMaker MV

Original thread: https://forums.rpgmakerweb.com/threads/animation-when-taking-damage.84250/