Auto-translated
This function also doesn't work... In general, this is implemented in my "Throne" map; if you want, take a look – maybe I missed something after all. For now, I hacked it and completely removed the ability to hire anyone in the tavern.
P.S. My main goal was to prevent building taverns in cities.
Throne 1.2
setBuildingsLevel(TOWN01, 1, 3, 2); You write this, but then assign level1=1 through a function (although for prohibition, level1 should be 0).
DestroyTownBuildingToLevel(townName, TOWN_BUILDING_TAVERN, level1, 0); (i.e., you allow the construction of a tavern, although you supposedly wanted to prohibit building a tavern after transformation :confused: ).
Furthermore, you can use the same function for dwellings as well (it's easier with a loop - I provided an example, which is working - I repeat :) Moreover, there's also a reverse example - after capturing a city by AI, taverns and dwellings were allowed to be built again).
And you even created aliases :eek: That's crazy :smile33:. Maybe the problem lies in them – I don't really understand them.
Will you say it doesn't work again?? ;)