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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Steev42
Member
 
Join Date: Nov 2010
Posts: 70

Old October 17th, 2012, 11:17 AM
I'm trying to create a favored class option for a new race/cleric. This option grants a particular domain ability if the character does not already have it, or adds to the number of uses per day if it does.

Code:
field[abValue].value += round(field[fcCount].value/2,0,-1)

if (#hasability[dPlaFist] >=1) then
   #trkmax[dPlaFist] += field[abValue].value
else
  perform hero.assign[HasAbility.dPlaFist]
endif
This code works if I set it to run at Validation/1. Anything before that seems to fail, giving me only the expected uses without this FCO. The only thing I can figure is that the #hasability macro isn't set until just before the validation--am I correct there, or am I overlooking something?

For the adding the ability if it isn't already on the character, this script just seems to have no effect. I assumed that I needed to bootstrap the relevant ability to the FCO, but when I do so and test, I get the error
Code:
Attempt to access field 'cTotalLev' that does not exist for thing 'fcSC' 
Location: 'field calculate' script for Field 'xTotalLev' near line 28
but only after 'delete and re-add'; compilation seems to work just fine.


Any assistance from anyone would be appreciated.
Steev42 is offline   #1 Reply With Quote
 


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 04:04 PM.


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