Script to call for party X member's TP regen rate.

I am in need of a script that will store the value of party member X's TP regen rate just like below:
I don't know at all how it would be done but would be greatly appreciated for any tips or tricks for how to store it as a variable. And also note that it is the party member, not actor X as the function will only take the 1-4 active combatants TP-regen into account.

Best regards,
Bishiba
I believe this should work (in a Control Variables script call):

Code:
$gameParty.members()[1].trg

That will store the TP regen rate of the second party member in the variable. (The first party member is 0 for this script call, so you have to subtract 1 from the X you want.)
I believe this should work (in a Control Variables script call):

Code:
$gameParty.members()[1].trg

That will store the TP regen rate of the second party member in the variable. (The first party member is 0 for this script call, so you have to subtract 1 from the X you want.)
Thanks, this worked perfectly.

Best regards,

Original thread: https://forums.rpgmakerweb.com/threads/script-to-call-for-party-x-members-tp-regen-rate.123670/