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
peterphonic
Member
 
Join Date: Aug 2014
Posts: 44

Old October 3rd, 2014, 06:13 PM
Hi,

I have created a new feat with this eval script :

Final Phase 99999
Code:
~ If we're disabled, do nothing
      doneif (tagis[Helper.FtDisable] <> 0)

field[trkMax].value = hero.child[aCON].field[aUser].value
field[trkLeft].value = hero.child[aCON].field[aUser].value
field[trkMin].value = 0
Show in tracked resources list is check.

SO, the feat correctly appears in in-play tab. But the text is grayed, like if all resources were used. Is it because I did a mistake in my script?

Thx
peterphonic is offline   #1 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old October 3rd, 2014, 06:49 PM
I believe the eval script is too late. Try setting it at PostAttr 10000

A couple other issue
1 - trkLeft is the number of charges left in the tracker (trkMax - trkSpent), so you shouldn't be setting it in an eval script since it will be calculated based on other things.
2 - the attribute's aUser field is the base number that the user enters, it doesn't include any enhancement bonuses from items and whatnot. You may want aFinalVal instead
3 - There is no need to set trkMin to 0, that is the default minimum already.
Aaron is offline   #2 Reply With Quote
peterphonic
Member
 
Join Date: Aug 2014
Posts: 44

Old October 4th, 2014, 04:46 AM
Thank you, this resolved my problem.
peterphonic is offline   #3 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 08:39 PM.


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