I'm trying to make a skill like the move Acrobatics in Pokemon. Where if the user is wearing no armor the power is increased drastically.
if ( a.hasArmor(true)) {a.atk * 5 - b.def * 2;} else {a.atk * 20 - b.def * 2;}
This is my current formula however no matter what I change about it it always returns the "else" result.
I tried writing just a.hasArmor() instead of a.hasArmor(true) or a.hasArmor(false) but the formula seems to just always ignore that section. I have checked other forums to make sure that hasArmor is an actual command and apparently it is, though I fear I am using it incorrectly. Any help would be amazing.
if ( a.hasArmor(true)) {a.atk * 5 - b.def * 2;} else {a.atk * 20 - b.def * 2;}
This is my current formula however no matter what I change about it it always returns the "else" result.
I tried writing just a.hasArmor() instead of a.hasArmor(true) or a.hasArmor(false) but the formula seems to just always ignore that section. I have checked other forums to make sure that hasArmor is an actual command and apparently it is, though I fear I am using it incorrectly. Any help would be amazing.