Hello, back again looking for a bit of help!
So previously i managed, with help, to change the function of TP to essentially only be gained by taking damage and causing a status condition when it reaches 100.
However when trying to make items to remove or reduce TP, i realize it only lets you gain TP. So i tried messing around with the plugin (just a copy of rmmz_objects) i used to change the function of TP and i don't know how to apply values. I'm not sure what I'm needing to change.
Also, i tried changing this code
Game_Action.prototype.itemEffectGainTp = function(target, effect) {
let value = Math.floor(effect.value1);
if (value !== 0) {
target.GainTp(value);
this.makeSuccess(target);
}
To
Game_Action.prototype.itemEffectDecreaseTp = function(target, effect) {
let value = Math.floor(effect.value1);
if (value > 0) {
target.DecreaseTp(value);
this.makeSuccess(target);
}
};
};
But it didn't seem to change anything. I guessing it's only checking if TP is greater than zero and just doing what it did previously if it is.
So previously i managed, with help, to change the function of TP to essentially only be gained by taking damage and causing a status condition when it reaches 100.
However when trying to make items to remove or reduce TP, i realize it only lets you gain TP. So i tried messing around with the plugin (just a copy of rmmz_objects) i used to change the function of TP and i don't know how to apply values. I'm not sure what I'm needing to change.
Also, i tried changing this code
Game_Action.prototype.itemEffectGainTp = function(target, effect) {
let value = Math.floor(effect.value1);
if (value !== 0) {
target.GainTp(value);
this.makeSuccess(target);
}
To
Game_Action.prototype.itemEffectDecreaseTp = function(target, effect) {
let value = Math.floor(effect.value1);
if (value > 0) {
target.DecreaseTp(value);
this.makeSuccess(target);
}
};
};
But it didn't seem to change anything. I guessing it's only checking if TP is greater than zero and just doing what it did previously if it is.