Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   Script to check Weapon type! (http://forums.wolflair.com/showthread.php?t=57355)

bodrin January 10th, 2017 02:44 PM

Script to check Weapon type!
 
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?

Mathias January 10th, 2017 02:46 PM

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.


All times are GMT -8. The time now is 08:19 PM.

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