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

Old March 3rd, 2017, 09:25 AM
Quote:
Originally Posted by Sendric View Post
Is there a way to modify a custom expression based on an item's field? For example, I want to search for weapons with a cost value of 50gp or less. Can this be done within a custom expression?
Yes. fieldval: is what you want to use:

Code:
component.MyGear & fieldval:gValue < 50
Is an example but please note I did it off the top of my head. So the field name and component name could be wrong.

Quote:
Originally Posted by Sendric View Post
Alternatively, is there a way to assign tags to things not picked by a character? Like if I wanted to search for all weapons of 50gp or less and assign a tag to them. Is that possible?
You can not assign tags to Things only Picks. A Thing is something that exists in the HL data base but has not been added to a character (ie Hero). The ONLY way to modify Things is via Replace Thing ID or using the new *Extend Thing tab. Or modifying the XML directly of course.

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