Member
Join Date: Aug 2014
Posts: 44
|
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 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 |
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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. |
#2 |
Member
Join Date: Aug 2014
Posts: 44
|
Thank you, this resolved my problem.
|
#3 |
|
|