How do i get it so the Tp allways starts at 0 Is there a plugin or what??
Thanks for the help
Thanks for the help
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).
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. 🤘
//=============================================================================// 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 { } };})();

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