So, I was following the instructions on this topic http://forums.rpgmakerweb.com/index.php?/topic/10216-what-influences-tp-ingame/
and wanted to change the TP into something that works like mana, where it will not increase with damage taken, and only has a max of 50.
When I try it in game, my TP is zero. What could I be doing wrong? Here is the code.
Game_BattlerBase
Game_Battler
and wanted to change the TP into something that works like mana, where it will not increase with damage taken, and only has a max of 50.
When I try it in game, my TP is zero. What could I be doing wrong? Here is the code.
Game_BattlerBase
#--------------------------------------------------------------------------
# * Get Percentage of TP
#--------------------------------------------------------------------------
def tp_rate
@tp.to_f / 50
end
# * Get Percentage of TP
#--------------------------------------------------------------------------
def tp_rate
@tp.to_f / 50
end
#--------------------------------------------------------------------------
# * 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 += 0 * damage_rate * tcr
end
# * 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 += 0 * damage_rate * tcr
end
Last edited by a moderator:

