KazukiT

Veteran
Veteran
Joined
Dec 7, 2014
Messages
378
Reaction score
525
First Language
English
Primarily Uses
RMMV
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.
 

taaspider

Veteran
Veteran
Joined
Jan 27, 2017
Messages
160
Reaction score
191
First Language
Portuguese
Primarily Uses
RMMV
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! :D
 

Soulrender

Jack Of All Trades
Veteran
Joined
Jan 12, 2019
Messages
1,226
Reaction score
709
First Language
Poland
Primarily Uses
RMMV
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.
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
2,771
Reaction score
2,123
First Language
EN
Primarily Uses
RMMZ
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) {};
 

KazukiT

Veteran
Veteran
Joined
Dec 7, 2014
Messages
378
Reaction score
525
First Language
English
Primarily Uses
RMMV
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.
 

mascot1063

Villager
Member
Joined
Nov 4, 2012
Messages
22
Reaction score
5
First Language
English
Primarily Uses
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...
 

Latest Threads

Latest Profile Posts

Working on a characteeer! (Why is it so hard to color hair?) ;-;
Silly-Sketches.png
Just finished eventing a couple simple puzzles in RMMV, for my very first game "Sample Quest." Just messing around, throwing things together, and calling it a story XD On a non-RM note, got my hair cut today!
I feel the need to inform everyone on the forums NOT to go with Web Hosting Canada for your hosting needs. It is by far the worst customer service and just overall experience I have ever had with hosting and I am Canadian...
BCj
Got another eye surgery monday. Hope I'll recover quick and all's well. A bit tired of surgeries. On a happy note, working on the next chapter of Escalia so hope I can continue soon :)
Celebrating the arrival of autumn in the Northern Hemisphere :)

Forum statistics

Threads
115,368
Messages
1,089,315
Members
150,057
Latest member
kotfwing
Top