Use TP to make an Overdrive/Limit Break System

Hey guys!


I'm struggling right now trying to make a system in which the game will check for an Actor's TP in battle for when it's full, or at 100.


I already have plugins and branches in place that would switch out the battle commands to substitute "attack" for "Limit Break", but my trouble is finding out how to get the game to check for an actor's TP to initiate the change.


Right now I have a conditional branch that is supposed to trigger the switch, but I feel like that might be where my gap is?


$gameActors.actor(1).tp > 99




The closest thing I can compare what I'm trying to do would be in the Final Fantasy games (VII would be the closest example of what I'm trying to achieve), where when a Limit becomes available, the command changes and gives you the opportunity to use the Limit.


If anyone has this down for MV and has screenshots of the script or event, that would be awesome. 


Any help or knowledge would totally be appreciated!!
You need to better describe where your problem is. What, exactly, isn't working? The check? Or the command swap? Also, what scripts/plugins are you using?
You need to better describe where your problem is. What, exactly, isn't working? The check? Or the command swap? Also, what scripts/plugins are you using?



I'm pretty sure it's the check.


The script I'm using now is the one in the original post,



$gameActors.actor(1).tp > 99


I'm using that as a conditional branch along with HIME ActorCommands to hide and show/hide commands. For example, normally the regular commands are showing, then when the check for TP clears, the Attack command is replaced with the Limit skill type instead, and then after it's used it would go back to the normal commands. I also have Yanfly's Battle engine, but I'm not using it for this particular function. Do you think there's something missing?
Try this instead:


$gameActors.actor(1)._tp > 99


Notice the "_". Let me know if it works.
I put down the "_" but no luck.

Should I make the script "= 100" rather than "> 99"?
Screen Shot 2016-03-08 at 11.58.34 AM.png
Use a variable instead. For each actor that uses the overdrive sysyem you'll have a variable.Using the control varaible function you'll set the varible to $gameActors.actor (x)._tp, with x being whatever actor tp you wish to set the varible to. Then using the conditinal branch check if the varible is > 99 or =100 and under that branch put whatever you need for your limit brake system.
This is a screenshot of trying it out, but it's still not getting them to switch when the variable checks for tp?

How would you have this set up? Maybe I'm ordering it wrong

Screen Shot 2016-03-10 at 12.59.18 AM.png
Change the event from turn 0 to turn 1*x and change the span from battle  to turn. (This way it checks every turn at the begining.)
That. Freakin. Did it. 

You honestly have no idea how grateful I am, I've been driving myself crazy, and my sanity thanks you <3


Now all that's left is just to do it for everyone else.


Thank you so much!!
You're welcome

Original thread: https://forums.rpgmakerweb.com/threads/use-tp-to-make-an-overdrive-limit-break-system.58264/