@Riku_Masamune Hey, see if this works:
a.gainHp(-(Math.randomInt(500) + 500)) ; a.mat * 5
My syntax might be off somewhere, but the Math.randomInt(500) function should give you something in the 0 to 499 range, so adding 500 after should give you the 500 to 999 you're looking for. :)
a.gainHp(-(Math.randomInt(500) + 500)) ; a.mat * 5
My syntax might be off somewhere, but the Math.randomInt(500) function should give you something in the 0 to 499 range, so adding 500 after should give you the 500 to 999 you're looking for. :)
Works, but then for every enemy the spell hits, it stacks up damage (570 and 980 were the numbers I saw). But then I guess that's the point of a taxing spell. Thanks a ton!