If Tp reaches X a common event actives. Is it possible?

I got a game mechanic idea, but I got stucked. I don't know how should I make the game react to the Tp reaches 100 or 0. In both cases I want to active a common event, that will deactivate, when the Tp decreases from 100 or increases from 0.
what do you want to happen? it might not need a common event

also when you say deactivate the common event, you mean its supposed to be parallel? parallel and autorun events dont activate in combat
While you can check for TP, you'll need a script command to do so - and that script command is different depending on where and when you want to use it (easy in skill, difficult on map).
Additionally TP may behave differently outside combat depending on an actor's traits.

so we need more details on what you want to do for each case, and what you want that common event to do.
what do you want to happen? it might not need a common event

also when you say deactivate the common event, you mean its supposed to be parallel? parallel and autorun events dont activate in combat
I want to give all party members a state and have an image overlay on top of everything only when the TP is 100 or 0

While you can check for TP, you'll need a script command to do so - and that script command is different depending on where and when you want to use it (easy in skill, difficult on map).
Additionally TP may behave differently outside combat depending on an actor's traits.

so we need more details on what you want to do for each case, and what you want that common event to do.
Simply put only skills will be able to increase or decrease TP, so it has nothing to do in map, only in combat. Fortunately I was able to do that part (It's jacky, but works. Every skill has a common event based on how much TP it gives to the Leader). And only the leader's TP matters.

(Also I have all the Yanfly plugins to use.)
I want to give all party members a state
thats easy enough with yanfly's free passive plugin

have an image overlay on top of everything
you need to be more specific. what is everything in this case? the battler sprite? the UI?
thats easy enough with yanfly's free passive plugin


you need to be more specific. what is everything in this case? the battler sprite? the UI?
Oh sorry! A vignette. So I would count that as an UI. Also thank you for the plugin!!
The TP is different per actor. If the overlay is over the entire screen, whose TP would it be dependent on?
The TP is different per actor. If the overlay is over the entire screen, whose TP would it be dependent on?
Only the Leader (who won't change during gameplay.) The other Tp will be hidden.

Original thread: https://forums.rpgmakerweb.com/threads/if-tp-reaches-x-a-common-event-actives-is-it-possible.173133/