• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Custom Expression

Sendric

Well-known member
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?
 
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. :)

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. :)
 
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!!
 
Back
Top