Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System

Notices

Reply
 
Thread Tools Display Modes
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old March 3rd, 2017, 04:47 AM
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?

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?
Sendric is offline   #1 Reply With Quote
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
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old March 3rd, 2017, 09:38 AM
Quote:
Originally Posted by ShadowChemosh View Post
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.
Oh, sweet. I didn't know I could use that. Thank you!!
Sendric is offline   #3 Reply With Quote
Reply

Thread Tools
Display Modes

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 03:02 PM.


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