Connection ErrorBad RequestThis page went staleSession ExpiredSign in requiredForbiddenNot FoundToo Many RequestsServer ErrorBad GatewayService UnavailableGateway TimeoutHTTP Version Not Supported
Session Expired
Your session has expired. Please log in to continue.
Sign in required
You need an account to do that. Sign in or create one — it only takes a minute.
This page went stale
Your security token was rejected, usually because the page sat open too long or you signed in elsewhere. Nothing was saved. Reload the page and try again.
Request Failed
We encountered an issue while processing your request.
Please check your internet connection and try again.
zahar0z, you can implement a check, for example, in a trigger for a new day. You need to check all possible dwellings, count how many have been built, and when the condition is met, prohibit the construction of those that haven't been built. Here's a description of suitable functions from the Novice's Manual (I haven't personally tested them):
These functions allow you to find out the level/development limit/maximum level of building nBuildingID in a town with the name sTownName. The corresponding TOWN_BUILDING_* constants for nBuildingID can be found in /scripts/advmap-startup.lua. I won't list them here due to their large number. Level 0 means that the corresponding building is absent.
This function allows you to set a limit on the development level of building nBuildingID in a town with the name sTownName. Attempting to set a level higher than the maximum possible will cause an error. Level 0 means prohibiting the construction of the building.
РПГ-сценарий для HoMM5: Путь героя ЧаВо по созданию карт для HoMM5: ЧаВо