So i thought I could make a formula that drained 35% of a target's TP and restored it to the user but I feel like I'm missing something?
a.setTp(a.Tp * .65); user.setTp(user.Tp + (a.Tp * .65)
There are a few things wrong with this.
1 - There's no such property as "Tp". It's "a.tp" or "b.tp," etc.
2 - As described in the first post of this thread, the last thing in your formula must
always be the value being used for damage. The setTp function does not return a value, so you're going to be getting
undefined
from all of that.
3 - There's no such thing as
user
in the damage formula - I'm not sure where you're getting that from. You might be confused with the documentation for plugin notetags, but the damage formula only has a and b.
4 - Your syntax is incorrect. The second statement (after the semicolon) has two open parentheses and one close.
If this skill is not supposed to do any HP or MP damage to the target at all, you probably don't want to use the damage formula for this. You
must have a value if you do, which means if nothing else you'll see a 0 damage popup every time you use the skill. If that's the case, you'd be better off using something like Yanfly's Skill Core and putting the code into an After Eval notetag or something like that.