Transfer to spell

Is there a way to create a spell that the user current tp points are transferred to another party member?
Yes.

It's easy if you are trying to transfer the user's TP to the target of the spell. Use a damage formula like this: b.tp += a.tp; a.tp = 0; ((normal damage formula here))

It's harder if you want the user's TP to transfer to someone who is not the target of the spell. If that's the case, you'll have to explain more about what you want the spell to do, and how you want the TP transfer to be determined (who gets the TP?). From there we can give you more solutions.
Yes that was exactly what I needed, transfer the tp to the target, thanks!!!
And a spell that transfer mp is the same thing?
Yup. Just replace tp with mp in every place in that formula.

Original thread: https://forums.rpgmakerweb.com/threads/transfer-to-spell.111766/