Defensive Pact Code

Gooblah

Heh...
Joined
Jun 5, 2007
Messages
4,282
Is the code for Defensive Pacts and Permanent Alliances in the Python files or XML? I've scoured the XML and don't know where to begin in the Python.

Thanks for any help!
 
The code for what exactly ?
 
Sprry, I'll clarify:

How does the game govern how a Defensive Pact work? Where does it define that IF Civ A is attacked by Civ C, AND Civ A and Civ B have a D. Pact, THEN Civ B will declare war on Civ C? (which file)
 
I am quite sure this is in is in the SDK
 
C++, huh? Hmmm. My mother majored in computer sciences and physics in India- apparently was a C++ wiz.

Also, what is the SDK? is it the .dll file?
 
It's the dll. The SDK is the sourcecode - firaxis released it, so people can mod. It's in C++. You can find the sourcefiles in the CvGameCoreDLL folder. But if you change something there, you will need to recompile it, for you chnges to actually be in the game. If you dont know what't this, ask your mom ;)
 
But if you change something [in the sourcecode], you will need to recompile it, for you chnges to actually be in the game. If you dont know what't this, ask your mom ;)

I don't think I would have ever imagined that I would hear "ask your mom" in that context :) .
 
Back
Top Bottom