Changing TP in battle?

Is there a way to change this? I want to rename TP to EP because EP fits my use of the attribute better (It's more a true energy gauge, minus starting at 100 points, but that's a script probably, and something I'll ask about later in another post). However, in combat, it still reads as TP for cost purposes, despite the resource being called EP. Is there any way to fix this?


TP to EP.PNG


This is what I'm referring to, just in case you need/want a picture. If it matters, I use Yanfly's Battle Engine.


Thanks!
Why do you believe it would need a script?


You just need to rename it in the database, terms tab, that should be all - unless you're using specific scripts that create scenes ignoring the default name.


In that case you need to edit those scripts - but by default, the name for TP is nowhere in the scripts (and the scripts should not be changed to change that).


If you have changed it in the database and can't find the custom script that ignores that change, then you need to link all the scripts you've installed if you want our help finding it.
Sorry, I was unclear with that. What I meant was I'm eventually going to look for a script that causes battles to start at 100 TP. That was my fault for being unclear.


However, maybe it is one of my custom scripts that's changing the cost to say TP? Here's what I have.

Custom States.PNG
To have all battles start with 100TP you don't need a script, that can be done with eventing as well. Your actors need the "preserve TP" feature, that will disable the randomization of starting battle TP and make them keep the last TP-Value from the last battle. And then you can simply change that by adding 100 TP (because 100 is the max, the excess points above 100 will not be counted)
To have all battles start with 100TP you don't need a script, that can be done with eventing as well. Your actors need the "preserve TP" feature, that will disable the randomization of starting battle TP and make them keep the last TP-Value from the last battle. And then you can simply change that by adding 100 TP (because 100 is the max, the excess points above 100 will not be counted)

How would that be done? If I boost the TRG of a character to + 100% they literally just regenerate 100% every turn, which isn't what I want. I know how to add the Preserve TP (it's a special flag), but how would I handle the ensured start at 100?
Unfortunately the change TP command was introduced only in MV, in the case of Ace you'll either need a script line or need to force action an invisible skill.


I suggest checking the topic about the damage fomula on how to add TP, or wait until someone who knows the script command to post it here (I don't have it available at the moment)
Go into the scripts, hit Ctrl-Shift-F, and search for "init_tp".


If none of the scripts you are using affect it, then only one line that says "def init_tp" should come up. If there are scripts that modify it, choose the line that comes from the scripts.


Then just set "self.tp = 100".
Sweet! Thanks, lilyWhite! That's done it 🙂

Original thread: https://forums.rpgmakerweb.com/threads/changing-tp-in-battle.56634/