I am trying to create a feat, Shield Ward.
It will add the Hero's Shield AC bonus (including magic) to his Touch AC and his CMD. Here is the script I have to far, but it Herolab doesn't seem to like it much.
~find all our shields
foreach pick in hero from BaseArmor where "EquipType.Shield"
var bonus as number
~if it's equipped
if (eachpick.field[gIsEquip].value <> 0) then
bonus = eachpick.field[tACShield].value
eachpick.field[tACTouch].value += bonus
endif
nexteach
It compiles it without a complaint, but it does not adjust the Touch AC of the character. Then there is figuring out how to add it to the CMD.....
And when it is used on a character with a Magic Shield, Herolabs complains bitterly that the 'attempt to access field "TACShield" that does not exist for thing "IMagArmor"'
BenT1
It will add the Hero's Shield AC bonus (including magic) to his Touch AC and his CMD. Here is the script I have to far, but it Herolab doesn't seem to like it much.
~find all our shields
foreach pick in hero from BaseArmor where "EquipType.Shield"
var bonus as number
~if it's equipped
if (eachpick.field[gIsEquip].value <> 0) then
bonus = eachpick.field[tACShield].value
eachpick.field[tACTouch].value += bonus
endif
nexteach
It compiles it without a complaint, but it does not adjust the Touch AC of the character. Then there is figuring out how to add it to the CMD.....
And when it is used on a character with a Magic Shield, Herolabs complains bitterly that the 'attempt to access field "TACShield" that does not exist for thing "IMagArmor"'
BenT1