Some changes to the TP system

I'm trying to turn the TP system into an energy/stamina system, which acts like MP, but degenerates through walking, fighting, existing, ect, making sleeping at inns/camping/food items important and viable.  Also because it doesn't make sense to use Mana to do a leg sweep.  That's just silly.

I was first going to use AMPX (www.rpgmakervxace.net/topic/213-alternate-mp-x-v105-demo-now-here/) to do this, but since I'm using Dekita's Perfect stat distibution System (http://dekitarpg.wordpress.com/2012/08/08/perfect-stat-point-distribution-system/) Increasing magic would increase your Energy as well, which didn't make sense, since Energy was supposed to be a physical trait that mages would have, but not be as proficient in as Warriors or Rogues.
 

TL;DR​
I've been messing around with a few scripts (Yanfly TP Manager, and esrann's action point system) involving the TP system, and have it working the way I want, aside from a few issues.

  • The player starts the game with 0 TP.  TP does carry over from battle to battle, but they start the game with no TP, unlike HP & MP which they start with full bars.  Jerry Rigged it thanks to Andar
  • The "Recover All" Option does not affect TP.
  • An item that recovers TP can still be used even if TP has been maxed out.
  • Can't figure out how to make TP Decay as the player walks around. Fixed
  • Can't figure out how to add a state when the player is >= 75% Max TP (Energized) and a state when they are <=25% (Fatigued)
1) make a skill that gives TP as an effect and force-action that skill in an autorun event on the first map, adding 100TP to each actor and then switching itself off.


2) and 3) require either scripting or tricky eventing


4) feature Ex-Parameter TRG (TP-Regeneration) with a negative number on all actors - you might have to experiment to find the value you like


5) you'll need a script for that - Tsukihime made some scripts that give states when at 100%, they can probably be modified to be triggered at other values
1) make a skill that gives TP as an effect and force-action that skill in an autorun event on the first map, adding 100TP to each actor and then switching itself off.

2) and 3) require either scripting or tricky eventing

4) feature Ex-Parameter TRG (TP-Regeneration) with a negative number on all actors - you might have to experiment to find the value you like

5) you'll need a script for that - Tsukihime made some scripts that give states when at 100%, they can probably be modified to be triggered at other values
Thanks for helping.

Issue 1 has been solved.

Issue 4 is posing a bigger challenge.  I have the TRG set to -0.0001 and the Game_Battler script set up with

  #--------------------------------------------------------------------------  # * Regenerate TP  #--------------------------------------------------------------------------  def regenerate_tp    self.tp += trg * 0.000000001  endBut the game doesn't seem to allow me to set it to be any smaller.  A character with 128 TP can only get halfway across a map with a height of 70 before completely running out.  Adding more zeros to the Regenerate TP code doesn't help any either.

Fixed it.

Original thread: https://forums.rpgmakerweb.com/threads/some-changes-to-the-tp-system.23583/