These are just vague is there any event python and xml tutorials that are more in depth. It could not be that hard to have one civ declare war on another at a pre-destined point in the game. I just do not know how to write the code. Where do I begin?
I read through and did not see anything about one civ declaring war on another at a given point. Does anyone know the BTS code for 3.19, the basic code for this to occur?
# only works with scenarios with pre-defined civilizations
PLAYER_FRANCE = 4
PLAYER_MEXICO = 2
france = gc.getPlayer(PLAYER_FRANCE)
mexico = gc.getPlayer(PLAYER_MEXICO)
france.getTeam().declareWar(mexico.getTeam())
# only works with scenarios with pre-defined civilizations
PLAYER_FRANCE = 4
PLAYER_MEXICO = 2
france = gc.getPlayer(PLAYER_FRANCE)
mexico = gc.getPlayer(PLAYER_MEXICO)
france.getTeam().declareWar(mexico.getTeam())
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.