Junior Member
Join Date: Dec 2011
Posts: 25
|
Am stumped. Not sure why this isn't working....Have gone through the forum, found some very helpful tips and tricks I didn't know about (the floating debug windows are insanely helpful)...and yet, I can't get this code to work.
The feat allows for an additional favored enemy (if the class has the favored enemy feature)...and another class for favored terrain, same situation. I've tried it with all of these options now, individually of course, but none of them are working to accomplish the bonus to the total count. Code:
hero.child[resEnemSel].field[resMax].value += 1 hero.child[resEnemUpg].field[resMax].value += 1 hero.child[resTerrSel].field[resMax].value += 1 hero.child[resTerrUpg].field[resMax].value += 1 Any help on dissecting this and getting me past my brain dead moment will, as always, get you HL Gurus a toast from this humble guy. Thanks in Advance Last edited by KTFish7; May 7th, 2012 at 07:38 PM. |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,217
|
What phase & priority did you put this script at?
|
#2 |
Junior Member
Join Date: Dec 2011
Posts: 25
|
Currently the phase is on First, with a priority of 100....have tried several variations of phase/priority based on other threads from the forum, none of them have been that sweet spot yet.
Thanks Mathias |
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,217
|
As a general rule, the default phase & priority is a bad choice for ANY script - there are some real problems that can be created if you leave it there.
Post-Attributes/10000 would be when I'd try this. Are you testing this on a Ranger, or some other character that already has favored terrains, or are you testing this on an otherwise blank character? Are you receiving any error messages? If so, please right-click them, copy their text, and paste them here. |
#4 |
Junior Member
Join Date: Dec 2011
Posts: 25
|
YYYEEESSS!!! Mathias, You are my new Hero!!! It works!!!! Thanks You very much
|
#5 |
Senior Member
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321
|
KT, it's my understanding that the Additional Favored Enemy/Terrain wouldn't add to the upgrade resource. It would still only be a single +2 and wouldn't allow upgrading any other entry.
|
#6 |
Junior Member
Join Date: Dec 2011
Posts: 25
|
I wasn't trying to affect the upgrade resource. The feat gives additional selection options by increasing the total count each time the feat is taken.
|
#7 |
Senior Member
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321
|
My bad I was thinking the upgrade was the + for that entry....
|
#8 |
Senior Member
Join Date: Dec 2010
Location: Northeast Quadrant
Posts: 128
|
Is this for the Spell-less Ranger that was submitted to OD/KP? Every time I add a feat, any feat, I get an error code related to the prereqs in both the Additional Favored Enemy and Additional Favored Terrain feats.
I redownloaded it from the Paizo site to make sure it was the most up to date and I'm still getting the error (pic below). I took a look at those two feats and at my (admittedly inadequate) skill level couldn't see where it went wrong. Also, (assuming you are the author of the official file) there's a typo in the AFE as the message calls out for favored terrain, not enemy. AFE : if (hero.picklives[resEnemSel] <> 0) then validif (#resmax[resEnemSel] <> 0) endif AFT : if (hero.picklives[resTerrSel] <> 0) then validif (#resmax[resTerrSel] <> 0) endif |
#9 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Maybe picklives works but I have never seen it or used it. I always use "childlives". Trying changing picklives to "hero.childlives" and see if it throws the same error.
Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#10 |
|
|