MZ TP Condition events?

I tried looking and I don't know if I'm just BLIND... but trying to make conditional events based on how much TP you have.

Basically, treating TP as the opposite of what it normally is. Its your Withdrawal gauge and as it decreases, negative passive states get added on to your character. But I just can't figure out a way to reference it in a conditional branch.

I am using this plugin for some of its decreasing behavior: http://www.yanfly.moe/wiki/Enhanced_TP_System_VisuStella_MZ

But not sure if there is a plugin or simply a script call based on the plugin or something I can use to reference it.

Thank you!
control variable : game data : (actor or enemy) : TP
will get you the current TP of any actor or enemy in the battle, and then you can use conditional branch to check the value

no need for either script or plugin.

EDIT: the troop event needs a condition like once per turn because you don't have any TP option in the conditions.
control variable : game data : (actor or enemy) : TP
will get you the current TP of any actor or enemy in the battle, and then you can use conditional branch to check the value

no need for either script or plugin.

EDIT: the troop event needs a condition like once per turn because you don't have any TP option in the conditions.

If its not too much trouble, could you show me how I might set that up? Basically, using the plugin I mentioned, I have passive states set to activate when switches are turned on.

So...
≥75 (you are good, nothing happens)
50 to 75: Switch 1 activates, Negative Passive 1 is unlocked
25 to 50: Switch 2 activates, Negative Passive 2 is unlocked
1 to 25: Switch 3 activates, Negative Passive 3 is unlocked
0: you die

This only effects the player naturally. And how might I do this same thing in a common event outside of battle?

Sorry, not used to using game data calls haha.

Thank you!!
Instead of trying to use switches, why don't you just make the TP value be the condition for the passive states?

e.g.
Code:
<JS Passive Condition>
condition = user.tp >= 50 && user.tp <= 75;
</JS Passive Condition>
Instead of trying to use switches, why don't you just make the TP value be the condition for the passive states?

e.g.
Code:
<JS Passive Condition>
condition = user.tp >= 50 && user.tp <= 75;
</JS Passive Condition>
Didnt know I could do that! I was looking all over and thought I could only use switches haha.

Worked perfectly! Thanks!!

Original thread: https://forums.rpgmakerweb.com/threads/tp-condition-events.169506/