MV RMMV Yanfly Enhanced TP question regarding states.

I'm attempting to set up a system that will increase the TP of an actor when they are attacked by an enemy, but only with certain states active. Particularly guard states. The actor is a tank class and I want them to gain TP by successfully guarding enemy attacks. I am planning a variety of "guard" type states and am looking for a system that would award TP if any of those states are active on the actor when an enemy attacks him.

Is this possible with enhanced TP? Is there another plugin that might make this possible? Or even a system that will make this possible with another resource? (Not TP)

Thanks.

Original thread: https://forums.rpgmakerweb.com/threads/rmmv-yanfly-enhanced-tp-question-regarding-states.133654/