[VX Ace] Bug TP Manager (Yanfly)

Hello,


I use the script from Yanfly - TP Manager but I have a problem. The gain/loss of TP points at each turn (that we can configurate for weapons, armours, states...) doesn't work. After testing, I confirm that the problem is due to this script, it prevents the basic function to work well.


Can you help me please ? The link of the script is here : https://github.com/Archeia/YEARepo/blob/master/Gameplay/TP_Manager.rb
Can you give us screenshots of how you configured it and which notetags you placed where?


That script has been used so many times in the past years without problems that this is most likely a bug in your configuration and not in the script itself - or (less likely but possible) a compatibility problem between that script and another script you're using.


Because by now, all of Yanfly's Ace-Scripts have been used so many times that all bugs have been found and they can be considered bug-free if configured correctly.
I create a new project with just this script and I have the problem.


I use the basic configuration (TP Mode 0, TP gained when the character take damage).


Here is a screenshot with a bonus regen TP in database :


238788Capture.png
It won't use any TP regen features from the database with that script, because the method which does that is overwritten.


However, you have a setting named :regen_tp in each of your TP mode settings in the script.


If you want to restore the original function (on top of the added TP gain possibilities), just set that setting to this:


:regen_tp => "100 * trg",


Any TP mode with this setting will regen TP after each turn the default way using the default TRG x-param of the actor.
Ok thanks but I have a question. Originally, I wanted to set a status that makes losing TP at every turn. How to restore only the loss of TP of this status and not the entirely basic function ? Because, with :regen_tp => "100 * trg", my character gain 5 TP when he hits the enemy and 4 TP when he defends. I don't want this, I just want the effect of the status.
That is happening because of an option named "TP Gain". 


The default TP Gain for Attack and Guard are set to 5 and 4 in the database. Set those to 0.


The method involved here is only executed at the end of the turn, so the TP gain you see must come from that database setting.
Ok, it works well now. Thanks for your help ! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/vx-ace-bug-tp-manager-yanfly.63462/