Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
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 |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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) |
#2 |
|
|