• 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

Ranged Disarm??

bodrin

Well-known member
I'm entering Ranged Disarm now Complete Warrior page 103

I'm trying to modify the Power critical code i've already tinkered with to show a drop down list for ranged weapons only.

This is the Eval rule script i'm trying but i get a syntax error message, I'm hoping its just the wTypeRanged tag that is incorrect, as I'm guessing at the format required from Graceful edge which was another one of my posts on feats!

Code:
 ~if a weapon's been selected for this feat
      if (field[fChosen].ischosen <> 0) then
      
        ~look through all the weapons
        foreach pick in hero where "component.BaseWep"
        
          ~if the weapon is the one we picked
          if (compare(eachpick.idstring,field[fChosen].chosen.idstring) = 0) then
          
            ~then we're good if it is a ranged weapon
           [B] validif (eachpick.tagis[wTypeRanged] <> 0)[/B]
            
            ~otherwise specify the error messages
            @message = "Ranged Disarm taken without a Ranged Weapon for " & eachpick.field[name].text & "."
            @summary = "Ranged Disarm taken without a Ranged Weapon."
            endif
          nexteach
          
      ~if nothing has been selected for this feat, we'll let other rules handle that
      else
        @valid = 1
        endif
 
There is no wTypeRanged tag in HeroLab - that's 11 characters long and tags cannot be more than 10 characters.

Try:
Code:
validif (eachpick.tagis[wCategory.Range?] <> 0)

That will catch both wCategory.RangeProj and wCategory.RangeThrow
 
Back
Top