Tp to start at 0

How do i get it so the Tp allways starts at 0 Is there a plugin or what??

Thanks for the help
As long as they didn't remove such, it starts at 0 by default, and as long as you don't give a actor the remember TP ability, at the start of every battle, it should be reset to 0.
Unless MV does it differently from Ace, it will not start at 0 at the beginning of each battle, but at a random number.  That was the Ace default.
Unless MV does it differently from Ace, it will not start at 0 at the beginning of each battle, but at a random number.  That was the Ace default.
Oh really, that's weird, could've sworn it started at 0, my bad(It's silly that it wouldn't start at 0 or even a specific percent).
How do i get it so the Tp allways starts at 0 Is there a plugin or what??

Thanks for the help
I suggest using Yanfly's Base Troop Event Plugin. With this you can take The first enemy group in your list and insert an event at the start of the battle that reduces all the actors TP to 0. After that one event on your first troop the plugin will automatically apply this to every battle in the game.  🤘
I actually created a very rough, small plug-in that does alterations to how TP works in game. One of the options is to change how TP is initialized at the beginning of a battle (at default, it runs Math.randomInt(25), making it anywhere from 0 to 24)

Here is the plug-in. Feel free to use. Make sure you save it as TDW_TP_Changes.js

Spoiler
Code:
//=============================================================================// TDW_TP_Changes.js//=============================================================================/*: * @plugindesc Makes some minor changes to how TP works. * @author Tyler Wright * * @param Max TP Variable ID * @desc The ID of the variable for storing the max TP you wish to have. Set to 0 to keep at default. * @default 0 * * @param Actors Share TP * @desc Should all Actors share the same TP? * NO - false     YES - true * @default false * * @param TP Gain on Damage * @desc Should Actors gain TP when damage is taken? * NO - false     YES - true * @default true * * @param Initial TP Equation * @desc Actors start battle with TP equal to this equation. Default = Math.randomInt(25) * @default Math.randomInt(25) * * @help This plugin does not provide plugin commands. */ (function() {	var parameters = PluginManager.parameters('TDW_TP_Changes');	var variableId = Number(parameters['Max TP Variable ID'] || 0);	var shareTP = String(parameters['Actors Share TP'] || 'false');	var chargeTP = String(parameters['TP Gain on Damage'] || 'true');	var initialTPEqn = String(parameters['Initial TP Equation']);		//Shared TP - GOOD	var _Game_BattlerBase_setTp = Game_BattlerBase.prototype.setTp;	Game_BattlerBase.prototype.setTp = function(tp) {		if (eval(shareTP) && this.isActor()){			var total = tp;			for (i=0; i < $gameParty.members().length; i++){				$gameParty.members()[i]._tp = total;				$gameParty.members()[i].refresh();			}		} else {			this._tp = tp;			this.refresh();		}	};		//TP Max Alterations - GOOD	var _Game_BattlerBase_maxTp = Game_BattlerBase.prototype.maxTp;	Game_BattlerBase.prototype.maxTp = function() {		_Game_BattlerBase_maxTp.call(this);			if (($gameVariables.value(variableId) % 1 === 0) && 		$gameVariables.value(variableId)!= 0){			return $gameVariables.value(variableId);		}else{			return 100;		}	};	//TP Bar Rate Alterations - GOOD	var _Game_BattlerBase_tpRate = Game_BattlerBase.prototype.tpRate;	Game_BattlerBase.prototype.tpRate = function() {		_Game_BattlerBase_tpRate.call(this);			if (($gameVariables.value(variableId) % 1 === 0) && 		$gameVariables.value(variableId)!= 0){			return this.tp / $gameVariables.value(variableId);		}else{			return this.tp / 100;		}	};	//TP Equation Alterations - GOOD	var _Game_Battler_initTp = Game_Battler.prototype.initTp;	Game_Battler.prototype.initTp = function() {		_Game_Battler_initTp.call(this);			this.setTp(eval(initialTPEqn));	};		//TP Charge Rate Alterations - GOOD	var _Game_Battler_chargeTpByDamage = Game_Battler.prototype.chargeTpByDamage;	Game_Battler.prototype.chargeTpByDamage = function(damageRate) {		if (eval(chargeTP)){			var value = Math.floor(50 * damageRate * this.tcr);			this.gainSilentTp(value);		} else {		}	};})();  
If it helps i'm using it like a final fantasy 10 overdrive. where once the tp bar is full you can unleash a SUPER AMAZING POWERFULL KAWAII Attack!

Thanks for the help.
No prob. Since I am a noob at JavaScript, let me know if you hit any errors with it.
you can actually adjust the initial TP that you get in battles through the default scripts. just go to /Games/[your game name]/js/rpg_objects.js (to open it I recomend editting it with notepad++ which you can download from internet)


in this file you'll want to go to line 3215 (altenatively you can hit CTRL + F and find ''inittp'') here, you will need to change (Math.randomInt(25)) to whatever number you prefer.


changing it to (Math.randomInt(0)) will ensure that you start your fights with 0 TP.


the number that you choose will be an average for the TP that you gain at the start of the battle (by default the average is 25)


- Raiks


help.png
there is absolutely no need for a plugin to do this.


Enable/add the "preserve TP" trait for all actors, that will disable the random TP at battlestart but use whatever TP value there was before the battle.


Then just use an event to set TP to zero after each battle.

Original thread: https://forums.rpgmakerweb.com/threads/tp-to-start-at-0.48129/