Auto-translated
There doesn't seem to be a direct function to restore a town from its ruins. You can try a workaround:function RazeOfTown()
MakeTownMovable(nTownname);
--makes the town movable
SetObjectPosition(nTowname, x, y, floor);
--teleports the town to some empty, hidden area (e.g., in a Dungeon)
PlayVisualEffect(...);
--some nice effects of the town's destruction
CreateStatic("RazedTown", /Path to model.xdb#xpointer(/Model), x, y, floor);
--creates the town's ruins in its place
end;
...
...
function TownRebuilt()
RemoveObject("RazedTown");
--removes the ruins
PlayVisualEffect(...);
--some nice effect of the town's restoration
SetObjectPosition("TownName", x, y, floor);
--returns the town to its place
end;
I used the RazeTown("Town Name") command to destroy the town. It worked great.
I just didn't know how to restore the town. Thanks. I'll try it today