I've been writing the Formula for these 2 skills all day, and I hit a block and keep writing the same thing over n over, not knowing why its working.
First skill is meant to save damage as variable, check if enemy, then set new variable of (check max to see which is higher , Damage+ variable, or Damage) Then Deal Damage
Basically I'm stacking Variable 2 to call later.
But its not working.
keeping getting a V not defined error
"Damage Skill"
"CALL Variable 2 Skill"
First skill is meant to save damage as variable, check if enemy, then set new variable of (check max to see which is higher , Damage+ variable, or Damage) Then Deal Damage
Basically I'm stacking Variable 2 to call later.
But its not working.
keeping getting a V not defined error
"Damage Skill"
Code:
Formula:
v[1] = (a.atk + a.mat + a.agi*2) - (b.mdf + b.agi);
console.log(v[1]);
if (b.isEnemy()) v[2] = Math.max(v[1] + v[2], v[1]);
console.log(v[2]);
v[1]
"CALL Variable 2 Skill"
Code:
Formula:
v[3] = (v[2] / 5 ); v[3]