Auto-translated
function capturetown(g1,g2,g3,g4)
if g2==PLAYER_1 and g3=='Godric' then
DestroyTownBuildingToLevel (g4,4,0,0);
for i=7,13 do
DestroyTownBuildingToLevel (g4,i,0,0);
end;
else
if g2==PLAYER_1 then
DestroyTownBuildingToLevel (g4,4,1,0);
for i=7,13 do
DestroyTownBuildingToLevel (g4,i,2,0);
end;
end; end;
end;
for i=1,6 do
SetObjectEnabled ('town_'..i,not nil);
Trigger (OBJECT_CAPTURE_TRIGGER,'town_'..i,'capturetown');
end;
Well, something like this (found it in an old map draft :). Basically, it destroys the tavern and dwellings for the player and restores them for the AI after the town is captured. It works for all 6 towns. It seems to be working fine... I don't think I missed anything.
Oh, I noticed that the function is completely different in your version :D