Senior Member
Join Date: Dec 2009
Location: Independence, Mo
Posts: 797
|
I have made a new Trait category and added several traits that use that new trait category. Now the question I have is there a script or some other way to grey out the traits so they can not be picked once one is chosen.
|
#1 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Try setting the trait to "Add Once" in the Uniqueness dropdown in the editor. It's located to the right of where you enter the thing id.
|
#2 |
Senior Member
Join Date: Dec 2009
Location: Independence, Mo
Posts: 797
|
Ok that just greys out the trait that I picked - what I want to do is grey out all of them when one is picked, but I don't want to affect the other trait categories. I don't want to use the trait categories like ( faith,magic,regional etc.) I still want the players to be able to use those for a pick. so I made a new Trait category tag for the traits I made. So is there a script to target just that trait category and grey them out when i chose one of them.
|
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
On your trait click on the blue button labeled "Expr-reqs". In the new window press "Click to add another expression requirement".
I have a new category for my "Razor Coast campaign" and so in the message section I would enter "Can only have one Razor Coast Campaign Trait.". In the "Expression" section I would enter: Code:
hero.tagcount[trCategory.CampRazorC] <= @ispick 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. |
#4 |
Senior Member
Join Date: Dec 2009
Location: Independence, Mo
Posts: 797
|
Thank You very much. That worked like a charm.
|
#5 |
|
|