civics and diplomacy

Che Guava

The Juicy Revolutionary
Joined
Apr 19, 2005
Messages
5,955
Location
Hali-town,
howdy folks! a quick question: is there any way that i could alter the civics in the game to limit your diplomacy options? Specifically, I was thinking of a cold-war era mod wherin you could choose your int'l alignment via the civics menu (NATO aligned, Warsaw Pact, Non-Aligned, etc), and was hoping that it might be possible to make it so that civs with the NATO option could trade or have open borders with those civs that have opted for the Warsaw alignment.

Any ideas?
 
hiya Che. I am afraid I cannot help you completely-as I am not at my home computer (and, therefore, do not have access to exact files!) However, I believe I MIGHT be able to point you in the right direction. Look up the Python file CvGameUtils.py. In there are a lot of Can and Cannot instructions (like CanDoCivic and CannotDoCivic etc). Do a search of this file using the keywords 'Diplomacy' or 'Open Borders' or 'Alliance' and see if there are specific references to diplomatic actions within the file.
Now, if you find a CannotDoOpenBorders section, then its just a question of adding the cases in which you cannot do Open Borders-be it a civic, or a civ or a tech you have.
Anyway, which I could have been more help.

Aussie_Lurker.
 
Aussie_Lurker said:
hiya Che. I am afraid I cannot help you completely-as I am not at my home computer (and, therefore, do not have access to exact files!) However, I believe I MIGHT be able to point you in the right direction. Look up the Python file CvGameUtils.py. In there are a lot of Can and Cannot instructions (like CanDoCivic and CannotDoCivic etc). Do a search of this file using the keywords 'Diplomacy' or 'Open Borders' or 'Alliance' and see if there are specific references to diplomatic actions within the file.
Now, if you find a CannotDoOpenBorders section, then its just a question of adding the cases in which you cannot do Open Borders-be it a civic, or a civ or a tech you have.
Anyway, which I could have been more help.

Aussie_Lurker.

Thanks Aussie! I will definittely take a look at that once I find out what box my computer is in (dang moving...). And any help is good help :)

gunner said:
I know this isn't what you were asking, but I've heard the idea before of using religions in a Cold War scenario to separate the power blocs. Just an idea ..

Thanks for the thought! What I'm really trying to do here create a few micro-cosms of cold war states following the 'off-screen AIs' similar to what was done in Colonization. So in this case, you would pick a state ideology (e.g. conservatism, socialism, etc; in the place of religion) and a foreign allignment (e.g. nato-alligned, warsaw-alilgned, neutrel) that would be based on your civic choice. Choosing to allign yourself with NATO, for eg, would give you certain benefits but would limit the deals you could make with other players not aligned with them. In that way, there is still a 'NATO presence', without introducing the americans or soviets as actual AI players (since most large empires in civ seem to say to hell with diplomacy and just invade :crazyeye: )
 
OK Che. Had a quick look at that file just now, and there doesn't seem to be much to help you I am afraid :(. The best I can find is this section here:

Code:
def AI_doDiplo(self,argsList):
		ePlayer = argsList[0]
		return False

The problem is that it is an AI function, so probably won't stop human players from doing diplomacy (assuming that this is what the line does at all!)
Anyway, may be worth playing around with but-if you run into problems-I suggest you track down Kael or TGA, as they are the GODS of Python ;).

Aussie_Lurker.
 
Thanks Aussie, I'll have a look at that....

Hmmm...do you think it would be any easier for civics to alter attitude values instead (i.e. make it so that civ's with 'oposing civics' get a big minus in their attitudes towards each other so that they're most likely to cancel any deals anyhow?)
 
Hey Che, that is DEFINITELY a better way to go. Kael has an excellent SDK tutorial that gives a blow-by-blow description of how you can make civic choices severely impact on diplomatic relations. Check that one out, you will NOT be disappointed :).

Aussie_Lurker.
 
Aussie_Lurker said:
Hey Che, that is DEFINITELY a better way to go. Kael has an excellent SDK tutorial that gives a blow-by-blow description of how you can make civic choices severely impact on diplomatic relations. Check that one out, you will NOT be disappointed :).

Aussie_Lurker.

:)

Now that's what I like to hear! I'll check that out as soon as I can....

thanks aussie!
 
Back
Top Bottom