Starting TP

● ARCHIVED · READ-ONLY
Started by Nic3Ntertainment 6 posts View original ↗
  1. Hey, just a quick question.  I tried searching for an answer, but it's hard to find anything on TP on account of the fact that the search program automatically removes any search terms with less than 4 characters. ;_;

    I'm having the problem that my characters are starting with random amounts of TP at the start of a battle.  I assume there's some way to set it up so that they always start with 0 TP at the onset of a battle.

    I've combed through the coding, but I'm horrible with scripts and codes and all that scary stuff, so I did not find what I was looking for (who knows, I might have, but I can't read ruby worth a duck's nose-hole).

    I'm using RM VXAce v1.02a (steam version now).

    Thanks.
  2. You need to add the feature "preserve TP" to each actor, that will make it that they keep their TP between battles intead of getting a random amount at start of battle.


    And then you just have to add a command after each battle processing to remove any excess TP remaining after the battle.


    (when using random encounters, you could remove any remaining TP on turn 0)
  3. I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


    Yep. Go to Game_Battler in your scripts, to line 730 (if you haven't made any mods).


    It says this:

    Code:
    self.tp = rand * 25
    Change it to this:
    Code:
    self.tp = 0
  4. INITIAL_TP = 0 # how many tp should be initialized


    # per start of battle.


    class Game_Battler < Game_BattlerBase


    #--------------------------------------------------------------------------


    # * Initialize TP


    #--------------------------------------------------------------------------


    def init_tp


    self.tp = INITIAL_TP


    end


    end
  5. Fantastic!  I knew it had to be a pretty simple fix, just a matter of finding the line.

    Thank you all for the help!
  6. This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.