Disable TP Gain when actor is attacked

I apologize if this is in the wrong section but, I was wondering if there is a plugin that disables TP gain when your actor is attacked. I am using MV if anyone is wondering. Normally, your actor gains TP when dealt damage. I am using TP as MP so I want it to be regained through items and skills.
Hello there.
I too want to disable TP gain on damage for my project, but I haven't got the time to get into yet.
However, I think I've seen some settings on one of Yanfly's plugin that might help you (try the Enhance TP plugin).
Taking a quick look, it has way more options than I need, so I might code a shorter version anyway to reduce overhead. But do take a look and see if it has what you need.
Let me know if it doesn't, and I may prioritize that and make one that helps us both! 😀
It can be done with Yanfly's AutoPassive States plugin.

#1 Create state - https://prnt.sc/p7f11u
#2 Add it to actor with Yanflys Auto Passive States

Explanation:

As long actor affected with that state has 100% HP (wich means he didn't recieve damage) actor can gain TP otherwise, he won't get any TP.

It has one flaw. If you restore his HP again back to 100% actor will start gaining TP again.
TCR is a bit weird. It applies to TP gains from getting hit, as well as "Invocation" TP (gained by the user when the skill/item is used). You don't need a plugin or state to apply it, just give your actor (or their class) the "Sp-Param TCR 0%" trait. Ditto for enemies, except they don't have classes by default.

Personally I'd recommend Yanfly's Enhanced TP plugin, as mentioned. Alternatively, here's a barebones version that literally just "deletes" the chargeTpByDamage method, just save as a .js file (Save As > File Type: All Files, File Name: whateverYouLike.js) and import as a plugin:
Code:
Game_Battler.prototype.chargeTpByDamage = function(damageRate) {};
TCR is a bit weird. It applies to TP gains from getting hit, as well as "Invocation" TP (gained by the user when the skill/item is used). You don't need a plugin or state to apply it, just give your actor (or their class) the "Sp-Param TCR 0%" trait. Ditto for enemies, except they don't have classes by default.

Personally I'd recommend Yanfly's Enhanced TP plugin, as mentioned. Alternatively, here's a barebones version that literally just "deletes" the chargeTpByDamage method, just save as a .js file (Save As > File Type: All Files, File Name: whateverYouLike.js) and import as a plugin:
Code:
Game_Battler.prototype.chargeTpByDamage = function(damageRate) {};


I was able to get my TP to stop refilling whenever I am attacked by using the "Sp-Param TCR 0%". Thanks for the help.

taaspider: I took a look at the Yanfly Enhanced TP and it wasn't what I was looking for. That plugin just allows you to modify how you gain TP.
TCR is a bit weird. It applies to TP gains from getting hit, as well as "Invocation" TP (gained by the user when the skill/item is used). You don't need a plugin or state to apply it, just give your actor (or their class) the "Sp-Param TCR 0%" trait. Ditto for enemies, except they don't have classes by default.

Personally I'd recommend Yanfly's Enhanced TP plugin, as mentioned. Alternatively, here's a barebones version that literally just "deletes" the chargeTpByDamage method, just save as a .js file (Save As > File Type: All Files, File Name: whateverYouLike.js) and import as a plugin:
Code:
Game_Battler.prototype.chargeTpByDamage = function(damageRate) {};
I know this is an old post, but thank you for this. You are amazing...
I am using console version and I'm trying to make it to where characters don't gain TP while using moves, however you can gain TP from attacks made by monsters. Help please?
I am using console version and I'm trying to make it to where characters don't gain TP while using moves, however you can gain TP from attacks made by monsters. Help please?
These forums are for the PC versions of RPG Maker - the console versions are unsupported here.

That being said, this question is also hijacking the topic of the thread - it's asking about modifying TP when you take damage.

If you don't want actors to gain TP from using skills, put a 0 in the TP Gain for that skill's entry in the database.
@UndeadGamez please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/disable-tp-gain-when-actor-is-attacked.113392/