that error means you put the wrong things in your brackets
heres an example of how declare war function is supposed to be used in bold, and the setup is the stuff before it:
thats the event that makes a barbarian traited leader like sheelba have the real barbarians declare war on them when they become too civilized (you can find it by doing a search for declarewar in the CvEventManager), hope that helps heh
It worked! I love you! He declared war on everyone! Even himself! Then it spinlocked.
This is the code I have now, which works fine:
Code:
for iPlayer2 in range(gc.getMAX_PLAYERS()):
pPlayer2 = gc.getPlayer(iPlayer2)
if pPlayer2.getCivilizationType() == gc.getInfoTypeForString('CIVILIZATION_HALFMORN'):
return False
eHalfmornTeam.declareWar(iPlayer2, false, WarPlanTypes.WARPLAN_TOTAL)