1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Help with United Nations voting mechanic?

Discussion in 'Civ4 - Creation & Customization' started by MooManof_, Aug 23, 2008.

  1. MooManof_

    MooManof_ Official Guru of Weird

    Joined:
    May 7, 2006
    Messages:
    104
    Location:
    Here
    Can anyone help me find the files that control the UN voting mechanism?

    I'm trying to build a mod that includes a vote every 100 turns, and want to know where I need to put my edits.

    I'm not worried if it's XML, Python, or SDK. I can handle the lot, I just need to know where to start.
     
  2. Dresden

    Dresden Emperor

    Joined:
    Jul 10, 2008
    Messages:
    1,081
    Here are some starting points related to voting:

    XML files GameInfo/CIV4VoteInfo.xml and GameInfo CIV4VoteSourceInfos.xml.
    SDK function determining how AIs vote: CvPlayerAI::AI_diploVote()
    SDK function that counts the votes: CvGame::doVoteResults()
     

Share This Page