Linking my TP amount to a game variable?

Hey,

I am trying to link my TP amount to a game variable is this possible?

Ex, I have a stamina setup that has a game variable, I want to have it so my TP amount is linked to my stamina's game variable.
Could you give me a bit more information about that when you say link?
If you try to hold two variables in a single game variable it'll snap in half.

So, you can definitely store your TP amount in a game variable though.
How many party members do you have, and do you want them ALL to have that amount of TP?

This function in rpg_objects.js sets up the TP to a random amount at the start of each battle:
Code:
Game_Battler.prototype.initTp = function() {
    this.setTp(Math.randomInt(25));
};

You could change it to this:
Code:
Game_Battler.prototype.initTp = function() {
    this.setTp($gameVariables.value(5));
};

to set it to whatever is in variable 5, but that would make it the same for all actors in your party. And if enemies have tp, it would affect them as well.

Original thread: https://forums.rpgmakerweb.com/threads/linking-my-tp-amount-to-a-game-variable.81557/