civfan11596
Chieftain
- Joined
- Feb 1, 2011
- Messages
- 28
My goal was to be able to script when a civ would declare war on another civ fro my scenario mod I'm making. After looking through the API and some other mods for some guidance, I made this:
However, this isn't working. I've tried some other things but no luck there either. Any suggestions?
Code:
## Sid Meier's Civilization 4
## Copyright Firaxis Games 2005
from CvPythonExtensions import *
gc = CyGlobalContext()
def GRMNdowUSSR():
gc.getTeam(1).declareWar(0, false, WarPlanTypes.WARPLAN_TOTAL)
However, this isn't working. I've tried some other things but no luck there either. Any suggestions?