A quickie (I hope
)
In my mod, the Palace isn't instabuilt when first city is founded, and can be build later with Masonry.
I wanted to make civs not be able to negotiate peace before a Capital is present AND the civs are able to negotiate Open Borders (not that they HAVE to make Open Borders or be friendly enough to do so, but more of a formalia that the civs are civil enough to actually negotiate a peace process.
I thought about doing a check in CvDiplomacy.py, but need help with Language.
Line 44 :
This is obvious wrong, thats why I need YOUR help
Thanks in advance
Vincentz
Edit : well, this only works for Human players

In my mod, the Palace isn't instabuilt when first city is founded, and can be build later with Masonry.
I wanted to make civs not be able to negotiate peace before a Capital is present AND the civs are able to negotiate Open Borders (not that they HAVE to make Open Borders or be friendly enough to do so, but more of a formalia that the civs are civil enough to actually negotiate a peace process.
I thought about doing a check in CvDiplomacy.py, but need help with Language.
Line 44 :
Code:
# If this is the first time we are being contacted by the AI
elif (self.isComment(eComment, "AI_DIPLOCOMMENT_FIRST_CONTACT") ):
# if you are on different teams and NOT at war, give the user the option to declare war
if (gc.getTeam(gc.getGame().getActiveTeam()).canDeclareWar(gc.getPlayer(self.diploScreen.getWhoTradingWith()).getTeam())):
self.addUserComment("USER_DIPLOCOMMENT_WAR", -1, -1)
# We say hi and begin our peace
if (gc.getTeam(gc.getGame().getActiveTeam()).canOpenBorder(gc.getPlayer(self.diploScreen.getWhoTradingWith()).getTeam()))
AND (gc.getTeam(gc.getGame().getActiveTeam()).haveCapital AND (gc.getPlayer(self.diploScreen.getWhoTradingWith()).getTeam()).haveCapital):
self.addUserComment("USER_DIPLOCOMMENT_PEACE", -1, -1)
self.diploScreen.endTrade()
This is obvious wrong, thats why I need YOUR help

Thanks in advance
Vincentz
Edit : well, this only works for Human players
