Does anyone know if it's possible to use a script to limit the number of dwellings that can be built in a town to four? Specifically, all dwellings should be available for construction until four have been built. Once the fourth dwelling is built, the remaining unselected dwellings become unavailable. Importantly, this shouldn't be tied to the level of creatures that can be recruited; the goal is to allow any combination of four dwellings to be built (e.g., a combination of levels 1, 2, 4, and 7, or levels 3, 4, 6, and 7, etc.). Does anyone have any ideas on how to achieve this?
Thank you in advance for any helpful information you can share.