Thread Tools
Old December 22, 2001, 13:19   #1
waltergr
Settler
 
Local Time: 10:49
Local Date: October 31, 2010
Join Date: Dec 2001
Posts: 2
Looking for a custom mod
Don't think it's out there...at least I haven't seen it. But, here's what I want - maybe somebody could help me find it?

When a city is captured, you have 3 choices:
1. Expand your empire (control city)
2. Bloodbath (level city, decimate population - lowers regard)
3. Move population (level city, but population "immigrates" to your empire.)

Choice #1 is what the game currently does.

Choice #2 would give you gold (in the "sell" value of any buildings), and improvement funds (in the value of any tile improvements). However, it would also lower your regard among other nations.

Choice #3 wouldn't give you any gold/improvement funds - but neither would it affect your regard among the other nations. The city and any tile improvements would disappear. The population would be "absorbed" by your empire. At least the closest city, but preferably spread out among all your cities.

I feel this better represents the real outcome of warfare. You either take over the territory, destroy it and kill the population, or force the population to move to your cities.

Can anybody help me with this?
waltergr is offline  
Old December 22, 2001, 13:38   #2
Pedrunn
Call to Power II Democracy Game
King
 
Pedrunn's Avatar
 
Local Time: 15:49
Local Date: October 31, 2010
Join Date: Jul 2001
Location: of Natal, Brazil
Posts: 2,555
Matin Guhmann already made a Slic wich includes choice 1 and 2. Take a look at his website.
__________________
"Kill a man and you are a murder.
Kill thousands and you are a conquer.
Kill all and you are a God!"
-Jean Rostand
Pedrunn is offline  
Old December 22, 2001, 16:15   #3
Immortal Wombat
Apolytoners Hall of Fame
Prince
 
Immortal Wombat's Avatar
 
Local Time: 19:49
Local Date: October 31, 2010
Join Date: Dec 2000
Location: in perpetuity
Posts: 4,962
Yeah, Martin did most of this: http://apolyton.net/forums/showthrea...&threadid=2742

Here is the code. To get it to work, bung it into a SLIC file such as script.slc or scenario.slc.


Code:
///////////////////////////////////////////////////////////////////////////////////////////
//New City Capture Option for CTP2 (MG_KillCityOption.slc) v. 1.0 by Martin Gühmann      //
///////////////////////////////////////////////////////////////////////////////////////////
//This script file adds now the possiblity for the human player to eleminate a city after//
//capturing. It gives per pop the player 500 gold and 500 PW. But unfortunatly there is  //
//also a regard loss concerning other nations.                                           //
///////////////////////////////////////////////////////////////////////////////////////////
//To install this script just unzip the *zip file into your default CTP2 folder and open //
//the file script.slc in your ..\ctp2_data\default\gamedata\ folder and add to the end of//
//this file the line #include "MG_KillCityOption.slc". Afterwards go to your             //
//..\ctp2_data\english\gamedata\ folder (if your using the German version it is of course//
//the ..\ctp2_data\german\gamedata\ folder) and open there the file string.txt and add   //
//the line import "MG_KillCityOption.txt". If you want to you use these files with one of//
//the mods you have to look for files with the according prefix like MM2_ for MedPack2 or//
//CRA_ for Cradle or APOL_ for Apolyton Pack or APOLU_ for the extra large Apolyton Pack //
//map version.                                                                           //
///////////////////////////////////////////////////////////////////////////////////////////

city_t DestroyCity;

HandleEvent(CaptureCity) 'MG_KillCityOption' post {
	if (city[0].population>1) {
		if(IsHumanPlayer(g.player)){
			if(CityIsValid(city[0])) {
				message(g.player, 'DestroyCityMSG');
			}
		}
	}
}

