Terrorism Mod

Macmatt

Modder
Joined
Aug 29, 2006
Messages
204
Location
GREAT BRITAIN
I have been working on a terrorism mod following a tutorial on this site but unfortunately it didn't include how to write AI code, and since I have no idea about c++ I was wondering if anyone wanted to finish it off?

I have done all xml work and a lot of the SDK work, however I would like it to cause unhappiness in the victim's city.

Thanks to anyone who volunteers. :)
 
Thanks PeteT, here are the files:

I tried to upload the XML and art, but it exceeded forum limits.
 

Attachments

Here's a progress report. See screenshot.

I would like it to cause unhappiness in the victim's city.

Code:
if (!bCaught)
{
	//make the city unhappy
	pCity->changeTerrorUnhappiness(1);
	pCity->changeTerrorUnhappinessTimer(3);

I've implemented it so that you can set the amount and duration of the unhappiness.

What are your thoughts on:

1) When should an AI civ launch a terrorist attack on another civ. (Like, when they're more than annoyed with the possible target civ.)

2) Which cities should be targetted (richest, most productive)?
 

Attachments

  • Screenshot.jpg
    Screenshot.jpg
    195.6 KB · Views: 113
Thanks for doing this, it looks great so far.:goodjob:

1)I think they should attack when they are at any relation, but that they should attack those who have different state religions/free religion, because if the terrorist succeeds then nobody knows who did it.

2)I think targeted cities should be perhaps Holy Cities, cities with a lot of followers of various religions or largest cities.
 
Back
Top Bottom