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!
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