Senior Member
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226
|
Hi again folks, this time working on a class special that adds a damage bonus equal to the number of sneak attack dice at a given level. At 11th level, the bonus doubles. I want the listname and livename to list the bonus as it scales in level. My code is
Code:
~only do this if we are the first copy doneif (tagis[Helper.FirstCopy] = 0) ~Set abValue if (#levelcount[LegeRogu] >= 11) then field[abValue].value += (field[xCount].value + 1) * 2 else field[abValue].value += field[xCount].value + 1 endif ~ Set the listname field[listname].text = field[thingname].text & " " & signed(field[abValue].value) ~ Set the livename field[livename].text = field[thingname].text & " " & signed(field[abValue].value) |
#1 |
|
|