Computing Victory Scores

Ambreville

Deity
Joined
Sep 28, 2006
Messages
2,255
Location
Windy City USA
Is it possible to modify the components of a game's Victory Score? I understand that in the standard game, the Victory Score includes several things like Technology, Culture, Land, Population, etc.

I want to remove some of these standard components, and add a new one that is directly linked to combat ==> combat XP's would plug directly into Victory Score, either 1 XP = 1 VP -- or something to that effect, 2 for 1, or 3 for 1 (etc) depending on the chosen game difficulty.

Another change would modify the definition of the Domination Victory so that it would not represent land controlled and population, but would represent the balance of certain forces in play. So for example, if a civ reaches a point at which it owns 80% of the air power on the board, it would win an "Air Superiority" victory.

Makes sense??
 
For first one, no idea. It's possible, though.
For the domination victory, a combination of XML and Python would be most likely. The XML file would be CIV4VictoryInfo in the Game Info folder.
And yes, it does make sense. ;)
 
I'm also doing something different with the score. It is handled in Python actually. See the function calculateScore in CvGameUtils.py. You can do just about what you want.

If you want to change the tooltip explaining score breakdown on the main interface (when you mouse over your own name in the scores list), you'll have to modify the SDK though. If the score is calculated differently in Python, the tooltip won't appear at all, which is good in this case.
 
Back
Top Bottom