I have another question. I've seen that in some maps, buildings are replaced based on certain conditions. For example, a Dwarven dwelling is replaced with a Peasant dwelling for 500 gold. I thought this was done using the RemoveObject and CreateDwelling functions. But for some reason, it seems that RemoveObject only removes creatures. How can I achieve this?
If you explain in more detail and clearly what you want to do, I might be able to help.