Help with United Nations voting mechanic?

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.
 
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()
 
Back
Top Bottom