Hello computer friends, I hope you're well.
I set up a skill to consume all of the users TP and to scale the damage with how much TP was used. I found this wonderful thread as reference. The skill had worked just fine, but at some point something broke. I've made sure to keep my plugins up to date (specifically the Tier 0 and Tier 1 Visustella plugins since I think this works off the SkillStatesCore plugin).
EDIT: It seems the damage of the skill is being calculated *after* the TP is spent. The skill still costs all the user's TP, but the damage does not change regardless of how much the actor had before the skill was activated.
Here are the specifics of the skill in question.
Damage formula is
And like I said before, up until very recently (sadly I'm not sure exactly when it broke) it worked just fine.
Anyone have any thoughts? Thanks in advance!
I set up a skill to consume all of the users TP and to scale the damage with how much TP was used. I found this wonderful thread as reference. The skill had worked just fine, but at some point something broke. I've made sure to keep my plugins up to date (specifically the Tier 0 and Tier 1 Visustella plugins since I think this works off the SkillStatesCore plugin).
EDIT: It seems the damage of the skill is being calculated *after* the TP is spent. The skill still costs all the user's TP, but the damage does not change regardless of how much the actor had before the skill was activated.
Here are the specifics of the skill in question.
Damage formula is
100 + a.atk + a.currTp * 20 - b.def * 2 and in the Note box is
Code:
<JS TP Cost>
user.currTp=user.tp;
cost=Math.max(user.tp, 1);
</JS TP Cost>
And like I said before, up until very recently (sadly I'm not sure exactly when it broke) it worked just fine.
Anyone have any thoughts? Thanks in advance!