At the moment my campaign is the Age of worms, in it this feat has cropped up and I am trying to get it into hero lab however I can script it so it works with all the pre reqs assigned but I don't know how to check for one handed Slashing weapons only on the Weapon Focus feat.
I've ticked the Restrict to picks on hero and select from all weapons but how can I restrict it to only show one handed Slashing weapons only?
I've ticked the Restrict to picks on hero and select from all weapons but how can I restrict it to only show one handed Slashing weapons only?
Code:
{b}Prerequisites{/b}: Weapon finesse, Weapon Focus (Any one handed Slashing Weapon), Base Attack Bonus +1.
{b}Benefit{/b}: If you do not wield a shield or weapon in your off-hand you treat your chosen weapon as a light weapon.
If you do not wield a shield or weapon in your off-hand, you also gain a +1 shield bonus to your AC while wielding your chosen weapon.
When you are fighting defensively or using the total defense action, this shield bonus increases to +2
{b}Special{/b}: A fighter may select Improved Buckler Defense as one of his fighter bonus feats.
You may take this feat more than once, each time you do, it applies to a new one-handed slashing weapon you have weapon focus in.
{b}{i}Age Of Worms Feat{/i}{/b}
Code:
Eval script
~ If we're disabled, do nothing
if (tagis[Helper.FtDisable] <> 0) then
done
endif
~ If we're wearing armor or wearing a Buckler, we're disabled.
if (hero.tagis[Hero.EquipArmor] + hero.tagis[Hero.EquipShld] <> 0) then
var result as number
result = assign[Helper.SpcDisable]
done
endif
~ Check to see if we have something equipped in main hand only
if (hero.tagis[Hero.EquipMain] < 1) then
done
endif
~ Check to see that we dont have at two weapons equipped, or a double
~ weapon
if (hero.tagcount[Hero.EquipWep] > 1) then
done
endif
~ Check to see if our Unarmed Strike is selected in either main or off
~ hands
if (hero.child[wUnarmed].tagis[Hero.MainHand] + hero.child[wUnarmed].tagis[Hero.OffHand] < 0) then
done
endif
~ Otherwise, add a +1 Shield bonus to our AC
hero.child[ArmorClass].field[tACShield].value = maximum(hero.child[ArmorClass].field[tACShield].value, 1)