Multiple Victory Conditions Question

brandon1965

Chieftain
Joined
May 5, 2008
Messages
33
I apologize if this question has been asked before. Is it possible to modify the game so that a civ must meet more than one victory condition before being declared the winner. I am working on a mod for my own personal use and would like to add this option. I had the idea when I recently won a space race game as America-Washington. However, checking the game made me question exactly what I had won. I won with only four turns left and I was second in score to Germany-Bismarck. Bismarck also had two legendary cities and a third was only seven turns from legendary and he was also only a fraction of a percentage point away from domination victory and at war with two very weak neighbors. So, although i won by virtue of a single victory condition, my strongest opponent was likely within ten turns of winning in three different ways. While some may not see a problem with this, in my mind it was a cheap victory since I was obviously being owned by Bismarck in every possible way except the space race.
I'm not sure how well the AI would handle such a change but I would like the opportunity to experiment with it to see how it affects overall gameplay. Thanks for any help.
 
I posted a mod component request to that effect a few weeks ago. What I wanted was a majority of victories mod: don't win until you achieve three victory conditions or total conquest (which is defacto victory, you can't turn it off, I've tried under a custom game). I don't remember the name of it, but later saw a mod that had something like it: victory by points as I gather, and the other victories earn points.

You definitely can't do it with XML.
 
isVictoryTest() in CvGameUtils can be used to control whether victory happens or not. Just return False until you want victory to happen - then return true. Unfortunately, I don't know how to detect if a given victory condition has happened. Maybe someone else can help you there.
 
The Mastery Victory Condition is what you're looking for, I think. It's made by Sevo. You can either run the MVC mod by itself, or run one of the mods that includes it(I know CivFusion and TheConglomerate both include it, I'm not sure about others though they might).

Basically MVC gives you points for a civilization's achivements throughout the game. Building a Wonder(Not capturing it) gives points. Building one wonder will give you one point, building two gives three points, Five gives seven points, etc. You gain one point for each % of "domination" you have, I.E., owning 30% of land and 40% of population will give 70 points. Each Legendary City you have gives 30 points. Building a Space Ship gives 100 points.

At the end of the game(2050) all the points are tallied up, and the civilization/team with the largest amount of points wins.
 
Hi.
I was looking for the same thing Brandon was. Mastery Victory doesn't satisfy me, and moreover it's not for BtS.

I was looking for multiple victory system, i.e. you had to achieve more than one victory type to win the game.

New fixed multiple conditions would suit me as well, for example a "Cultural Domination Victory" in which you have to hold 3 legendary cities AND a certain % of land.

I tried edit the Civ4VictoryInfos.xml, and adding (for example)
Code:
<iLandPercent>30</iLandPercent>
<iMinLandPercent>30</iMinLandPercent>
to both Cultural and Space Ship victories.

In game menu, I can see a new line stating my % of land within both Cultural Victory Information and Spaceship Race Information.

But, I had a problem.. I completed the Space Ship having less than 30% of land, and no "launch" button appeared. Then, when I achieved 30,5% still launch button DID NOT appeared.
Could someone tell me why?

I did not check what happens having 3 legendary cities and 30+% of land,
or completing the spaceship AFTER having 30+% of land.

Second question: isVictoryTest() in CvGameUtils needs to be re-compiled to work after modifies? Or it works like .xml files?
 
But, I had a problem.. I completed the Space Ship having less than 30% of land, and no "launch" button appeared. Then, when I achieved 30,5% still launch button DID NOT appeared.
Could someone tell me why?

What happens, if you do it in the other order?


Second question: isVictoryTest() in CvGameUtils needs to be re-compiled to work after modifies? Or it works like .xml files?

No, that's just .xml.
And CvGameUtils is Python, a scripting language, which needn't/can't be compiled.
 
Hi J, you always reply to my questions, thanks :)

Do you mean .dll files need to be recompiled, I suppose.

When I'll have time to check what happens, I'll post it.
 
Yesterday I got 3 legendary cities after having 30+% of the world, and victory happened! ;)
 
Top Bottom