EDIT: Solution in post 11 below
Hi, I am interested in modding the UN and AP voting system, so that you can't be elected to secretary general twice consecutively. In some games it seems like the same civ is elected continuously, so I am looking to avoid this and make the secretary general election a bit more variable.
Of course as it stands the two candidates are the civ who built the thing, and the distinct civ that holds the most votes. The idea is that if one of these wins the election then they cannot win the next time, so for each election candidates would have to be chosen with a memory of who the incumbent is, so they can be excluded. Of course, this would remove the idea of the builder of the UN being immediately and forever eligible for election, but then again that's the whole point.
I ran a search to see if anyone had made a thread about anything similar to this, but all I could find was this thread, about increasing the number of candidates in an election. This is something I want to do as well; since the builder of the UN/AP wouldn't have guaranteed eligibility anymore, I think it would make sense to consider several, possibly all civs for election to secretary general (in the case of the AP, it would presumably have to be all civs provided they have the correct state religion).
However in that short thread the only suggestion to increase the number of election candidates is to change the TEAM_VOTE_MIN_CANDIDATES to some larger number, such as 6. I haven't tried this but based on the variable name, wouldn't that stop elections from even happening if there weren't at least 6 civs remaining?
If anyone is familiar with how civs becoming eligible for election is coded, I would very much appreciate any pointers regarding these ideas.
Thanks
Hi, I am interested in modding the UN and AP voting system, so that you can't be elected to secretary general twice consecutively. In some games it seems like the same civ is elected continuously, so I am looking to avoid this and make the secretary general election a bit more variable.
Of course as it stands the two candidates are the civ who built the thing, and the distinct civ that holds the most votes. The idea is that if one of these wins the election then they cannot win the next time, so for each election candidates would have to be chosen with a memory of who the incumbent is, so they can be excluded. Of course, this would remove the idea of the builder of the UN being immediately and forever eligible for election, but then again that's the whole point.
I ran a search to see if anyone had made a thread about anything similar to this, but all I could find was this thread, about increasing the number of candidates in an election. This is something I want to do as well; since the builder of the UN/AP wouldn't have guaranteed eligibility anymore, I think it would make sense to consider several, possibly all civs for election to secretary general (in the case of the AP, it would presumably have to be all civs provided they have the correct state religion).
However in that short thread the only suggestion to increase the number of election candidates is to change the TEAM_VOTE_MIN_CANDIDATES to some larger number, such as 6. I haven't tried this but based on the variable name, wouldn't that stop elections from even happening if there weren't at least 6 civs remaining?
If anyone is familiar with how civs becoming eligible for election is coded, I would very much appreciate any pointers regarding these ideas.
Thanks