TP Give Skill Similar to FF's Entrust skill

As the title says is there any way to create a skill that gives a certain characters aquired TP to a character of his choice similar to Final Fantasy's entrust ability where you take all you limit points and add them to another to ex. quickly fill a certain characters limit in my case TP to use that characters ultimate ability faster
Is it a set amount the player gives or is it always all?

If all, in the dmg formula, you put:
b.tp += a.tp; (dmg formula if any. Otherwise, put 0)

If a set amount like 30, make the TP cost 30 and then put
b.tp += 30; (dmg formula if any. Otherwise, put 0)

No parenthesis and you might want the anti-fail message script.
@Lord Vectra gave you the right idea, but it sounds like you're also trying to consume all of the user's TP, so be sure to change the formula to:

b.tp += a.tp; b.tp = 0; (damage formula or 0)

In order to avoid "wasteful" TP donation (excess TP above the target's Max TP), you could instead do:

c = [a.tp, 100 - b.tp].max; b.tp += c; a.tp -= c; (damage formula or 0)

The only little quirk with using the damage formula for this is that you'll visually see a result of 0 damage (since RPG Maker thinks it's a damage or healing skill). This won't affect gameplay. If you want to improve the presentation and avoid this (or even show a popup based on TP restored), there are ways to do this by using code inside a Common Event, but it's considerably more complicated and probably only worth exploring right before you're ready to release your game.

Original thread: https://forums.rpgmakerweb.com/threads/tp-give-skill-similar-to-ffs-entrust-skill.102077/