Cause an actor to gain a state based on the amount of TP they have?

I've seen this question pop up several times in the MV support forum, but I can't find any answers for MZ. Does Yanfly's YEP work with MZ?

I'm trying to make it so after gaining a certain amount of TP I can apply buffs and debuffs on actors, but I am very unsure of how to do this. And after searching the forums, I haven't found a good answer.
Does Yanfly's YEP work with MZ?
No, they're written for MV. Some (many? most? Haven't counted) will work via Project FOSSIL, but most of it has also been duplicated natively for MZ by VisuStella plugins.

I'm trying to make it so after gaining a certain amount of TP I can apply buffs and debuffs on actors, but I am very unsure of how to do this.
Put a passive state from VisuStella's Skills and States Core onto the actor. Put in its notes
Code:
<JS Passive Condition>
condition=user.tp>=25;
</JS Passive Condition>

and that turns on when the user has 25 TP or more.

Then make that state do whatever you want. You can give it normal Traits in the database like you do with other states. Use the JS Param Plus notetag from VisuStella Core Engine to buff parameters.

Whatever you want.
No, they're written for MV. Some (many? most? Haven't counted) will work via Project FOSSIL, but most of it has also been duplicated natively for MZ by VisuStella plugins.


Put a passive state from VisuStella's Skills and States Core onto the actor. Put in its notes
Code:
<JS Passive Condition>
condition=user.tp>=25;
</JS Passive Condition>

and that turns on when the user has 25 TP or more.

Then make that state do whatever you want. You can give it normal Traits in the database like you do with other states. Use the JS Param Plus notetag from VisuStella Core Engine to buff parameters.

Whatever you want.
Thanks for the help! I was going nuts trying to figure out how to do this.

Original thread: https://forums.rpgmakerweb.com/threads/cause-an-actor-to-gain-a-state-based-on-the-amount-of-tp-they-have.152707/