Skip to content
User Avatar
#576
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');
Карты для Heroes V: Повелители орды:
Multiplayer: Господство, Извечное противостояние, Война за Магию, Торговая империя, Анатомия войны, Эксперимент
SingleScenario: Последний Рубеж, Трон, Элиралис, Вернуться домой!, Лабиринты разума
Campaign: Колонизация