Ikonoklast
Member
I am adding a custom ability that will ask the user to select Fort, Reflex, or Will and then apply a +1 Resistance bonus to the corresponding save.
I have the customer expression showing correctly
"Select From = None" "Restrict First List To = None"
Under Custom Expression:
Field ID = usrCandid1
This is what I am trying for the eval script.
The problem I'm running into is how to reference the field in the eval script.
If I hard code a save id (ie hero.child[svFort]) it works just fine, so I know the expression is correct. I just can't reference the choice in the field.
When I run the Test Now I get the error on line 1 (the line for the #applybonus) "Non-existent thing 'field' used by the script.
Every other ability that I can find that uses a selection like this uses the field['FieldID'].something
I have the customer expression showing correctly
"Select From = None" "Restrict First List To = None"
Under Custom Expression:
Code:
thingid.svFort|thingid.svRef|thingid.svWill
This is what I am trying for the eval script.
Code:
#applybonus[svResist,hero.child[field[usrCandid1].value],1]
The problem I'm running into is how to reference the field in the eval script.
If I hard code a save id (ie hero.child[svFort]) it works just fine, so I know the expression is correct. I just can't reference the choice in the field.
When I run the Test Now I get the error on line 1 (the line for the #applybonus) "Non-existent thing 'field' used by the script.
Every other ability that I can find that uses a selection like this uses the field['FieldID'].something