Hey, does anyone know if theres a way to completely disable TP gain from combat? im using TP in my project as essentially a magic casting system where you need to replenish your TP out of combat using items. I have successfully disabled TP regeneration upon being attacked or guarding, but i still gain a seemingly random amount of TP upon entering combat. Any suggestions?
MV Disable all TP gain
RPG Maker MV SupportYanfly's enhanced TP should be able to get you the desired effect.
can't afford it sadly, is there any free alternative or a plugin i could make myself? i dont really know javascript that much so id need some help with the latter
I'm not aware of any. You may want to try and save up money, because 30 bucks is a steal for what you're getting either way.
I'm no coder myself, but maybe one of our wizards will have a plugin snippet for you.
I'm no coder myself, but maybe one of our wizards will have a plugin snippet for you.
Is that all you're looking to have disabled? You've already handled the rest?
You can save this as a .js file and add it as a plugin if that is the case.
Code:
Game_Battler.prototype.initTp = function () {};
Edit: forgot that that function also handled the tp reset and not just the randomization. youll have to say if you wanted TP to reset between fights or not.
you can disable it by database alone, but it will require several different steps.
basically you need to add specific traits to every actor and enemy.
The actors need the "preserve TP" trait, that disables the random effect at battle start and keeps the TP through the map between battles.
And both actors and enemies need the traits of "TP Regeneration" and "TP Gain" set to zero - those are two different traits and both are needed...
basically you need to add specific traits to every actor and enemy.
The actors need the "preserve TP" trait, that disables the random effect at battle start and keeps the TP through the map between battles.
And both actors and enemies need the traits of "TP Regeneration" and "TP Gain" set to zero - those are two different traits and both are needed...
It might be a bit heavy if all you want to do is disable TP charge by damage and init/clear TP, but you could try my SFG_ExpandedTP.
Hey yall, update:
forgot to check my email for a while but i figured it out on my own, if anyone is interested in my solution heres the code i used for a custom plugin;
"Game_Battler.prototype.chargeTpByDamage = function(damageRate) {};
Game_Battler.prototype.initTp = function() {};
Game_Battler.prototype.clearTp = function() {};
Game_Battler.prototype.gainSilentTp = function(value) {};"
Thanks for the help everyone! hope this can help someone if they end up in the same situation as me lol
forgot to check my email for a while but i figured it out on my own, if anyone is interested in my solution heres the code i used for a custom plugin;
"Game_Battler.prototype.chargeTpByDamage = function(damageRate) {};
Game_Battler.prototype.initTp = function() {};
Game_Battler.prototype.clearTp = function() {};
Game_Battler.prototype.gainSilentTp = function(value) {};"
Thanks for the help everyone! hope this can help someone if they end up in the same situation as me lol
You probably don't want to override
gainSilentTp like that. That'll make the Gain TP effect and the TP Regeneration trait stop working. The rest should be correct.so far i havent found any issues with my project but will keep in mind. in my game im basically replacing TP with a spell casts system so the only way to gain TP is through item usage which then lets you use spells
And I'm saying that changing
I actually misidentified the issue in the previous post though. It's not the Gain TP effect that it breaks, but rather the TP Gain field:
Overriding
gainSilentTp could affect that item usage.I actually misidentified the issue in the previous post though. It's not the Gain TP effect that it breaks, but rather the TP Gain field:
Overriding
gainSilentTp will have no effect on TP charge by damage or init/clear TP, since you've already separately overridden the three functions that take care of that. However, the above field will have no effect, and the TP Regeneration trait will also do nothing.yeah im not using either of those functions as of right now, but i will be sure to keep this in mind if i run into any errors while developing
Alright. If you're really sure you don't need those functions, then it's fine. I just wanted to be sure you were aware of what you're doing.
Original thread: https://forums.rpgmakerweb.com/threads/disable-all-tp-gain.181833/