victory conditions

Ikaros82

Chieftain
Joined
Apr 6, 2009
Messages
40
Hi all.
I'm not sure if this is the right place to post a request for help.
If I'm wrong, please excuse me (and excuse my english too).

I use to play [CIV][BTS][Thomas'War], which I've modified a little, but I think my request can apply to every CIV version. I made this clarification just in case you see something different in my examples.

I'm looking for customizing the victory condition, but something is unclear to me. I want to add new victory conditions that are a sum of pre-existent conditions. Let me post 3 examples.

1) you have to win both cultural and domination, i.e. you have to hold X legendary city AND rule a certain percentage of the map.

2) you have to win both space race and cultural, i.e. you have to hold X legendary city AND successfully launch the space ship.

3) you have to win both space race and domination, i.e. you have to rule a certain percentage of the map AND successfully launch the space ship.

I try adding some piece of code to \XML\GameInfo\CIV4VictoryInfo.xml, but it seems this it not sufficient.

example:
Code:
<VictoryInfo>
	<Type>VICTORY_CULTURAL_DOMINATION</Type>
	<Description>Cultural Domination</Description>
	<Civilopedia>Cultural Domination</Civilopedia>
	<bTargetScore>0</bTargetScore>
	<bEndScore>0</bEndScore>
	<bConquest>0</bConquest>
	<bDiploVote>0</bDiploVote>
	<bPermanent>0</bPermanent>
	<iPopulationPercentLead>0</iPopulationPercentLead>
	<iLandPercent>50</iLandPercent>
	<iMinLandPercent>40</iMinLandPercent>
	<iReligionPercent>0</iReligionPercent>
	<CityCulture>CULTURELEVEL_LEGENDARY</CityCulture>
	<iNumCultureCities>4</iNumCultureCities>
	<iTotalCultureRatio>0</iTotalCultureRatio>
	<iVictoryDelayTurns>0</iVictoryDelayTurns>
	<VictoryMovie>ART_DEF_MOVIE_VICTORY_CULTURAL</VictoryMovie>
</VictoryInfo>

This should realize my 1) point, right?
Or do I have to define <Type>VICTORY_CULTURAL_DOMINATION</Type> in some other files?

Then, how can I tell that Spaceship is necessary to more than one victory condition? Can I put "<Type>VICTORY_SPACE_RACE</Type>" in more than one single <VictoryInfo> block?

And how <iVictoryDelayTurns>0</iVictoryDelayTurns> affects non-spacerace victories?
I tried adding this block:

Code:
<VictoryInfo>
	<Type>VICTORY_NEW_DOMINATION</Type>
	<Description>New Domination</Description>
	<Civilopedia>New Domination</Civilopedia>
	<bTargetScore>0</bTargetScore>
	<bEndScore>0</bEndScore>
	<bConquest>0</bConquest>
	<bDiploVote>0</bDiploVote>
	<bPermanent>0</bPermanent>
	<iPopulationPercentLead>0</iPopulationPercentLead>
	<iLandPercent>25</iLandPercent>
	<iMinLandPercent>25</iMinLandPercent>
	<iReligionPercent>0</iReligionPercent>
	<CityCulture>NONE</CityCulture>
	<iNumCultureCities>0</iNumCultureCities>
	<iTotalCultureRatio>0</iTotalCultureRatio>
	<iVictoryDelayTurns>20</iVictoryDelayTurns>
	<VictoryMovie>ART_DEF_MOVIE_VICTORY_DOMINATION</VictoryMovie>
</VictoryInfo>

In custom game options, I correctly see both new victory conditions. Also in-game, I can see both victories situation. The strange thing is this:
On line regarding New Domination I can read "hold 25% of the map" (or something like that), and my percentage. But when my percentage exceeds 25%, no victory happen. Also, percentage of best rival is frozen at 15%.

What should I do? I think there is some (mybe python) file to edit?
Thanks!
Ikaros
 
Hi all.
I'm not sure if this is the right place to post a request for help.

No, it's not, the main forum is for questions.

But welcome to CFC :).

This should realize my 1) point, right?
Or do I have to define <Type>VICTORY_CULTURAL_DOMINATION</Type> in some other files?

No, it's the only file which has to be modified for that.


Then, how can I tell that Spaceship is necessary to more than one victory condition? Can I put "<Type>VICTORY_SPACE_RACE</Type>" in more than one single <VictoryInfo> block?

And how <iVictoryDelayTurns>0</iVictoryDelayTurns> affects non-spacerace victories?

I think, the second is the first, but not sure.
You should try it out, if iVictoryDelayTurns is the space ship victory, try to build the space ship after you fullfil the other victory conditions.
 
Top Bottom