I'm trying to fathom out how to modify Two Weapon defense to only apply a Bucklers Shield bonus for the feat Improved Buckler defense.
I've managed to modify the script for the Complete warrior versions of the Improved and Greater Two weapon defense by altering the value number at the end from 1 to 2 to 3 respectively.
However I don't want to add a shield bonus I just need to keep the Bucklers Shield bonus active whilst ignoring any other kind of shield, but I can't seem to assign the mBuckler or EquipShld tags correctly.
Any help or thoughts greatly appreciated!
Code:
~Improved Two Weapon Defense
~ If we're disabled, do nothing
if (tagis[Helper.FtDisable] <> 0) then
done
endif
~ Check to see if we have something equipped in each hand
if (hero.tagis[Hero.EquipMain] + hero.tagis[Hero.EquipOff] < 2) then
done
endif
~ Check to see that we have at least two weapons equipped, or a double
~ weapon
if (hero.tagcount[Hero.EquipWep] < 2) then
if (hero.tagcount[Hero.EquipDbl] = 0) then
done
endif
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 +2 Shield bonus to our AC
hero.child[ArmorClass].field[tACShield].value = maximum(hero.child[ArmorClass].field[tACShield].value, 2)
I've managed to modify the script for the Complete warrior versions of the Improved and Greater Two weapon defense by altering the value number at the end from 1 to 2 to 3 respectively.
However I don't want to add a shield bonus I just need to keep the Bucklers Shield bonus active whilst ignoring any other kind of shield, but I can't seem to assign the mBuckler or EquipShld tags correctly.
Any help or thoughts greatly appreciated!