MZ Plugin That Tweaks Some TP Settings

Any plugins out there that make the party share TP? I don't mean like the Yanfly Party Limit Gauge, just the normal TP bars are fine.

I've looked around for a while, but I can't find any plugin that does this. Any help or guidance would be appreciated. Thanks 🙂

Edit: Not a big requirement, but maybe could someone help with setting TP to 0 when battles start?
Would this help? Activate with plugin command SharedStat TP 0.


Edit: sorry apparently missing plugin commands for MZ...
Would this help? Activate with plugin command SharedStat TP 0.


Edit: sorry apparently missing plugin commands for MZ...
Yep, MZ must be broken for it or something... But awesome find! I haven't come across this plugin yet!
This isn't a plugin and it might not be of any help, but here is a link to a thread about syncing TP using Events instead of a plugin.

Offering this just in case you can't find a plugin that does what you want.

Am a little too tired right now to test myself, so in addition to what @ZombieKidzRule suggests, you may want to try the aforementioned plugin with PluginCommonBase.js and EventCommandByCode.js in BasicResources\plugins\official
Offering this just in case you can't find a plugin that does what you want.

I've come across this, and while it does the job, I want party members to gain TP from skills. But eventually, I might just switch to this.
could someone help with setting TP to 0 when battles start?
Have you Googled it? Several threads come up immediately.

What you may also consider is NOT USE TP for this purpose, and use, say, (hidden) items instead. Naturally you will need a plugin that can add item costs to skills.

I personally think TP has so many limitations and default quirks, that unless you want to use it as what it is intended for, you should just remove it from your game and use other custom parameters instead.
I think you should be able to invoke MV plugin commands in MZ using the Script command, e.g.

this.pluginCommand("SharedStat", ["tp", "0"]);
I haven't tested the plugin werzaque linked, though.

Otherwise, untested:
Spoiler: plugin code
JavaScript:
/*:
 * @target MZ
 * @plugindesc TP inits to 0 in battle; all actors have the same TP.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/165449/
 * @help Free to use and/or modify for any project, no credit required.
 */
void (() => {
'use strict';

  /** Private local storage for "TP of all actors" value. */
  let tp = 0;

  // Override - all actors have the same TP.
  Object.defineProperty(Game_Actor.prototype, "_tp", {
    get: function( ) { return tp; },
    set: function(v) { tp = v; },
    configurable: true,
    enumerable: true  // consistent with core & JSON.stringify
  });

  // Override - actor TP initialises to 0 on battle start.
  Game_Actor.prototype.initTp = function() { this.setTp(0); };

})();
Edit: might need something extra, not sure if that'll save/load the TP value. I'll check back later~

Edit 2: added enumerable: true, I think that'll be sufficient?
Otherwise, untested:
Spoiler: plugin code
JavaScript:
/*:
 * @target MZ
 * @plugindesc TP inits to 0 in battle; all actors have the same TP.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/165449/
 * @help Free to use and/or modify for any project, no credit required.
 */
void (() => {
'use strict';

  /** Private local storage for "TP of all actors" value. */
  let tp = 0;

  // Override - all actors have the same TP.
  Object.defineProperty(Game_Actor.prototype, "_tp", {
    get: function( ) { return tp; },
    set: function(v) { tp = v; },
    configurable: true,
    enumerable: true  // consistent with core & JSON.stringify
  });

  // Override - actor TP initialises to 0 on battle start.
  Game_Actor.prototype.initTp = function() { this.setTp(0); };

})();
This works so well! Just one "bug" (I'm not really sure if it's a bug) I found: When entering a battle after using skills on the overworld, it'll add the TP given from that skill on the next battle.
This plugin is absolutely amazing as is, and if you could find a way to negate incoming TP, that would be amazing! If not, there's definitely ways to get around that, I'm sure.

Thanks a ton! 😀
When entering a battle after using skills on the overworld, it'll add the TP given from that skill on the next battle.
I just tested and couldn't reproduce that: +10 TP on map -> enter battle -> 0 TP. Ideas:
  1. Maybe your actors all have the Preserve TP trait? That causes the initTp call at the start of battle to be skipped.

  2. Are you using any other plugins? If so, try unchecking those plugins (i.e. turn them off), save your project to apply Plugin Manager changes, then test again.
You solved it! Thanks so much! I'll explain what I did lol 😛
Maybe your actors all have the Preserve TP trait? That causes the initTp call at the start of battle to be skipped.
This allowed for TP to be gained outside of battles, which I was considering, but didn't really want, so I didn't keep it.
Are you using any other plugins? If so, try unchecking those plugins (i.e. turn them off), save your project to apply Plugin Manager changes, then test again.
This was the solution! I was using a rolling stats plugin(HP/MP/TP ticks down over time so that you can "save" yourself before you run out.), so I edited it to not tick TP, and that seemed to solve it!

Thanks so much for all you provided! 😀

Original thread: https://forums.rpgmakerweb.com/threads/plugin-that-tweaks-some-tp-settings.165449/