Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - d20 System (http://forums.wolflair.com/forumdisplay.php?f=46)
-   -   Custom Expression (http://forums.wolflair.com/showthread.php?t=57849)

Sendric March 3rd, 2017 04:47 AM

Custom Expression
 
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?

ShadowChemosh March 3rd, 2017 09:25 AM

Quote:

Originally Posted by Sendric (Post 245489)
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 (Post 245489)
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. :)

Sendric March 3rd, 2017 09:38 AM

Quote:

Originally Posted by ShadowChemosh (Post 245498)
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!!


All times are GMT -8. The time now is 09:35 AM.

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