Linking TP to State

Hello. I only just recently started using RPG Maker, so I'm not entirely familiar with it. Apologies if this seems like something easy to solve, but I genuinely can't figure it out.

I want to make it so that when the TP bar reaches 100%, the player would be afflicted with one of the states like paralysis or stun. How would I go about implementing something like that?

Thank you for your time. Hope y'all have a good day/night!
How I did it in my project, is to create a variable for each of actors. At the beginning of combat, I set up in troop event to activate common event, that ties actor variables to game data (actor TP). This repeats at the end of each turn (you can choose when the check is happening). You can add a conditional tree to event like that, which will check if specific Actor TP variable is equal to 100, then add state to that character. I hope that helps.
How I did it in my project, is to create a variable for each of actors. At the beginning of combat, I set up in troop event to activate common event, that ties actor variables to game data (actor TP). This repeats at the end of each turn (you can choose when the check is happening). You can add a conditional tree to event like that, which will check if specific Actor TP variable is equal to 100, then add state to that character. I hope that helps.
That definitely does help quite a lot. Since it's just one character, it shouldn't' be too hard to implement, right? Would it be something like if the player's TP = 100% add stun? Something along those lines, right?
Yes,
If Actor TP Variable = 100
Add State to that Actor.
Hello. I only just recently started using RPG Maker, so I'm not entirely familiar with it. Apologies if this seems like something easy to solve, but I genuinely can't figure it out.

I want to make it so that when the TP bar reaches 100%, the player would be afflicted with one of the states like paralysis or stun. How would I go about implementing something like that?

Thank you for your time. Hope y'all have a good day/night!
Let me see if I can give this a better definition, for help.

Player attack should not grant tp (completed)
Enemy attack should give the player tp, around 5-15
When the player's tp reaches 100, a debuff should be applied
While the debuff is active, the player should be unable to move for three turns and the tp is reduced by 34% each turn (completed)
So, there was a way to do this in MV with Yanfly plugins, and it would be exactly what you need here. For reference reasons:

Now, that won't work in MZ as is, but if you happen to use the VisuStella Skills and States Core, @Trihan actually recreated this Trance state (he actually did all of them). Just find the spoiler for the Trance state, copy the code into the notebox of the state you're using to paralyze an actor, and make the relevant changes to how much TP is drained per turn.

Original thread: https://forums.rpgmakerweb.com/threads/linking-tp-to-state.160404/