View Single Post
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old December 4th, 2017, 12:48 PM
At 1st level, level/4 = 0, but you want to add +5 at 1st level, so you want to add 1 to the total you're calculating, and then multiply it.

Code:
field[abValue].value += (round(field[xTotalLev].value / 4, 0, -1) + 1) * 5
Mathias is offline   #2 Reply With Quote