How to set custom TPs based on weaponry?

So, in this game, I am using a sort of "False" ammunition / energy system using the TP as a guide. Each attack will automatically drain 1 TP, obviously (doing a shot with a pistol, or swinging a club drains one bullet / one bit of stamina).


However, I have no idea how to set the TP to various numbers based on the weapon of choice, for instance a shotgun would let the user have about 6 TP (which is automatically loaded into the gun at the start of a battle) vs a light machine gun which may carry 100 bullets in its clip and drain about 10 shots per round. (obviously this can be circumvented by simply having 10TP.)


The main question is; How do I set TP for each individual weapon?
you need a plugin for that.


By default, TP is always maxed at 100.


I've moved this thread to Plugin Request. Please be sure to post your threads in the correct forum next time. Thank you.
Maybe look into this?


http://sumrndm.site/tp-upgrade/

Original thread: https://forums.rpgmakerweb.com/threads/how-to-set-custom-tps-based-on-weaponry.72080/