A question for the mod community

thewyrm

Ambassador to Real Life
Joined
Feb 9, 2008
Messages
279
Is there anyway to mod the game so that civs can only build settlers if all of their cities have reached their happiness cap?
 
What's a happiness cap?
 
It shouldn't be hard to do by blocking it in python. Of course, there would be no in-game explanation of why you couldn't build them.


I think think that this might work, but I haven't tried it and there might be a better function to use: in C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\Fall from Heaven 2 033\Assets\python\CvGameUtils.py:

Edit: I forgot to say that that should appear within def cannotTrain(self,argsList), obviously after all the variables are defined.

Code:
		if eUnit == gc.getInfoTypeForString('UNIT_SETTLER'):
			if pCity.happyLevel() < pCity.getPopulation():
				return True
 
When I get home from work next friday I'll see what I can do. My reasoning is twofold, I hate how the AI spreads like wildfire at a ridiculous rate and I want to simulate actual migration of people overcrowded in one city moving to found another settlement elsewhere.

Edit: I can't believe I forgot to say thank you. So thanks MC, you rock.
 
Top Bottom