I thought I had this figured out, but after a few months I revisited the ability, and realized it wasn't working as I hoped.
It's a custom ability that can be selected multiple times. Each time, it adds +1 dodge bonus to AC when hero is fighting defensively.
I don't receive any error messages, and the bonus adds to AC correctly, but the livename doesn't reflect the correct value after the first copy. It could be a timing issue, but I tried other phases to no avail.
<Post-Attributes 10000>
Code:
call X1SetFirst
field[abValue].value += 1
field[livename].text &= field[thingname].text & " +" & field[abValue].value
hero.childfound[pstFtDefen].field[abValue].value += field[abValue].value
~ if we're not the first copy, get out now
doneif (tagis[Helper.FirstCopy] <> 1)
~ if we're not fighting defensively, get out now
doneif (hero.childfound[pstFtDefen].field[pIsOn].value = 0)
hero.childfound[ArmorClass].field[tACDodge].value += field[abValue].value
I have several custom abilities that work similarly, so if the community can assist, you will help me solve several problems. Thanks as always!