• Civilization 7 has been announced. For more info please check the forum here .

limit Building construction

Alyph

Chieftain
Joined
Mar 21, 2004
Messages
15
Who knows how to specify which building could be built in certain city using python? For example, I want only Paris could build a Efile Tower. Or any way to decide whether a building could be built or not by python codes, not XML?
 
Your going to want to interrupt the CanConstruct (or CannotConstruct) function and put in some qualifiers based on what you want to do. I do a similiar change to keep certain religions from being able to build specific units or select specific techs or civics.
 
Hey, could you give me more details? How to "interrupt the CanConstruct (or CannotConstruct) function "? I do modify those two functions, and in CannotConstruct func I returned True, but the building could still be built? Can I have a look at your religions mod? Thanks!
 
Top Bottom