Another Round function challenge for you all: Ability that grants +1 to perception skill at 3rd level, and gains an additional +1 at 7th, 11th, 15th and 19th levels.
field[abValue].value += round(field[xTotalLev].value-2 / 4, 0, -1) + 1
~Apply bonus to Perception skill
hero.child[skPercep].field[Bonus].value += field[abValue].value
Somehow, the bonus at 3rd level delivers a result of +3. I am baffled as to how it arrived at that result. Any ideas?
|