Auto-translated
Here's 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 function with the commands RemoveObject and CreateDwelling. But for some reason, it turns out that RemoveObject only removes creatures. How can this be done?