Which script line should I use to achieve that? Thanks in advance!
MV Assign the number of TP of a given character to a variable
Javascript/Plugin SupportHiya,
Assuming you know the ID of your character, it'd be this in the script field of Control Variable to get the current amount of TP an actor has:
With the x there being the ID of the actor (so $gameActors.actor(1).tp for the first character in the database, etc.. The code might need to be altered depending on the way you're using it (like if it was based on any number of characters using a move, etc.), but if it's the same character no matter what then that'd work fine.
Assuming you know the ID of your character, it'd be this in the script field of Control Variable to get the current amount of TP an actor has:
Code:
$gameActors.actor(x).tp
With the x there being the ID of the actor (so $gameActors.actor(1).tp for the first character in the database, etc.. The code might need to be altered depending on the way you're using it (like if it was based on any number of characters using a move, etc.), but if it's the same character no matter what then that'd work fine.
Original thread: https://forums.rpgmakerweb.com/threads/assign-the-number-of-tp-of-a-given-character-to-a-variable.166386/