Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Miscellaneous > Archive > CtP2-Creation/AI/Mods/Scenarios-Archive > Victory through capital city capture possible?
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Darrell999 is offline Darrell999
Settler

Mar 2003
time: 05:29
  Old Post 20-07-2003 04:46
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Victory through capital city capture possible? Support Apolyton, buy Civilization 2

Does anyone know if it's possible to mod victory conditions where win conditions are based on the capture of certain capital cities, or if cities can be assigned victory points? Or does anyone know of any user-made scenarios that already has this? Thanks.

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:29
  Old Post 20-07-2003 05:02 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Tired of ads?

Odd, I very nearly replied to your Civ3 thread. Cities are assigned victory points in the Alexander the Great scenario as included in the game. The capture of "Mount Doom" in Hexagonian's Lord of the Rings scenario gives a substantial advantage to the human player, but victory is possible to assign by capital city capture.

If you only have one capital city to capture, the code is easy:

code:
HandleEvent(CaptureCity) 'victory_conditions' pre{ if(CityHasBuilding(city[0], "IMPROVE_CAPITAL") && !IsHumanPlayer(city[0].owner)){ GameOver(1,1); // player one wins; } }

If you have more than one AI, you'll need an array (probably) to keep track of which have been taken, but yes, it is certainly possible.

Darrell999 is offline Darrell999
Settler

Mar 2003
time: 05:29
  Old Post 20-07-2003 06:17
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Increase Your PM Length

Thanks, Immortal Wombat!
I'm a complete newbie for CTP2 scenario design, but I would very much like to see some scenarios where there is "sudden death" victory conditions where each country gets a capital to defend. If there is none around, I suppose I'll try to see if I can create one. Do you know if there are any other user-created scenarios that have this? Also, if you happen to find out how to assign cumulating victory points for cities, that would be fantastic. Thanks again!

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:29
  Old Post 21-07-2003 00:54 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Remove this text

quote:
Originally posted by Darrell999
Do you know if there are any other user-created scenarios that have this?

I don't think so. Almost all the SLIC that has been done has been done for mods, not scenario events. Which is a shame in some ways, but it means we still have plenty to try.

quote:
Also, if you happen to find out how to assign cumulating victory points for cities, that would be fantastic. Thanks again!


code:
int_t VICTORY_POINTS[]; HandleEvent(CaptureCity) 'count_victory_points' post{ VICTORY_POINTS[city[0].owner] = VICTORY_POINTS[city[0].owner] + city[0].population; if(VICTORY_POINTS[city[0].owner] > 150){ GameOver(city[0].owner,1); } }


Roughly speaking, something like this should work. Each city that's captured gives the captor points equal to the city's population. The first player to exceed 150 points wins. It'll need some initiation code and so forth, but that's about it.

Matthew Hayden is offline Matthew Hayden
Chieftain
Great Britain
Aug 2000
time: 05:29
  Old Post 02-08-2003 04:15
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Browse Apolyton AD-FREE

Hmmm - there are a few historical scenarios which could be made to use that capital capture condition.

I have the war between Germany and the Soviet Union firmly in mind here - if Germans capture Moscow, German victory, if Russians capture Berlin, Russian victory, and so on and so forth.

But since I am no programmer and certainly no graphics whizz, I can't realise this idea myself

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:29
  Old Post 02-08-2003 16:14
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton buy from Amazon

If there is more than one AI. Isnt what Darrell999 is looking is a code that give all the cities of the player who lost the capital to its conquerer?

If it is here is the code

code:
HandleEvent(CaptureCity) 'PedrunnsVictoryConditions' pre{ int_t c; int_t tmpPlayer; int_t CityCount; city_t tmpCity; if(CityHasBuilding(city[0], "IMPROVE_CAPITAL") // && !IsHumanPlayer(city[0].owner) ){ tmpPlayer = city[0].owner; CityCount = PlayerCityCount(tmpPlayer); for (c = 0; CityCount; c = c + 1) { GetCityByIndex(tmpPlayer, c, tmpCity); if(CityIsValid(tmpCity)) { Event: GiveCity(tmpCity, player[0]); } } } }


NOTE: I revised many times but i did not tested so dont be surprised if you see syntax errors.

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:29
  Old Post 02-08-2003 22:50 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton buy from Amazon

Of course, with this code the player can sell his own capital building if he sees that he is about to lose, and thus avoid the effects. There's also revolting capitals to consider.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:29.
Apolyton Time is 00:29.
    top of page
Rate This Thread:
archivepost
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0309 seconds (85.88% PHP - 14.12% MySQL) with 31 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net