Skip to content
#577
Auto-translated
KioM
I encountered some kind of mysterious problem... almost mystical. In the script, I made a transformation of a town of one faction into another, and after that, I prohibited building certain structures in it. However, after the transformation, these structures are still available for construction. Here's 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');
I forgot to add a sleep function after the transformation.