Hi all. I want to create a skill that takes the users current TP and transfers it to another member. I'm hoping I can do this with Yanfly's skill core or something similar.
My code is:
<Cost Display Eval>
var variableId = 102;
var value = a.tp;
$gameVariables.setValue(variableId, value);
</Cost Display Eval>
<Custom Cost Display>
\c[4]\v[102]\c[0] TP
</Custom Cost Display>
<Pre-Damage Eval>
a.gainTp(-v[102]);
</Pre-Damage Eval>
But unfortunately, since I can't choose TP in the damage type, the user does not lose TP and the target does not gain TP due to no formula. Anyone have an idea how to accomplish this?
My code is:
<Cost Display Eval>
var variableId = 102;
var value = a.tp;
$gameVariables.setValue(variableId, value);
</Cost Display Eval>
<Custom Cost Display>
\c[4]\v[102]\c[0] TP
</Custom Cost Display>
<Pre-Damage Eval>
a.gainTp(-v[102]);
</Pre-Damage Eval>
But unfortunately, since I can't choose TP in the damage type, the user does not lose TP and the target does not gain TP due to no formula. Anyone have an idea how to accomplish this?