View Full Version : "Score" Victory condition - maybe?


low
Dec 19, 2005, 02:37 PM
After adding the Religious victory condition I've been rooting through the "CIV4VictoryInfo.xml" file and discovered the possiblity of a Score victory. From what I gather, this would not be the same as a Time victory. A Score victory could determine the winner who has the highest score once that certain score was reached?

<VictoryInfo>
<Type>VICTORY_SCORE</Type>
<Description>TXT_KEY_VICTORY_SCORE</Description>
<Civilopedia>TXT_KEY_VICTORY_SCORE_PEDIA</Civilopedia>
<bTargetScore>1</bTargetScore>
<bEndScore>0</bEndScore>
<bConquest>0</bConquest>
<bDiploVote>0</bDiploVote>
<bPermanent>1</bPermanent>
<iPopulationPercentLead>0</iPopulationPercentLead>
<iLandPercent>0</iLandPercent>
<iMinLandPercent>0</iMinLandPercent>
<iReligionPercent>0</iReligionPercent>
<CityCulture>NONE</CityCulture>
<iNumCultureCities>0</iNumCultureCities>
<iTotalCultureRatio>0</iTotalCultureRatio>
<VictoryMovie></VictoryMovie>
</VictoryInfo>

I found that by disabling "<bPermanent>1</bPermanent>" it enables this "new" victory condition on the setup screen:

http://webpages.charter.net/sgoessel/victoryconditions.jpg

My question is, since the bTargetScore tag in the file is boolean and can only be on or off, how (or where) do we add an actual target score that the player or AI would have to reach before a winner is determined?

I realize this isn't that exciting, but it's just another (possible) victory option if we wanted it. :)

low
Dec 20, 2005, 09:40 AM
Funny, I opened up the Worldbuilder save trying to help someone else with a problem and then I stumbled upon this:

BeginGame
Era=ERA_ANCIENT
Speed=GAMESPEED_EPIC
Calendar=CALENDAR_DEFAULT
Option=GAMEOPTION_NO_TECH_TRADING
Victory=VICTORY_SCORE
Victory=VICTORY_TIME
Victory=VICTORY_CONQUEST
Victory=VICTORY_DOMINATION
Victory=VICTORY_CULTURAL
Victory=VICTORY_SPACE_RACE
Victory=VICTORY_DIPLOMATIC
Victory=VICTORY_RELIGIOUS
GameTurn=0
MaxTurns=1290
MaxCityElimination=0
TargetScore=0
StartYear=-5000
Description=
ModPath=
EndGame

"TargetScore=0" is what I'm interested in here. I haven't yet tested anything, but assuming that if I throw a number in there (say, 5000), then the game will end once a civ reaches 5,000 points... which is what I would want to happen in this case. If so, that's real nice and all, but now the question is how would I add/edit this in the "CIV4VictoryInfo.xml" file, so we wouldn't have to edit the WB save file every time we start a game to actually enable this victory condition? Or perhaps there's another file lurking about that holds the solution to this problem? I suppose I'll start looking...

Any thoughts?