1. We have added the ability to collapse/expand forum categories and widgets on forum home.
    Dismiss Notice
  2. All Civ avatars are brought back and available for selection in the Avatar Gallery! There are 945 avatars total.
    Dismiss Notice
  3. To make the site more secure, we have installed SSL certificates and enabled HTTPS for both the main site and forums.
    Dismiss Notice
  4. Civ6 is released! Order now! (Amazon US | Amazon UK | Amazon CA | Amazon DE | Amazon FR)
    Dismiss Notice
  5. Dismiss Notice
  6. Forum account upgrades are available for ad-free browsing.
    Dismiss Notice

Espionage

Discussion in 'Civ4 - SDK/Python' started by seasnake, Apr 8, 2008.

  1. seasnake

    seasnake Conquistador

    Joined:
    Apr 21, 2006
    Messages:
    1,778
    Location:
    California, United States
    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.
     
  2. Trojan Sheep

    Trojan Sheep Chu Bosu

    Joined:
    Nov 18, 2005
    Messages:
    173
    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.
     

Share This Page