I could really use some help learning python. Could someone please answer my python questions here, too? If anyone has their own Python questions to post, go ahead.
First question:
I copieed a trait that I downloaded, did a bit of easy tweaking, and now all I need to do is change what happens when the city is built.
First question:
I copieed a trait that I downloaded, did a bit of easy tweaking, and now all I need to do is change what happens when the city is built.
##Econ Trait Start##
player = PyPlayer(city.getOwner())
pPlayer = gc.getPlayer(city.getOwner())
iTrait = CvUtil.findInfoTypeNum(gc.getTraitInfo,gc.getNumTraitInfos(),'TRAIT_ECONOMICAL')
if (pPlayer.hasTrait(iTrait)):
ACTION HERE
##Econ Trait End##