Connection ErrorBad RequestThis page went staleSession ExpiredSign in requiredForbiddenNot FoundToo Many RequestsServer ErrorBad GatewayService UnavailableGateway TimeoutHTTP Version Not Supported
Session Expired
Your session has expired. Please log in to continue.
Sign in required
You need an account to do that. Sign in or create one — it only takes a minute.
This page went stale
Your security token was rejected, usually because the page sat open too long or you signed in elsewhere. Nothing was saved. Reload the page and try again.
Request Failed
We encountered an issue while processing your request.
Please check your internet connection and try again.
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