Member
Join Date: Sep 2012
Posts: 88
|
So I'm trying to make a feat that's pretty much an exact duplicate of Adopted, but with different flavor text. I copied the trait, changed the name and the flavor text, and saved it. When I try to use it, it doesn't allow me to choose any racial traits, it shows them all as unavailable. However, when I use Adopted on the same character, it works fine. Is there something I need to do to get it to work?
Again, I just did New (Copy) and chose Adopted, and changed nothing but the name and text. If there is any more info needed, please let me know! |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Adopted is one of those "strange/unique" Things that LW decided to special code behind the scenes. So the only way to get your new "trait" to work is to trick HL into thinking that it has the adopted trait.
Add this script to your new trait running at First/1000 Code:
~ Add to traits allowed hero.child[resTrait].field[resMax].value += 1 ~ To get the ability to allow any race trait we have to trick HL ~ into thinking we have the CORE Adopted trait. By assigning these ~ three tags to the hero we do that. perform hero.assign[HasTrait.trAdopted] perform hero.assign[Ability.trAdopted] perform hero.assign[HasAbility.trAdopted] 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. |
#2 |
Member
Join Date: Sep 2012
Posts: 88
|
Thanks Shadow, that did it!
|
#3 |
|
|