<Nexus>
Traveler of the Multiverse
I recall there was a modcomp that generated Great General points per turn regardless of combat. Maybe it was a wonder effect? I want to use it as a civic effect. Does anyone know where to look?
I'm 99% sure it was a python wonder effect.i cant recall such a modcomp.
sounds like it should be an sdk thing, not sure if the python is exposed to the GP counters.

if pPlayer.getBuildingClassCount(gc.getInfoTypeForString("BUILDINGCLASS_CYRUS_CYLINDER")) == 1:
Power = pPlayer.getPower() + pTeam.getVassalPower()
pPlayer.changeCombatExperience(min(10, Power/iGameTurn))
if pPlayer.getBuildingClassCount(gc.getInfoTypeForString("CIVIC_WARLORDS")) == 1:
pPlayer.changeCombatExperience(min(pPlayer.getNumCities())
def onBeginPlayerTurn(self, argsList):
'Called at the beginning of a players turn'
iGameTurn, iPlayer = argsList
#2.41 for Nexus
pPlayer = gc.getPlayer(iPlayer)
iTeam = pPlayer.getTeam()
pTeam = gc.getTeam(iTeam)
iCivic = gc.getInfoTypeForString("CIVIC_BARBARISM")
if gc.getPlayer(iPlayer).isCivic(iCivic):
Power = pPlayer.getPower() + pTeam.getVassalPower()
if iGameTurn != 0 :
#pPlayer.changeCombatExperience(min(10, Power/iGameTurn))
pPlayer.changeCombatExperience(6)
Yeah, after shutting down my PC realised that it can't be good.Your Civic is not a building, so 'buildingClass' is not going to be the right choice.
Great thanks. I'll try itSo I did the code for you, and figured "isCivic" is a better function. Not sure what Platyping wanted to do with the current power etc. but you can just put any value (I did with 6 in my test). Of course you'll need to put the Civic you want to use in there, not Barbarism

pPlayer = gc.getPlayer(iPlayer)
iTeam = pPlayer.getTeam()
pTeam = gc.getTeam(iTeam)
iCivic = gc.getInfoTypeForString("CIVIC_WARLORDS")
if gc.getPlayer(iPlayer).isCivic(iCivic):
if iGameTurn != 0 :
pPlayer.changeCombatExperience(pPlayer.getNumCities())

