• 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

Script to check Weapon type!

bodrin

Well-known member
Hi guys,

I'm trying to script a test against a weapon which belongs to the fighter group Heavy Blades and is Two Handed.

I've constructed a script which will test for each thing separately but can't seem to get the right hand expression correctly.

Code:
If (field[pChosen].chosen.tagis[wFtrGroup.HeavyBlades] | [wClass.TwoHanded] <> 0) Then ......

This just throws an error message. What am I not seeing?
 
Use tagexpr[] instead of tagis[] in order to test for a tag expression. Tagis can only perform a simple test on a single tag.

Also, don't close the square brackets until you're done with the entire tag expression.
 
Back
Top