Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Diaz Ex Machina
Member
 
Join Date: Feb 2017
Location: Italy
Posts: 65

Old April 17th, 2022, 04:37 AM
How can I hide/preclude all the other traits that don't come from a determined source? Like, if I have "The Shackled City" source selected I want to see only its traits, nothing else (not even - Custom Trait -).
I've tried this method, but it gives me this error:

Here's the code I used (Phase First, Priority 10000, Index 1):
Code:
      ~ Find all other traits
      foreach thing in Trait where "!TraitCat.ShackCity"

        ~ If no trait category then pull the thingid
        If (eachthing.tagcount[TraitCat.?] = 0) Then
          perform eachthing.pulltags[thingid.?,HideTrait]
        ~ If we have a category then pull the cateogry only
        ~ if we have not already pulled it.
        Else
          If (eachthing.intersect[TraitCat,TraitCat] = 0) then
            perform eachthing.pulltags[TraitCat.?]
          Endif
        Endif
      nexteach

      ~ Create Hide Trait Catagory tags
      perform pulltags[TraitCat.?,HideTrCat]
      ~ Push the hide trait tags to the hero
      perform hero.pushtags[HideTrCat.?]
      perform hero.pushtags[HideTrait.?]
Thank you in advance for your help and time.
Diaz Ex Machina is offline   #1 Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 11:20 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.