Greetings and salutations, scholars and sages of RPG Maker forums!
I was trying to make a little more complex damage formulas lately, with help of the "Damage Formulas 101" thread, when I stumbled upon "GainTP" command. Ever since then, I have been trying to use it but it never seems to work. Since I always mess up somewhere when making formulas, I hope you could help me.
The formula looks as follows.
if (a.isStateAffected(26)) { a.gainTP(30); a.mat * 2 } else { a.gainTP(15); a.mat }
The idea behind it, is that this ability would affect all allies and add MP alongside TP. I realize the "a." before "gainTP" has no place, as it would apply the boost only to the caster. It was just a desperate attempt at fixing the issue.
I thank for all the responses in advance.
I was trying to make a little more complex damage formulas lately, with help of the "Damage Formulas 101" thread, when I stumbled upon "GainTP" command. Ever since then, I have been trying to use it but it never seems to work. Since I always mess up somewhere when making formulas, I hope you could help me.
The formula looks as follows.
if (a.isStateAffected(26)) { a.gainTP(30); a.mat * 2 } else { a.gainTP(15); a.mat }
The idea behind it, is that this ability would affect all allies and add MP alongside TP. I realize the "a." before "gainTP" has no place, as it would apply the boost only to the caster. It was just a desperate attempt at fixing the issue.
I thank for all the responses in advance.