Condition is Applied when TP = 100

I've learned that using Custom Passive Condition you can apply a passive state and it will last for a set number of turns.
My issue is that i need it to check if the units TP has reached 100 to be activated and it must work for Actors and for Enemies as well.

Could someone help me with it?

Plugins required:

<Custom Passive Condition>
condition = ;
</Custom Passive Condition>

<Custom Leave Effect>
user.addState(5);
user.setTp(0);
user.startAnimation(54);
</Custom Leave Effect>
How about this:

Code:
<Custom Passive Condition>
  if (user.tp >= 100) {
    condition = true;
  } else {
    condition = false;
  }
</Custom Passive Condition>
I'm a bit rusty but would
Code:
if (user.tp >= 100) {
   condition = true;
  } else {
   condition = false;
  }
work?

Edit: Beaten to it.
Thx for both of you.

I was able to solve the issue making 2 separated states.

Original thread: https://forums.rpgmakerweb.com/threads/condition-is-applied-when-tp-100.115890/