Stopping a building being built if a different building has already been built

DavDarkelf

Chieftain
Joined
Nov 28, 2016
Messages
76
I can already limit a certain building to only allow one to be built by using the following
Code:
MaxPlayerInstances="1"
In my case I'm using it to create an alternative to the Bank. However I can't use
Code:
ReplacesBuildingType="BUILDING_BANK"
as none of my other cities would be able to build a normal bank.

The intention here is to have a few sort of mini wonders that are specific to one civilization and that are built in districts not on separate plots.

Any ideas?
 
If the city that constructs BUILDING_SPECIAL_BANK cannot construct BUILDING_BANK and vice versa, then simply use:
Code:
<MutuallyExclusiveBuildings>
	<Row Building="BUILDING_BANK" MutuallyExclusiveBuilding="BUILDING_SPECIAL_BANK"/>
	<Row Building="BUILDING_SPECIAL_BANK" MutuallyExclusiveBuilding="BUILDING_BANK"/>
</MutuallyExclusiveBuildings>
 
mmm...well, there are a whole bunch of entries in that table in the Buildings.xml file. It is how the Barracks and the Stable are made mutually exclusive within the same city.
 
Top Bottom