TP Level Up Formula

Hi everyone,

I was wondering if it was possible to have each actor have their own TP level up formula and have it cap no matter what at 999. I know how to do the first part and create the custom level up formula (currently using something simple like self.hp / 10 for example), but I don't know how to make sure it doesn't go past 999. The problem here is that it either reaches 999 too quickly and goes past it or doesn't get there at all. I realize that the issue with creating custom formulas without knowing how to create a specific curve like in the database for other stats (such as ATK) is that when you do something such as self.atk / 2 each level, if high enough, it has the chance to go over 999. I know I could have TP increase by 10 for each level, but that is not very interesting, especially for multiple actors. Therefore, I'm willing to allow actors TP to reach 999 before actually getting to level 99 - it's just a question of having it stay there. What I really need is some sort of barrier or checkpoint that blocks it from going any higher. Is this feasible?

Thanks
Why are you trying to link TP and levelling? EXP already does that, and already has the ability to set up curves.
Well, I'm using TP as somewhat of a secondary MP. MP is what certain actors use to preform skills (magic based) whereas others use TP to use skills (physical based.) I'm basically just trying to create an alternate MP that functions in the exact same way (leveling, cost, restoration etc.) except with TP, which is calculated by doing certain actions in battle specific to each actor (this I have done). Is this possible to do/is there a script that does it? 
Here's the script for TP: https://pacmanvx.wordpress.com/2012/04/25/tp-system-overhaul/
Yes, that's what I'm using so that TP levels up with the actors - the problem is that it doesn't cap at 999 like other stats. Is there a specific string that can do something like this: formula for TP gain on level but if value is already at 999 then there is no gain and it stays at 999.
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


It would have been helpful if you had said in your original post that you already have a script, and provide a link to it 😉
Ah, gotcha sorry. I thought of the two as separate topics, as I was looking for the specific part and didn't think that correlated directly with the script. Either way, I'm still a little stumped. If this isn't possible, does anyone know of a script that creates something like an alternate MP? If so, I could use that and just have TP be used for limit breaks or something. 

Original thread: https://forums.rpgmakerweb.com/threads/tp-level-up-formula.38102/