Additional Favored Terrain/Enemy Feat
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 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 |
What phase & priority did you put this script at?
|
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 |
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. |
YYYEEESSS!!! Mathias, You are my new Hero!!! It works!!!! Thanks You very much
|
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.
|
Quote:
|
My bad :) I was thinking the upgrade was the + for that entry....
|
1 Attachment(s)
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 |
Quote:
|
All times are GMT -8. The time now is 11:49 AM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.