Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Ikonoklast
Junior Member
 
Join Date: Aug 2010
Posts: 8

Old July 2nd, 2014, 05:27 PM
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
Field ID = usrCandid1

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
Ikonoklast is offline   #1 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old July 2nd, 2014, 05:56 PM
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]
also you don't have to use a hero.child[xxx] transition when accessing a field on the current thing
AndrewD2 is offline   #2 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:53 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.