how would i change the TP charge formula so that enemy attacks decrease it? and you start each battle with it half filled? I want to do something wacky with it in a game
TP charging
RGSSx Script SupportHave you tried changing lines 726 to 743 in Game_Battler?
Try something like this:
#--------------------------------------------------------------------------
# * Initialize TP
#--------------------------------------------------------------------------
def init_tp
self.tp = 50
end
#--------------------------------------------------------------------------
# * Clear TP
#--------------------------------------------------------------------------
def clear_tp
self.tp = 0
end
#--------------------------------------------------------------------------
# * Charge TP by Damage Suffered
#--------------------------------------------------------------------------
def charge_tp_by_damage(damage_rate)
self.tp -= 33 * damage_rate * tcr
end
That is changing self.tp at the top to 50 in order to start your battle with TP half-filled and changing the rate of TP charge from a + to a - in the second last line.
Does that fix your issue? Also, if you change the 33 in the second last line, it will make your battlers lose less or more TP at a time.
Try something like this:
#--------------------------------------------------------------------------
# * Initialize TP
#--------------------------------------------------------------------------
def init_tp
self.tp = 50
end
#--------------------------------------------------------------------------
# * Clear TP
#--------------------------------------------------------------------------
def clear_tp
self.tp = 0
end
#--------------------------------------------------------------------------
# * Charge TP by Damage Suffered
#--------------------------------------------------------------------------
def charge_tp_by_damage(damage_rate)
self.tp -= 33 * damage_rate * tcr
end
That is changing self.tp at the top to 50 in order to start your battle with TP half-filled and changing the rate of TP charge from a + to a - in the second last line.
Does that fix your issue? Also, if you change the 33 in the second last line, it will make your battlers lose less or more TP at a time.
You can still charge TP through skills right?
Original thread: https://forums.rpgmakerweb.com/threads/tp-charging.37552/