Skip to content
User Avatar
#592
Auto-translated
JonnyP
took a look. You've messed something up there. :D
setBuildingsLevel(TOWN01, 1, 3, 2); You write this, but then you assign level1=1 (although for a ban, level1=0 should be).
DestroyTownBuildingToLevel(townName, TOWN_BUILDING_TAVERN, level1, 0); (i.e., you allow the construction of a tavern, although you wanted to ban the tavern after the transformation :confused: ).
Furthermore, you can also use this function for dwellings (it's easier to use a loop - I provided an example, which is working - I'm telling you again :) Besides, there's a reverse example there - after the computer captures a town, the tavern and dwellings are allowed to be built again).
And you've also messed up with aliases :eek: that's crazy :smile33: maybe the problem is in them - I don't really understand them.
Will you say it doesn't work again?? ;)

a fresh look) thank you: setBuildingsLevel(TOWN01, 1, 3, 2); the mistake was here...
Карты для Heroes V: Повелители орды:
Multiplayer: Господство, Извечное противостояние, Война за Магию, Торговая империя, Анатомия войны, Эксперимент
SingleScenario: Последний Рубеж, Трон, Элиралис, Вернуться домой!, Лабиринты разума
Campaign: Колонизация