How do you modify the default behavior of TP?

I want to do four things:

- Make there be one TP meter for the whole party, that only raises when the party does something

- Keep a counter of every time the TP meter fills, whose state is maintained the whole game (how do you make a serializable variable? I haven’t gotten that far)

- Make TP never raise except for that which I specify (using certain spells, killing certain enemies)

- Make killing certain types of enemies raise TP (mentioned last point but I want to emphasize it)

Either that or I can make a new meter, but I’d rather modify something that’s already there. I am new to RPGMaker but not to software development.
I appreciate the desire to modify what exists, but you want to modify it so much from the code that exists that it might be less work to just construct a new thing rather than change and disable so much of what's there.

What program is this for? Your profile says you use MV, but you posted in MZ support.

I think you could easily implement most/all of what you're asking about using a limit break plugin - if you're on MV, Yanfly's Party Limit Gauge can do, I think, everything you're asking for.
What about doing it like this?
I appreciate the desire to modify what exists, but you want to modify it so much from the code that exists that it might be less work to just construct a new thing rather than change and disable so much of what's there.

What program is this for? Your profile says you use MV, but you posted in MZ support.

I think you could easily implement most/all of what you're asking about using a limit break plugin - if you're on MV, Yanfly's Party Limit Gauge can do, I think, everything you're asking for.
I must have clicked the wrong thing setting up my account. It’s MZ.
Okay. My quick Google doesn't come up with any equivalent plugins written for MZ.

The Yanfly plugin is listed as compatible with MZ via Project FOSSIL, but then you're purchasing a plugin for the wrong engine, counting on it to work.

You could try using SRD's HUD Maker or VisuStella's Variable Gauges to draw the gauge, but then you'd have to program in the functionality of making it go up and down when you want to.

You should be able to do that using VisuStella's Battle Core and Skills and States notetags.

You can also try going the route you asked about in the first place, modifying TP, but I think it would be more trouble to use a TP-modifying plugin (pretty sure VisuStella has one of those, too) and also coding things together to somehow combine the TP of the multiple actors, rather than just using a new single variable to track it.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-you-modify-the-default-behavior-of-tp.160518/