How to get actor's TP in a common event?

"Preserve TP" of all actors is activated.

I would like to save all actor's TPs to variables.

However, in "Control variables",

I can retrieve an actor's level, hp, mp ... etc.

There is no TP on the list of GameData.

What can I do?

Thanks for any help and advice.
"Preserve TP" of all actors is activated.

I would like to save all actor's TPs to variables.

However, in "Control variables",

I can retrieve an actor's level, hp, mp ... etc.

There is no TP on the list of GameData.

What can I do?

Thanks for any help and advice.
I do not not know the script for this.  

But you might find this script helpful:

$gameActors.actor(1).tp > 100

You can use this script on page 4 of your conditional branch to check the TP values of individual actors.  Just simply adjust the numbers to fit your own situation.

Also, thanks for pointing out you can "Preserve TP" of actors in your question.  I had no idea I could do that. ^^
I do not not know the script for this.  

But you might find this script helpful:

$gameActors.actor(1).tp > 100

You can use this script on page 4 of your conditional branch to check the TP values of individual actors.  Just simply adjust the numbers to fit your own situation.

Also, thanks for pointing out you can "Preserve TP" of actors in your question.  I had no idea I could do that. ^^
On the official script list, there is no tp property of $gameActors.actor(1
On the official script list, there is no tp property of $gameActors.actor(1
I'm not sure what you mean.

It was Shaz who told me about that script I gave you.  I didn't get it off of the official script list.  

It works - at least for me it does.  While it won't allow you to get the TP of an Actor directly - it should allow you to create conditional branches inside your common event based on the amount of TP your actors have.  I thought that might be of some use to you.
sorry about incomplete sentence.

There is an Excel file containing all the script calls.

But I can not find $gameActors.actor(1).tp

I actually did find $gameActors.actor(1).gainTp(n)

but this means the actor will get a certain amount of TP.

What I need is to set a variable whose content is an actor's current TP.
sorry about incomplete sentence.

There is an Excel file containing all the script calls.

But I can not find $gameActors.actor(1).tp

I actually did find $gameActors.actor(1).gainTp(n)

but this means the actor will get a certain amount of TP.

What I need is to set a variable whose content is an actor's current TP.
There is probably a way to do it, I just don't know what it is.  

In the meantime - until a more direct answer comes along - you might could try creating your own variables using that conditional branch I showed you.

For example:

If : Script : $gameActors.actor(1).tp = 100

Control Variables : #0001 Actor1_TP = 100

End

If : Script : $gameActors.actor(1).tp = 99

Control Variables : #0001 Actor1_TP = 99

End

If : Script : $gameActors.actor(1).tp = 98

Control Variables : #0001 Actor1_TP = 98

End

If : Script : $gameActors.actor(1).tp = 97

Control Variables : #0001 Actor1_TP = 97

End

If : Script : $gameActors.actor(1).tp = 96

Control Variables : #0001 Actor1_TP = 96

End

If : Script : $gameActors.actor(1).tp = 95

Control Variables : #0001 Actor1_TP = 95

End

....etc. 

I'm aware that's a lot of conditions.  But you could write a common event that gets the data and just call it when ever you need it.  So at least you would only have to write them once per Actor.  So I don't think it would be that bad.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-get-actors-tp-in-a-common-event.54311/