Quote Originally Posted by GFX707
Is there a way to make a certain building preclude another?
Yes, you can use the "not" modifier in front of "building_present_min_level" - this prevents you from constructing a certain building if a building of another type exists.

What I have done is create a parallel set of barracks buildings which use the same levels as the standard barracks buildings. For example:

Code:
building roman_barracks
{
    levels muster_field militia_barracks city_barracks army_barracks royal_barracks
You might find this useful.


Question to Monkwarrior: In your response above you've used the "building_present_min_level" token in the "recruit" line. Have you used this successfully in the past? I ask because I tried this once, and everything went smoothly until the condition was actually met. Then the game crashed when I tried to build something. I did some troubleshooting and found that the problem went away when I got rid of "building_present_min_level" in the "recruit" lines. Ever since I've assumed that it's OK to use "building_present_min_level" in the requirement line for buildings but not for recruiting units.