Pretty much the same thing, just a little simpler:
Code:
hero.childfound[ArmorClass].field[Bonus].value += #attrmod[aCHA]
As dungeonguru said, DEX is already included in AC calculations automatically. But if for some reason it isn't in this particular creature, you could do:
Code:
field[abValue].value = #attrmod[aCHA]
field[abValue].value += #attrmod[aDEX]
hero.childfound[ArmorClass].field[Bonus].value += field[abValue].value