.

Lord Olleus said:
Is there a way for buildings to and promotions not to show on the screen? I guess that its possible as all the screens are controlled in python, but I have no idea how to make this happen. Any help will be appreciated.

Lord Olleus, it depends on how far you want to take it. To start off, you will need to mod the CvMainInterface.py. Besides that file you need to mod any of the civilopedia files that include the promotion and building information.
 
CvGameUtils.can(not)Construct is called for buildings I think. If so, you can check if the player is human and if the item is the right building and return False from a "can" function or true from a "cannot" function to disable it.
 
talchas said:
CvGameUtils.can(not)Construct is called for buildings I think. If so, you can check if the player is human and if the item is the right building and return False from a "can" function or true from a "cannot" function to disable it.

Returning false for can does nothing. That's why there's two functions, can and cannot.
 
Back
Top Bottom