I've got an ability that gets to select a number of items based on their intelligence modifier.
I've tried setting cGiveSp3rd to the value, but nothing showed up unless there was something in the array. So I tried setting the array value directly, but that didn't work either.
My current code, running at Post-Levels 20000
I've tried setting cGiveSp3rd to the value, but nothing showed up unless there was something in the array. So I tried setting the array value directly, but that didn't work either.
My current code, running at Post-Levels 20000
Code:
doneif (tagis[Helper.SpcDisable] <> 0)
doneif (tagis[Helper.ShowSpec] <> 1)
root.linkage[varies].field[cCustTeTot].arrayvalue[2] += (#attrbonus[aINT])
if (field[xAllLev].value >= 15) then
root.linkage[varies].field[cGiveSp3rd].value += 2
elseif (field[xAllLev].value >= 11) then
root.linkage[varies].field[cGiveSp3rd].value += 1
endif