I have a template that adjusts three abilities to a minimum of 1. I've searched the forums for a script example already but only found the Feeblemind adjustment in the D20 section.
Heres what I have and it compiles but again I'm encountering the abValue doesn't exist for XXX error.
Attempt to access field 'abValue' that does not exist for thing 'aSTR'
- - -
Attempt to access field 'abValue' that does not exist for thing 'aSTR'
- - -
Attempt to access field 'abValue' that does not exist for thing 'aCON'
- - -
Attempt to access field 'abValue' that does not exist for thing 'aCON'
- - -
Attempt to access field 'abValue' that does not exist for thing 'aDEX'
- - -
Attempt to access field 'abValue' that does not exist for thing 'aDEX'
Also tried this script too!
Once more help!
Heres what I have and it compiles but again I'm encountering the abValue doesn't exist for XXX error.
Attempt to access field 'abValue' that does not exist for thing 'aSTR'
- - -
Attempt to access field 'abValue' that does not exist for thing 'aSTR'
- - -
Attempt to access field 'abValue' that does not exist for thing 'aCON'
- - -
Attempt to access field 'abValue' that does not exist for thing 'aCON'
- - -
Attempt to access field 'abValue' that does not exist for thing 'aDEX'
- - -
Attempt to access field 'abValue' that does not exist for thing 'aDEX'
Code:
~Ensure we have a minimum of 1 in our Strength, Constitution and Wisdom scores
if (hero.child[aSTR].field[aFinalVal].value >= 0) then
#applyvalue[aSTR, 1]
endif
if (hero.child[aCON].field[aFinalVal].value >= 0) then
#applyvalue[aCON, 1]
endif
if (hero.child[aDEX].field[aFinalVal].value >= 0) then
#applyvalue[aDEX, 1]
endif
Code:
~Ensure we have a minimum of 1 in our Strength, Constitution and Wisdom scores
perform hero.child[aSTR].delete[Value.?]
if (hero.child[aSTR].field[aFinalVal].value >= 0) then
#applyvalue[aSTR, 1]
endif
perform hero.child[aCON].delete[Value.?]
if (hero.child[aCON].field[aFinalVal].value >= 0) then
#applyvalue[aCON, 1]
endif
perform hero.child[aDEX].delete[Value.?]
if (hero.child[aDEX].field[aFinalVal].value >= 0) then
#applyvalue[aDEX, 1]
endif
Once more help!

Last edited: