TP Mechanic?

A while ago, I asked if the processing for tp could be changed a bit so that, instead of increasing each time the player's hit, it'd decrease. (The post is here.) I had almost had it working, with just a few issues to work out, when my copy of VX Ace stopped working. (Note to self: Don't mess with Steam Workshop-related things while on Airplane Mode.) Since I don't want to just give up on the game I was making in VX Ace, I'm in the process of remaking it in MV.

So now I want to know if that same mechanic can be done in MV. If it can be done, I'd like to know how this could be achieved.

Thank you for your time.
Why don't you reainstall Ace to get it working again? that should be enough.


That said, the engines handle TP identical, but the script language has a different syntax - you'll need to use the javascript-equivalents of any RGSS code used previously.
I've already tried reinstalling VX Ace, but I still couldn't get it to work. Which was quite frustrating since I'd been about 57% of the way done with the game I was working on.

I suppose what I'm really asking is if there's a way to make a state only be applied when an actor's tp is at a certain amount (in this case, 0 tp). Can that be done via the database itself, or would that require a plugin? (The reason I ask is that I'm no good at programming, I'm ashamed to admit. I've tried learning Ruby and it never quite made sense to me. As for Javascript, I'm not much better.)

Edit: I think I've found a way to have the skill appear when the player's tp is at 0. However, I still haven't figured out a way to change the way MV processes TP. Any help on how to do this would be greatly appreciated!

Edit: I've found a way to make the tp start at 100 and drop at each hit (was a lot easier than in vx ace, actually). Now I just want to find out how to make skills not affect the tp (since each time one of the actors uses a skill, the tp drops as well).

Edit: Well, it seems Yanfly's TP Manager does the trick. Hooray for Yanfly's awesome plugins (if only they'd respond to my comment on their actor variables plugin...)

Original thread: https://forums.rpgmakerweb.com/threads/tp-mechanic.51913/