View Full Version : Espionage

Apr 08, 2008, 12:17 PM
Hello, I want to make a new class of espionage missions, available to a new unit the diplomat. Where do I find the files that control what kind of espionage missions the game will accept.

Trojan Sheep
Apr 08, 2008, 06:02 PM
XML wise there's an espionage mission info file (don't have the name off hand), that controls which missions are enabled in game and what their cost factor / base effect is. In the SDK these are pretty much exclusively the domain of CvPlayer.cpp for the functionality, CvGameTextMgr.cpp for the display functionality and CvPlayerAI.cpp for the AI capability to use missions.

Doing a search on destroybuilding or a similar pre-existing mission should help you find the relevant code.