Starting Battles with TP at 0

Hello everyone. I apologize if this info is available elsewhere- I could not find it.

I am a new user working on my first project. What I would like to accomplish is:

Have it set so that Technique Points start each battle at zero, instead of what appears to be a random value. I scanned the script editor but could not find where such information might be located. Thanks 🙂
Go to Game_Battler on line 730

change self.tp = rand * 25

to self.tp = 0
Thanks so much! Exactly what I needed! Is there a reference I should have known about?
It doesn't seem to be getting me the results I am looking for. TP is still random at the start of battletesting, though it sometimes is set to 0.

Also, if I want to eliminate TP charge by damage taken, can I just set the value to "0" in the following line?

self.tp += 50 * damage_rate * tcr     ?
Use this, it works in Game and in Battle Test:

Code:
class Game_Battler < Game_BattlerBase  #--------------------------------------------------------------------------  # * Initialize TP  #--------------------------------------------------------------------------  def init_tp    self.tp = 0    self.tp = 0 if $BTEST  end  #--------------------------------------------------------------------------  # * Clear TP  #--------------------------------------------------------------------------  def clear_tp    self.tp = 0  end  #--------------------------------------------------------------------------  # * Charge TP by Damage Suffered  #--------------------------------------------------------------------------  def charge_tp_by_damage(damage_rate)    self.tp += damage_rate * 0    self.tp += damage_rate * 0 if $BTEST  endend
Awesome! Thanks for your input. Now to learn how to implement this...
Place it in a new script section below Materials above Main. I overwritten the methods and added something that works for the battle test. Remember that whatever damage you take (that adds tp) won't work.
Woo hoo! You rock!
I don't seem to be getting any results... I have inserted the script where it says (insert here), under materials and above main, then when I battle test im starting with random TP and increasing with damage taken. Hmmmmm
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


Ry Wu Li, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


Are you saving your game before running a battle test? Unless you save, the script changes won't be applied.

Original thread: https://forums.rpgmakerweb.com/threads/starting-battles-with-tp-at-0.25442/