AlertBox 'DestroyCityMSG' {
int_t i;
int_t MGPw;
Title(ID_DESTROY_CITY_TITLE);
Text(ID_DESTROY_CITY);
//MessageType("MILITARY");
DestroyCity = city[0];
Show();
	Button(ID_EXTEND_EMPIRE) {
		Kill();  
	}
	Button(ID_BLOODBATH) {
		if(CityIsValid(city[0])) {
			AddGold(player[0], (city[0].population*500));
			MGPw = player[0].publicworkslevel;
			MGPw = MGPw + (city[0].population*500);
			setPW(player[0], MGPw);
			ChangeGlobalRegard(player[0], -50, ID_BLOODBATH, 50);
			for (i=city[0].population; i>=0; i=i-1){
				if(CityIsValid(city[0])) {
					Event: KillPop(city[0]);
				}
			}
			Kill(); 
		}
	}  
                 //***
}
To insert the third option, then at the point where I marked //***, replace it with:
Code:
Button(ID_EVACUATE) {
	int_t j;
	city_T	tmpCity;
	if(CityIsValid(city[0])){
		for (i=city[0].population; i>=0; i=i-1){
			if(CityIsValid(city[0])) {
				Event: KillPop(city[0]);
				j = random(PlayerCityCount(g.player));
				GetCityByIndex(g.player, j, tmpCity);
				AddPops(tmpCity, 1);
			}
		}
	}
	Kill();
}
Then open scen_str.txt and add the following lines:

DESTROY_CITY_TITLE "Capture or destroy city?"
DESTROY_CITY "{player[0].leader_name#SIR_CAP}, we conquered the city {city[0].name}. Thousands of citizens await your decision with fear: Either you annex the city {city[0].name} into the empire or you pillage it, sack it and cause a bloodbath under the civil population. But note a bloodbath will lower our regard. Alternatively you can move the citizens to our existing cities, and raze the city to the ground."
EXTEND_EMPIRE "Extend Empire"
BLOODBATH "Bloodbath"
EVACUATE "Disband"


The third option now distributes the population of that city randomly over your empire.
Immortal Wombat is offline  
Old December 22, 2001, 17:01   #4
Martin Gühmann
staff
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Super Moderator
 
Martin Gühmann's Avatar
 
Local Time: 20:49
Local Date: October 31, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
something to add for my GoodMod. I should reincrease the regard cost by the way. I hope I can finish the AI files before Chrismas. Still some goals are left to add them to goals.txt and strategies.txt. But that is not very much. To add player1's modifications to my strategies.txt needed a little bit longer but that is done. I only need to add some goals that covers some forgotten orders.

-Martin
__________________
Civ2 military advisor: "No complaints, Sir!"
Martin Gühmann is offline  
Old December 23, 2001, 09:45   #5
waltergr
Settler
 
Local Time: 10:49
Local Date: October 31, 2010
Join Date: Dec 2001
Posts: 2
Thanks all
Special thanks to Martin for the good work!

I guess I'm gonna havta check out this forum more often.

Have a happy holiday.
waltergr is offline  
Old December 23, 2001, 13:25   #6
player1
Emperor
 
player1's Avatar
 
Local Time: 20:49
Local Date: October 31, 2010
Join Date: Sep 2001
Location: Belgrade, Serbia
Posts: 3,218
Quote:
Originally posted by Martin Gühmann
something to add for my GoodMod. I should reincrease the regard cost by the way. I hope I can finish the AI files before Chrismas. Still some goals are left to add them to goals.txt and strategies.txt. But that is not very much. To add player1's modifications to my strategies.txt needed a little bit longer but that is done. I only need to add some goals that covers some forgotten orders.

-Martin
If you have any problems with AI I made just ask me by PM.
Then post a thread in CTP2/mod and I will explain.

You can ask me about some of "strategic" decisions for various AI flags also.
player1 is offline  
Old December 24, 2001, 13:20   #7
Martin Gühmann
staff
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Super Moderator
 
Martin Gühmann's Avatar
 
Local Time: 20:49
Local Date: October 31, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
I found a small bug in your code Ben:

Code:
 j = random(PlayerCityCount(g.player));
The effect of this one is that the just conquered city is not killed, but this one will do the job as we have to exclude the last city from player city count:

Code:
 j = random(PlayerCityCount(g.player)-1);
By the way GoodMod v0.98 is know in the playtest phase I guess I can post it soon.

-Martin
__________________
Civ2 military advisor: "No complaints, Sir!"
Martin Gühmann is offline  
Old December 24, 2001, 15:39   #8
Martin Gühmann
staff
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Super Moderator
 
Martin Gühmann's Avatar
 
Local Time: 20:49
Local Date: October 31, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
OK the New City Kill Option for CTP2 version 1.3 is now available on my homepage. But anyway I would play the whole GoodMod.

Merry Christmas

-Martin.
__________________
Civ2 military advisor: "No complaints, Sir!"

Last edited by Martin Gühmann; December 24, 2001 at 16:34.
Martin Gühmann is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 14:49.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team