Ditto, and my sentiments exactly!pholtz said:Thanks for this great tutorial, found it when you responded to another message of mine.
There we go.The Great Apple said:This should enable in-game python popups, and cause all errors and messages to be printed in your My Documents/My Games/Civilization 4/Logs directory.
iX = pUnit.getX()
iY = pUnit.getY()
map=CyMap()
for iXLoop in range(iX - 1, iX + 2, 1):
for iYLoop in range(iY - 1, iY + 2, 1):
thisplot=map.plot(iXLoop,iYLoop)
terrain = thisplot.getTerrainType ()
feature = thisplot.getFeatureType ()
if attacker.hasTrait(1): #Trait Agressive
attacker.changeGold(2)