• 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

Broken scripts

frumple

Well-known member
With the latest release of the PF files some scripts have been broken.

Specifically the following:

foreach pick in hero where "Spctype.Movement"

*blah*
nexteach

I have been using this construct to find the highest speed of all movement types (which quite of few templates require). However, the thing selSTypMov is now selected as well which is causing errors.
 
Ok I feel foolish... I forgot it should be:

foreach pick in hero from Ability where "Spectype.Movement"
 
There will be tags that differentiate that new thing from the old ones - you'll need to make "SpecType.Movement" a more complex test in order to filter it out and find only the things you need.

The Hero Lab files will change over time. New capabilities and new content will always be coming, and that will mean that more things will be added to the files. So when you're creating your own content, plan ahead - think about your tests, and make sure they're finding exactly what you want them to find, no more, no less, instead of casting an extremely wide net, because that's what works now.
 
Back
Top