In my project, I'm using TP as a sort of "balance/poise" system. Us attacking restore poise, us getting attacked drop it.
I also changed stuff a bit, so using Guard option fully restores TP (Gain TP 100%). Now what I'm trying to do is to "freeze" TP when character is guarding. Currently, if I guard, my TP goes to max and I'm not moving for a turn, but each enemy attack still drops it by their value. It obviously isn't ideal, because if we decide to guard at 20 TP not to get off balance, but during our guard we get hit by 7 enemies, each taking 12 TP, we end up with less TP.
So my question is: How can I set the "Guard" state to freeze our TP from any chances that might happen to it during guard?