Senior Member
Join Date: May 2016
Posts: 608
|
In the editor's local help files you can find an example in the eval scripts link:
Quote:
field[abValue].value = 1 + round(#attrmod[aINT]/2,0,-1) you might want to make it cleaner looking by declaring a variable that grabs the attribute modifier first before putting it into the math. var attrbonus as number var answer as number attrbonus = #attrmod[aINT] answer = 1 + round(attrbonus/2,0,-1) |
|
#2 |
|
|