Setting up TP

So I was trying to figure out a way to set something up so that the use of a particular skill could be used only if you have an item. In this case, a gun. That would require ammo. However, just having the item would make it so you could just keep using said ability with no limits. Then thats when I thought "TP could work" and just change the name to AMMO.

However, that brings the next challenge. Setting a max TP, and how you recieve TP.

The max TP goes without saying.

But receiving and using is where the problem lies. I know how to set it up on receiving it, but what I am curious about is if I create an item that is made to reload said TP, then would there be a way to block usage if at max TP. Also is there a way to set it up so that you do not lose TP unless you use it. No gain, unless you reload, and no lose, unless you use. Like a gun and ammo

Also, while we're at it, is there a way to start off with max TP?
1) you'll need to give your actors the "preserve TP" trait to prevent the randomizing on battlescreen start. as long as that trait is there, the engine will remember previous TP numbers and keep them.

2) you'll need to set the parameter for the TP charge rate (don't know the exact name at the moment) to zero to prevent getting TP by damage.

3) max TP is always 100 unless changed by script/plugin
Alright, so the 100 max TP I can work with. I just need to set it up so that only an item will allow for TP gain. Thank you so much for this info. Is there a way to set up so he starts with max TP?

Original thread: https://forums.rpgmakerweb.com/threads/setting-up-tp.138923/