@LeeAceSan
It doesn't work in the menu but it will battle.
However you can use a state instead, the problem with using a state is making sure it hits the target all the time(ie it's not affected by luk or state resist/rate). I recommend if you go with this method to make sure the state gets added with 1000% to be super sure of it affecting the affected person. Now if a state is used you do not need to use a common event, you will need
Buff States Core by Yanfly. Also just set the item to add the state.
And put this code in the state that will be applied:
<Custom Apply Effect>
target.gainTp(-y);
target.removeState(x);
</Custom Apply Effect>
Where x is the id of the state that was added and the y is the amount of tp you want to lose.
So in my test run I had the item add state 13 and then in state 13 I had this code:
<Custom Apply Effect>
target.gainTp(-20);
target.removeState(13);
</Custom Apply Effect>
Now of course you can use a common event, but the problem with that comes in when you decide to have a large cast of characters or have a a lot of people that could be affected by an item, and you have to run a conditional check for each of them.