|
Senior Member
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226
|
Happy new year to everyone! So I'm trying out this 'custom expression' thingy that all the kids are raving about.
I've got an ability that allows the user to select a knowledge skill that is not currently a class skill, and make it a class skill. I need to find some filters, and so I found "Helper.SkCatKnow" as a tag that will select only skills that have been assigned the Knowledge category, and the field 'fieldval:skClsSkBon = 0' that will only choose skills where the class skill bonus is 0 (i.e., it's not a class skill). So my custom expression looked like this: "Helper.SkCatKnow" & fieldval:skClsSkBon = 0 I then told the editor to select from Skills, and to restrict the first list to All Things. The resulting dropdown menu in the class tab looks like it's selecting all skills, and not filtering the way I want. Did I not create the custom expression correctly, or is my error in what I restricted the list to? |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
This is why it lists all skills because it overwrote your custom expression with "component.BaseSkills" as the whole expression. When you select from the editor dropdown you are "setting" the WHOLE expression. It does not append to the expression field. So first step is to set this back to "none".
Next its best to start an expression with a component "Type". In this case it would be component.BaseSkill. Then instead of a field class skills are known by the Helper.ClassSkill tag. Combine all this together and you get: Code:
component.BaseSkill & Helper.SkCatKnow & Helper.ClassSkill 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 |
Senior Member
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226
|
Quote:
1. By adding the 'Helper.ClassSkill' tag to the expression, would that not choose skills that ARE class skills? I want the expression to select knowledge skills that are NOT class skills. 2. The dropdown window in the class tab now says "Nothing to select." Do I need to restrict the 1st list in any way? |
|
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Code:
component.BaseSkill & Helper.SkCatKnow & !Helper.ClassSkill Well yeah you do always need to correctly set the restrict list or it defaults to Things I think. Anyways you want to select skills that are live on the hero or the "All Picks on Hero". 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: Nov 2017
Location: Trafford, PA, USA
Posts: 226
|
Quote:
|
|
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Its time share the .user file then so I can take a look at it as that does not make sense... You can attach it to a post here in this thread... Of if you want you can email it to me at my forum user id at yahoo dot com.
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. |
#6 |
|
|