View Full Version : Editing the numbers that constitute "score" and victory conditions?


Zen Blade
Nov 23, 2008, 05:33 PM
Two related, but distinct questions.

1. "Score" In Globaldefines there are several components that are added together to give score. [population, land, tech, wonders, victory, free, handicap]

Is there a way to add one or more additional components? Such as military strength, production output, etc? And if so, what terms would need to be used/added?

NOTE: I have only been editing XML files, and have no experience with Python.

2. "Victory conditions" Ideally, I would love to setup a victory condition that consists of controlling a couple of specific cities, as well as having a minimum score...
Hypothetically, the victory condition would then be achieved if a player controlled the specific cities and had a specific score, which would symbolize a certain amount of power of land/population/military/etc...

Any thoughts?
Or perhaps any threads that are already out there? (I didn't see anything after searching titles for a while)

thanks,
-Zen Blade

General Tso
Nov 24, 2008, 07:30 AM
Both of these things could be done, but unfortunately would require using Python. The methods "calculateScore" and "isVictory" in CvGameUtils.py could probably be used to get the job done.