[VX Ace] Bug TP Manager (Yanfly)

Nérylis

Veteran
Veteran
Joined
Feb 14, 2015
Messages
193
Reaction score
3
First Language
French
Primarily Uses
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
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
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.
 
Last edited by a moderator:

Nérylis

Veteran
Veteran
Joined
Feb 14, 2015
Messages
193
Reaction score
3
First Language
French
Primarily Uses
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 :


 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
823
First Language
Hungarian
Primarily Uses
RMVXA
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.
 

Nérylis

Veteran
Veteran
Joined
Feb 14, 2015
Messages
193
Reaction score
3
First Language
French
Primarily Uses
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.
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
823
First Language
Hungarian
Primarily Uses
RMVXA
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.
 

Nérylis

Veteran
Veteran
Joined
Feb 14, 2015
Messages
193
Reaction score
3
First Language
French
Primarily Uses
Ok, it works well now. Thanks for your help ! :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,050
Messages
1,018,548
Members
137,835
Latest member
yetisteven
Top