You can't modify original script as it is hardcoded. But you can write your own script both for emissaries and their dwelling. If you give emissaries to the hero via script, they lose their hardcoded features, which is a good thing if you want to customize them.
See TEW4 mod for custom emissaries and their dwelling (MoE faction).