I have had a personal breakthrough today on my Ruby knowledge and RPG Maker API (if I can call it that, lol) and finally have hit the ground running on my project. Here is the backstory. Basically, I have set my TP max to 1 under def max_tp (from class Game_BattlerBase). I have also set initialize amounts for my MP and TP and set my regenerate_tp to self.tp += 1 * trg (from class Game_Actor < Game_Battler).
What I am trying to do is to get my TP gauge during a battle to fill up in color. This can be found under def draw_actor_tp in class Window_Base < Window. What I am noticing is that when my max TP is set to 100 it will fill as it climbs to 100. However, when I set the max TP to 1 it will fill up to 1 and stop as it is supposed to, but the gauge does not fill in with color. My thought process is that 1/1 TP is 100% TP, so the gauge should fill 100%.
So basically, I am missing the link that tells the gauge that "Hey, 1 TP is 100% of the possible TP for an actor, color in the gauge completely". I think that actor.tp_rate is my variable in need of some attention, but I can't find any clues as to how to alter the "rate" so that 1 TP out of 1 TP is 100%, or 1.0 according to the comments above def draw_gauge.
Any tips from you vets?
What I am trying to do is to get my TP gauge during a battle to fill up in color. This can be found under def draw_actor_tp in class Window_Base < Window. What I am noticing is that when my max TP is set to 100 it will fill as it climbs to 100. However, when I set the max TP to 1 it will fill up to 1 and stop as it is supposed to, but the gauge does not fill in with color. My thought process is that 1/1 TP is 100% TP, so the gauge should fill 100%.
So basically, I am missing the link that tells the gauge that "Hey, 1 TP is 100% of the possible TP for an actor, color in the gauge completely". I think that actor.tp_rate is my variable in need of some attention, but I can't find any clues as to how to alter the "rate" so that 1 TP out of 1 TP is 100%, or 1.0 according to the comments above def draw_gauge.
Any tips from you vets?