View Single Post
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old January 3rd, 2018, 11:42 AM
Assuming that KnowSpell.? is present at the timing you need you can add the following logic:

Code:
& " & !(" & hero.tagids[KnowSpell.?,"|"] & ")"
that can be added to the end of your custom expression. hero.tagids[] builds a list of all the KnowSpell ids on the hero and if multiple tags found it separates each with a | symbol which is 'OR'.

To be clear it becomes this:
Code:
eachpick.field[usrCandid1].text = "component.BaseSpell & !component.BaseWord & sClass.cHelpClr & !sClass.cHelpSha & (val:sLevel.? < " & hero.childfound[cHelpSha].field[cMaxSpLev].value & ")" & " & !(" & hero.tagids[KnowSpell.?,"|"] & ")"

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.
ShadowChemosh is offline   #2 Reply With Quote