• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Shutting down a new Trait category

jbearwillis

Well-known member
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.
 
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.
 
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.
 
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
The "trCategory.CampRazorC" section needs to be the Unique ID of what you named your new trait category. If you don't remember you can click on the Trait Categories button and then click on the "(?)" icon and it will tell you.
 
Back
Top