Howdy, developers!
How do I:
- Completely nullify TP natural Gain?
- Hide TP Bars outside of battles?
I want TP Bars only to be shown in battle, and each character will have it's own methods of gaining TP.
How do I:
- Completely nullify TP natural Gain?
- Hide TP Bars outside of battles?
I want TP Bars only to be shown in battle, and each character will have it's own methods of gaining TP.
I'd be interested in seeing the solution to that question as well ^^ :D
I'm assuming you are using MV.
How to completely nullify TP natural gain:
JavaScript:
//this will only have enemies gain tp by damage
Game_Battler.prototype.chargeTpByDamage = function(damageRate) {
if (this.isEnemy()) {
var value = Math.floor(50 * damageRate * this.tcr);
this.gainSilentTp(value);
}
};
//this will only have enemies gain tp each round
Game_Battler.prototype.regenerateTp = function() {
if (this.isEnemy()) {
var value = Math.floor(100 * this.trg);
this.gainSilentTp(value);
}
};
//this will only have enemies gain tp by item effects (this might cause trouble if you want to
//have actors gain tp through item effects. If so, just delete this part.
Game_Action.prototype.applyItemUserEffect = function(target) {
var value = Math.floor(this.item().tpGain * this.subject().tcr);
if(this.subject().isEnemy()) this.subject().gainSilentTp(value);
};
//turns off initial tp given at beginning of battle
Game_Battler.prototype.initTp = function() {
if (this.isEnemy()) this.setTp(Math.randomInt(25));
};Just add this code to your plugins.
I checked and couldn't find any other place than the battles where TP gauges are visible.
So I don't know where else you would want to hide them?