I am attempting to create an eval script that checks if a calculation is less than one. The calculation is correct without the if then else in it.
The compiler keeps giving me an error is missing a ( on line 7 or an error reserved field is used. Anyone know what I have wrong?
The compiler keeps giving me an error is missing a ( on line 7 or an error reserved field is used. Anyone know what I have wrong?
Code:
~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] = 0)
var Evaluses as number
Evaluses = hero.child[aWIS].field[aModBonus].value + field[xAllLev].value
if
(Evaluses<1)
then
field[trkMax].value += 1
else
field[trkMax].value += Evaluses
end if