Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site forums as they ran on Ultimate Bulletin Board, 1998–2001. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 2005 site & forums

  Apolyton Civilization Site Forums
  CtP2-Creation
  City revolts

Post New Topic  Post A ReplyPost A Reply In A New Window

profile | register | preferences | faq | search next newest topic | next oldest topic bottom of page
Author
Topic:   City revolts Format for Better Printing
Hone Heke
Settler
New Zealand
Jan 2001
posted January 25, 2001 22:26   Click Here to See the Profile for Hone Heke   send a private message to Hone Heke
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Firstly, hello to you all - I stumbled across the site recently and am highly impressed with what you are doing with the mods and scenarios. The game has potential, but it seems Activision thought that was sufficient - how unusual.

I've spent a bit of time poking about in the text files and looking at the SLIC coding etc... I had a couple of ideas I was thinking about I wanted to run past you all for your opinions and, maybe, some guidance...

Concept:
As in history, it is not solely civilian contentment that effects political and civil upheaval in a nation as is modelled in all the Civ games it seems. Rather it is an important factor along with others, including: nationalism/culture/religion, greed, power struggles, social upheaval and so on.

Implementation:
I would like to introduce code that tests each city at the end of each round for a chance to revolt. The result of a revolt would be as per the present game rules - ie a new civilisation is established. Now, I was thinking about quite what would effect this chance to revolt, and came up with the following indicative numbers:

Base chance of revolt: 0.5%

Modifiers....

per square removed from capital: +0.01%
State is in anarchy (ie between governments): +0.1%
Democracy: -0.2%
Virtual democracy: -0.3%
Conquered city (representing discontented occupied population): +0.5% maybe reducing over time (if it can be done)
Happiness modifier: yet to work this out...something like (100%-happiness%)/10 or some such - whatever works really.

Result of successful revolt

1. Create new civilisation! (or barbarians if civs are maxed out)
2. Create a garrison for the new civ (which the game does not presently do which is STUPID if you ask me!)
3. If the city had been conquered, then set it to liberated to reflect its return to self rule, then, check if the original civ was wiped out, if so rebirth it, if it still exists, say 50/50 chance it joins the old civ, or strikes out on its own.
4. If the city was unconquered, set it to conquered.

Of course, this means establishing an array to record the status of some variables for each city in the game, namely: which civ settled the city, whether the city is conquered or not -off/on, if possible turn # city was conquered.

What do I want to achieve with this? Presently there are no revolts. Yet history is full of examples of successful and unsuccessful revolutions and rebellions. Hopefully this mechanism would also model some of the difficulty of managing a large empire as fractious locals, and ambitious governors try to break away. I hope it would also increase the chance of a revolt/civil war during the anarchy period between governments - most periods of significant political change in history have been accompanied by some dreadful fratricide.

Now I hope that this hasn't been discussed before, I've searched extensively and only found some changes to revolt settings, so I hope I'm not going over old ground.

Questions:

Is this concept possible to implement within the mod framework of CTPII?
Is the city array I've described possible (or better, does it exist already!)? And does an array like this get stored in the save game file as it would have to exist through the whole game.
Any suggested revolt modifiers...chances thereof etc etc
And please add anything else.

I look forward to your comments
Cheers

Darkknight
ACS CtP2 Modification Editor
Ireland
Nov 2000
posted January 26, 2001 22:36   Click Here to See the Profile for DarkknightClick Here to Email Darkknight  send a private message to DarkknightSend a Message to UIN: 96951342 Visit Darkknight's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
im not exactly a Slic person but you could ask Skorpion59 or WesW for help. From what i've seen most of it should be posible.

------------------
" mind over body "

Locutus
Prince
Apolyton Borg Hengelo/Enschede, The Netherlands
Nov 1999
posted January 30, 2001 06:19   Click Here to See the Profile for LocutusClick Here to Email Locutus  send a private message to LocutusSend a Message to UIN: 52912776 Visit Locutus's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Sure, most of that is possible. Here's a framework on how it might look in SLIC:
(usual disclaimer: untested, probably has some bugs)

code:

HandleEvent(EndTurn) 'RevoltsFrame' pre {
city_t tmpCity;
cit_t capitolCity;
int_t i;
int_t chance;

for (i = 0; i < player[0].cities; i = i + 1) { // cycle through all cities
GetCityByIndex(player[0], i, tmpCity); // put city in tmpCity
chance = 50; // default value
// capitol distance modifier
capitolCity = player[0].capital;
chance = chance + Distance(capitolCity.location, tmpCity.location);
// hapiness modifier
chance = chance + ((100 - tmpCity.happiness) / 10);
// government modifiers
// don't know how to check for current government, could be impossible to do
// conquered city modifier
// use array, ala militia code from MedMod
if (Random(10000) < chance) { // chance of revolt is 'chance' : 10,000, or (chance/100)%
// FE chance is 200 -> 200 : 10,000 chance, or 200/100 = 2%
Event:AddHappyTimer(tmpCity, 1, -50, 0);
// adds -50 happiness for 1 turn, should make any city revolt
}
}
}


Apolyton Civilization Site Forums
> > > CtP2-Creation Forum

next newest topic | next oldest topictop of page

All times are EDT

Administrative Options: Close Topic | Archive/Move | Delete Topic | Top
Post New Topic  Post A ReplyPost A Reply In A New Window
Hop to:

Contact Us
Apolyton Civilization Site

Powered by: Ultimate Bulletin Board, Version 5.44a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.

Front Page | Civilization III | Dinosaurs | Civilization II | Call to Power | Call to Power II | Alpha Centauri | Alternative Civs | Misc | Links | About ACS | GameStats
GameLeague | Scenario League | HAC | Civilization Scenario Collection | Spanish CivII Site | Clash of Civs | CtP Maps | Art of War | WesW's Ctp1/2 Site