Auto-translated
I encountered some mysterious problem... almost mystical. In the script, I made a transformation of a town of one faction into another, and after that, I prohibited the construction of certain buildings in it. However, after the transformation, these buildings are still available for construction. Here is an example of the code:
function transformation()
Trigger(OBJECT_CAPTURE_TRIGGER, 'town', nil);
TransformTown('town', TOWN_NECROMANCY);
SetTownBuildingLimitLevel('town', TOWN_BUILDING_BLACKSMITH, 0);
end;
Trigger(OBJECT_CAPTURE_TRIGGER, 'town', 'transformation');