Auto-translated
Replace a building on the adventure map with another one where you can purchase creatures. For example, replace a Demon Tower with an Archers Tower. I will create the condition explaining why it should be changed; I am interested in the process itself. Because I don't know how to delete a building.
It seems you can't delete it, but there is a command - ReplaceDwelling (Replaces a dwelling with a dwelling of the same level of the specified faction, and also provides for specifying the creatures that are sold there.)
Syntax
{{{
ReplaceDwelling( name, newTownType, [creatureId1, [creatureId2,
[creatureId3, [creatureId4] ] ] ] )
}}}For example, Demon Tower to Archers Tower.
ReplaceDwelling( 'Demon Tower', 0, 3 )Where 'Demon Tower' is the script name of the building
0 is the faction ID
3 is the creature ID