Is it possible to make a district require a building in that city?

Mettpawwz

Chieftain
Joined
Feb 4, 2017
Messages
73
I want to make a custom district that requires a specific building to already exist in that city in order to be allowed to build it. Is that possible?

There don't seem to be any fields for pre-requisites in the district table aside from PrereqTechs and PrereqCivics, and I don't know of any other ways that it could be conditionally allowed to be built/not allowed to be built.

Anyone have any ideas?
 
It's probably possible, but would require re-write of the game's lua file that controls the City Production Panel (and this would make the mod incompatible with any other mod that also re-writes the City Production Panel, including popular mods like CQUI and such), and this would only affect the human player's ability to select the district as a construction project in their cities. Additional lua would be required to remove the district from an AI city's build qeue as required, and this could end up being pretty punishing to the AI over the course of a game.
 
Back
Top Bottom