Disable TP gain outside battle?

Hello. Is it possible to make TP gain 0 outside battle? For example 'Heal' skill, or 'Potion' item, if used in-battle, the user gain 30 TP. But outside battle, the user are not supposed to gain any TP at all.

Any way to do this? Thanks in advance!
You need to check your plugins. By default, there is no TP outside of battle - TP isn't saved or accrued. You must have chosen to install something which modifies that.
You need to check your plugins. By default, there is no TP outside of battle - TP isn't saved or accrued. You must have chosen to install something which modifies that.
Oh you're right. It's strange though that caused this was Visustella's SkillStatesCore. Why this plugin affects TP gain outside battle?

I tried clean new project with only these plugins and the issue is there.
plugins.png


I don't know which setting to fix it though... there's nothing about TP gain in any of the plugin settings. And I'm clueless about JS. Any ideas?
I couldn't find anything to turn this off either, and decided to just have peace with it... I suppose that you could hide the TP gauge outside of battle, and set it to zero in a pre-battle common event (for example by using VS BattleCore).
I mean, there is a publicly documented process for submitting bugs to the VisuStella team.
There is. I actually have in the past submitted an inconvenient expected behavior (bug hereinafter). They did respond with the solution so I do think they are very committed. I just haven't gotten around to reporting this one: it's often a little bit of work creating a project illustrating the problem in isolation (this is something they -understandably- require before doing any research), and the workaround is pretty straightforward.
I suppose that you could hide the TP gauge outside of battle, and set it to zero in a pre-battle common event (for example by using VS BattleCore).
Okay I'll try this. I also found a thread where there's a script for resetting TP pre-battle by Arthran. I just set it to 0 and it works.

Thanks for the help, everyone!
I thought the system would reroll TP at the beginning of each battle? In which case this would only be an issue if you have out-of-battle skills fueled on TP.
@pawsplay Oh, I use visustella plugins, and set the initial TP always to 0, since I don't want random. That's why I don't want any actor to gain TP outside battle.
I thought the system would reroll TP at the beginning of each battle? In which case this would only be an issue if you have out-of-battle skills fueled on TP.
In my case, I have a character class with the added perk of TP carry over… with TP being gained outside of battles this class will be unfairly advantageous so yeah it’s a balance issue that I need to fix sometime.
@pawsplay Oh, I use visustella plugins, and set the initial TP always to 0, since I don't want random. That's why I don't want any actor to gain TP outside battle.

So doesn't TP always start at 0 in battle, even if they gained TP outside battle? Or am I misunderstanding?
I thought the system would reroll TP at the beginning of each battle? In which case this would only be an issue if you have out-of-battle skills fueled on TP.
I would also consider it an issue if the player sees their TP changing/filling in the menu screen at all. TP is supposed to reset to 0 at the end of each battle, and then reroll at the beginning of the next.

It's bad/confusing design to see a resource present in the menu and then it's arbitrarily taken away when battle starts.
So doesn't TP always start at 0 in battle, even if they gained TP outside battle? Or am I misunderstanding?
Sorry I didn't word it clearly! By default, yes, you cannot gain TP outside of battle. And by default, TP always rerolled before battle.

The problem came from a bug caused by one of visustella plugin (Skills & States Core). The bug causes TP system to always 'enabled' inside and outside battle, even override the 'initial 0' setting (using EnchancedTP plugin by also visustella, ironically).

This thread probably should be in the plugin support/request section instead of here. My bad.

Original thread: https://forums.rpgmakerweb.com/threads/disable-tp-gain-outside-battle.159689/