Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
KTFish7
Junior Member
 
Join Date: Dec 2011
Posts: 25

Old May 7th, 2012, 07:35 PM
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
And of course, getting frustrated with the fact I couldn't get this to work, I tried working on the pre-req to take my mind away from the main problem for a second, only to not be able to get it to work either...and I haven't even tackled the additional animal companion Ranger Talent yet....arrggghhhh...and here this PDF was going so well, lol.

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.
KTFish7 is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 12,559

Old May 7th, 2012, 10:54 PM
What phase & priority did you put this script at?
Mathias is offline   #2 Reply With Quote
KTFish7
Junior Member
 
Join Date: Dec 2011
Posts: 25

Old May 8th, 2012, 01:56 PM
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
KTFish7 is offline   #3 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 12,559

Old May 8th, 2012, 02:16 PM
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.
Mathias is offline   #4 Reply With Quote
KTFish7
Junior Member
 
Join Date: Dec 2011
Posts: 25

Old May 8th, 2012, 03:16 PM
YYYEEESSS!!! Mathias, You are my new Hero!!! It works!!!! Thanks You very much
KTFish7 is offline   #5 Reply With Quote
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,081

Old May 14th, 2012, 03:21 AM
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.
TCArknight is offline   #6 Reply With Quote
KTFish7
Junior Member
 
Join Date: Dec 2011
Posts: 25

Old May 16th, 2012, 09:46 AM
Quote:
Originally Posted by TCArknight View Post
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.
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.
KTFish7 is offline   #7 Reply With Quote
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,081

Old May 16th, 2012, 11:04 AM
My bad I was thinking the upgrade was the + for that entry....
TCArknight is offline   #8 Reply With Quote
poizen37
Senior Member
 
Join Date: Dec 2010
Location: Northeast Quadrant
Posts: 128

Old December 15th, 2012, 07:47 AM
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
Attached Images
File Type: png spellless ranger error.png (325.5 KB, 6 views)
poizen37 is offline   #9 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,666

Old December 15th, 2012, 10:05 AM
Quote:
Originally Posted by poizen37 View Post
AFE :
if (hero.picklives[resEnemSel] <> 0) then
validif (#resmax[resEnemSel] <> 0)
endif

AFT :
if (hero.picklives[resTerrSel] <> 0) then
validif (#resmax[resTerrSel] <> 0)
endif
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.
ShadowChemosh is online now   #10 Reply With Quote
Reply

Thread Tools
Display Modes

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 01:57 PM.


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