TobyFox2002
Well-known member
I have a piece of code I'm trying to understand, its probably very simple but still giving me some big grief. I'm fairly certain I've seen information on the forums before regarding it but I cant find it.
However, I have some code I'm trying to take from HL and move it to roll20.. And while this is a little off topic for a LoneWolf Forums but still..
The power attack code is:
Javascript doesn't seem to like Math.round(bab/4,0,-1) + 1 Anyone have an idea what the heck is going on?
However, I have some code I'm trying to take from HL and move it to roll20.. And while this is a little off topic for a LoneWolf Forums but still..
The power attack code is:
Code:
field[abValue].value += round(#BAB[]/4,0,-1) + 1
field[abValue2].value += field[abValue].value * 2
Javascript doesn't seem to like Math.round(bab/4,0,-1) + 1 Anyone have an idea what the heck is going on?