Overheat - Replacing TP Gauge

I thought of an idea but getting mixed responses on my google fu.

Idea goes that if you hit 100 on your TP gauge you enter an overheat state. This could do many things depending on what you want for the game but the problem first comes in figuring out how to make the game check TP and fire it off automatically. I mean I can't even make a conditional branch to check this(as it shows off HP and MP but not TP).

Thoughts on how to go about this?
Try doing something like this:

1602799537358.png


In this case it takes the first character's TP and puts it into that variable.

And yes it would have been nice if they'd included TP into something you could read easily instead of just modifying it........
Okay so, here's the idea then and this could use some polishing;

Troop Event;
Check TP(Through Variable)
If TP is = 100
do
Remove all TP. Apply Overheat State.

The problem now comes into how to check each each character's TP in a timely manner. I mean I could rig up a checker for each one.

For now maybe get it working with just one.

Original thread: https://forums.rpgmakerweb.com/threads/overheat-replacing-tp-gauge.128729/