MV TP is acting strange

Hello! hope whoever encounters the post is well, I need help with a weird thing that has been happening to me recently. I highly suspect its a plugin but my knowledge of javascript isn't that deep. Maybe I am dumb for some reason TP is sometimes just randomly changing in battles. For example doing an attack its set to give 15 TP to the attacker. This I made through the database and the attack skill meant to be taken as the normal attack. However I suspect one of the plugins I have might have messed around with this, because when it gives it the TP, then on the next turn its set to usually a lower TP, that is completely random.

The plugin I have my main suspicion is this one: https://forums.rpgmakerweb.com/index.php?threads/tactics-system-1-2-1-tactical-battle-system.117600/

But I can provide more info if it helps. Thanks in advance.
I mean... If you suspect this plugin to do it, does it not happen when you disable it? If its fixed with the plugin off, congratulations, you found your culprit. If not, keep disabling plugins one by one until you find the offender. Then go into the offenders plugin settings, and set it up correctly. If there are no settings to fix the issue, return here for more advice on how to solve a specific plugin's specific issue. We can't do the bug-hunting for you.
The thing is, I did and it did fix however the plugin I am using is a big part of the combat which I already put a lot of effort in so I kinda need it. Not only that but somehow, I have checked of anything that could be changing it throught the code, even getting help from chat gpt for some questions and nothing seems to be changing it. For example there is no gainTp or loseTp commands, only commands mentioning tp at all are to display it in the HUD, but nothing else. Thats why I am kinda confused, since if there is no problem with the TP in the original thread nor is there any mention of changing the TP mechanic drastically anywhere, yet its the only one that in-game is affecting it, then what could it be?
The thing is, I did and it did fix however the plugin I am using is a big part of the combat which I already put a lot of effort in so I kinda need it. Not only that but somehow, I have checked of anything that could be changing it throught the code, even getting help from chat gpt for some questions and nothing seems to be changing it. For example there is no gainTp or loseTp commands, only commands mentioning tp at all are to display it in the HUD, but nothing else. Thats why I am kinda confused, since if there is no problem with the TP in the original thread nor is there any mention of changing the TP mechanic drastically anywhere, yet its the only one that in-game is affecting it, then what could it be?
Sorry if thats kinda confusing, I know my way around coding but don't code myself. Still thanks for the help
No worries, I just wanted to make sure you actually know that this is the plugin the causes the issue. It might also be another plugin that conflicts with this one. I have no experience with it, but if you're sure this is the problem plugin, someone surely has used it before and may be able to halep out.
Thanks!, so the other plugins I have are:
-2 from the official ones: Community Basic and Weapon Skill
-Himeworks plugins(Level up events, Sideview Actor Enemies and Common events queue)
-YEP message core
-DreamX choice help
-And one from chat gpt I requested, which only changes agility to function in a different way. Its short so I will just post the code here
JavaScript:
// Plugin Name: Agility Changes
// Description: Alters the effect of agility on critical hits and evasion of critical hits.

(function() {
    Game_Battler.prototype.criticalRate = function() {
        return 4 * this.agi; // You can adjust this formula based on how much agility affects critical hit chance
    };

    Game_Battler.prototype.criticalEvasion = function() {
        return this.agi / 2; // Adjust the formula to your preference
    };
})();


If you need links I can give them to you, just didn't wanna bring too much or unecessary stuff. Hopefully someone can help cuz the original post is pretty much a dead thread.
Edit: Completely forgot about Calista another plugin
even getting help from chat gpt for some questions
Asking AI before people is not a very good idea.

I have yet to see any code more than three or four lines come from ChatGPT that actually worked correctly.

As far as your problem - I have not looked at this plugin's code, but there are ways to change TP outside of the gainTp() method (and there's no such thing as loseTp() ). I do see that there are a variety of reported bugs in the thread for this plugin for years, and the author has abandoned it. So it may not be the best foundation to try to build your game on.
It's funny, I just downloaded the demo off the plugin GitHub just to see and I seem to be having the same issue with it as well - no other plugins included. Could be an issue with the plugin itself, but I'd have to dig deeper to find out.
Asking AI before people is not a very good idea.

I have yet to see any code more than three or four lines come from ChatGPT that actually worked correctly.

As far as your problem - I have not looked at this plugin's code, but there are ways to change TP outside of the gainTp() method (and there's no such thing as loseTp() ). I do see that there are a variety of reported bugs in the thread for this plugin for years, and the author has abandoned it. So it may not be the best foundation to try to build your game on.
Yeah I have considered it, but its really hard to find alternatives for a tactical rpg battle systems. The only other one I know for MV is srpg but damn did I struggle understanding it, and it came with its own flood of issues. If you know any others that are easy to understand I am leaving this one behind in a heartbeat. I am more so a game design and concept developer, more than a coder so if there is something semi-easy to understand, even if not super elaborate I am down. And yes I know ChatGpt is kinda trash in that regard, honestly am just using it cuz I have no coding experience and no matter how much I try, coding is not my thing.

It's funny, I just downloaded the demo off the plugin GitHub just to see and I seem to be having the same issue with it as well - no other plugins included. Could be an issue with the plugin itself, but I'd have to dig deeper to find out.
Yeah, honestly run while you have the chance, now I am too deep into it and I need to find another plugin for the combat I need -_-
its really hard to find alternatives for a tactical rpg battle systems.
Because RPG Maker is not designed to do that, and it is a major and extensive modification to do it with a plugin. There are other game-making engines that are built for making tactics games.

am just using it cuz I have no coding experience and no matter how much I try, coding is not my thing.
That's what the support forums here are for.
Because RPG Maker is not designed to do that, and it is a major and extensive modification to do it with a plugin. There are other game-making engines that are built for making tactics games.


That's what the support forums here are for.
Could try them cuz only problem would be starting from scratch both in my project I already spent like 4 months in and learning a whole new system, because rpg maker has been the one I have the most experience in but with this whole thing I am considering on changing it. And thanks for the support, I appreciate it a lot and the forums indeed are super helpful and kind always.
Well, with a little patience I've found the answer. For posterity's sake, each "attack" (in this plugin's system) is in fact treated as a separate encounter. It is the engine's default behavior to reset TP at the end of an encounter. To circumvent this, all you need to do is go to the actor and set the "Preserve TP" special flag (in the upper right).

1701393646556.png
Well, with a little patience I've found the answer. For posterity's sake, each "attack" (in this plugin's system) is in fact treated as a separate encounter. It is the engine's default behavior to reset TP at the end of an encounter. To circumvent this, all you need to do is go to the actor and set the "Preserve TP" special flag (in the upper right).

View attachment 285868
Damn! that makes sense! thank you! I will try it out and see if it was that

EDIT: Just was able to test it, and yeah it was that

Original thread: https://forums.rpgmakerweb.com/threads/tp-is-acting-strange.163461/