Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System

Notices

Reply
 
Thread Tools Display Modes
bodrin
Senior Member
 
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,263

Old August 31st, 2009, 03:17 PM
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
            validif (eachpick.tagis[wTypeRanged] <> 0)
            
            ~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
bodrin is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 12,559

Old August 31st, 2009, 03:30 PM
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
Mathias is offline   #2 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 10:40 PM.


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