Can someone pleeeeeze tell me what's wrong with this line? It's in an eval script, if that makes any difference.
field[trtBonus].value = round((#trait[attrStr] + #trait[attrCon] + #trait[attrWpr])/3,2,1)
I'm trying to take the average of the three attributes (Strength, Constitution, Willpower), and round it up to the nearest integer.
field[trtBonus].value = round((#trait[attrStr] + #trait[attrCon] + #trait[attrWpr])/3,2,1)
I'm trying to take the average of the three attributes (Strength, Constitution, Willpower), and round it up to the nearest integer.