How do I increase TP by a certain % ?

How do I make TP increase by a certain % when I use a skill that happens to be the weakness of the enemy?

Example, if I use a holy spell against a dark type enemy, I want TP to increase by 25%.
you can use the damage formula perhaps to check the resistance value of the target then add more tp...
and how exactly do I do that 😛 ?
I cannot access Ace at the moment so I cannot fetch the exact call for checking resistance right now...

but basically,

Code:
if condition;a.tp+=25;end;damage here
How do I make TP increase by a certain % when I use a skill that happens to be the weakness of the enemy?

Example, if I use a holy spell against a dark type enemy, I want TP to increase by 25%.
Because TPmax is always 100 (unless you add scripts into the engine), 1% TP is always 1 TP - the engine developer used that as a shortcut on several places, and you can do that as well.And adding 25 whenever a skill is used is as simple as placing a 25 into the field "TP Gain" on the skill definition (center area of the skill tab)...

If you want something else, please describe it better - if you already changed how TP behaves by scripts, list your scripts.
he wants TP to increase more than the normal rate if a certain element is the weakness of the target... or so from what I understood
Does this work for you? 

http://www.himeworks.com/2013/11/05/tp-damage-type/ it allows for TP Heal, Damage, and Absorb

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-increase-tp-by-a-certain.26374/