Junior Member
Join Date: Aug 2010
Posts: 8
|
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: 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] 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 |
#1 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
field[usrChosen1].chosen is what you should use usrCandid1 is the field holding the expression
so I believe it should look something like Code:
#applybonus[svResist, field[usrChosen1].chosen, 1] |
#2 |
|
|