So does this seem right?
~ If we're disabled, do nothing
doneif (tagis[Helper.FtDisable] <> 0)
~figure out the difference between our DEX and STR modifiers (minimum 0, since the feat says "can", not "must")
field[abValue].value += maximum(#attrmod[aDEX] - #attrmod[aSTR], 0)
~ Otherwise, go through to all quaterstaff on the hero and replace their Strength bonuses to Hit with Dex bonuses.
foreach pick in hero from BaseWep where "IsWeapon.wQtrstaff"
eachpick.field[wAttBonus].value += field[abValue].value
nexteach
It seems to work well