Junior Member
Join Date: Mar 2011
Posts: 9
|
I'm new to hero lab and have been trying to implement a variety of homebrew items I've created over the years, but I'm running into a few problems.
1) What tag do you use to modify animal companion attributes? I thought it would be the same as modifying user stats, but it doesn't seem to work. I tried this: hero.minion[AnimComp].child[aSTR].value += field[abValue].value But it threw an error (Invalid use of reserved word in script). I'm betting that it can't properly use aSTR to modify the companion's strength, but I don't know what tag or tree structure I should use to modify said data. 2) How can I test what kind of "faction" a character has. I tried this: #hasfaction[facArcDwar] <> 0 But that threw an error saying it couldn't resolve the left side of the relational equation. I'm guessing there is no "#hasfaction" but how else can I test for what faction a hero has. 3) How can I only test for a pre-req (like the faction above) at the time of selection and not afterwards? My goal is to have factions that allow access to certain feats/items/abilities etc. but to also be able to have players switch factions without it throwing up a bunch of errors with their current selection of feats/skills etc. However, it should restrict access to any further items related to that faction. Any help would be most appreciated |
#1 |
Senior Member
Join Date: Aug 2008
Location: Miamisburg, OH
Posts: 1,322
|
Are you trying to change an existing companion, or create a new varient of an existing one?
it might be easier to just create a new one and that way you would need to worry about scripting. Web site - Cheese Weasel Logistics - www.cheeseweasel.net Twitter - @CheeseWeaselGMZ For user created content check out www.d20pfsrd.com and www.cheeseweasel.net For video demos of Hero Lab go to http://www.youtube.com/user/TheChiefweasel?blend=9&ob=5 |
#2 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
It is like modifying the character's stats - but you missed a step, and you have the incorrect Id for the minion you're looking for.
hero.minion[cAnimComp].child[aSTR].field[Bonus].value += field[abValue].value Check the Andoren Falconry feat - that has an example of how to modify the stats of an animal companion. For faction-based feats, have you tried opening one of the feats that was added in the faction guide, or one of the Pathfinder Society's faction specific traits in the editor, and looking at its exprreqs to see how a requirement for a specific faction is coded in that case? @ispick will equal 0 while you are selecting something and 1 after selection, so validif (@ispick <> 0) will make your prereq valid once you've selected a thing. |
#3 |
Junior Member
Join Date: Mar 2011
Posts: 9
|
It would appear that the Upbringing feats have some sort of internal code that only allows a single one to be picked, so that solved most of my problems.
Thanks for the help! |
#4 |
|
|