Use the following to replace a dwelling with another:
ReplaceDwelling(SCRIPT_NAME, TOWN_ID, CREATURE_1, CREATURE_2, CREATURE_3, CREATURE_4)
The maximum number of creatures available in the new dwelling is equal to the number of creatures that were available in the original dwelling. You can place any creatures, regardless of the dwelling type.