IT WORKS!!!!!!!!!!!!!!!!!!
wow, I L O V E YOU Bhruic
THX a lot
wow, I L O V E YOU Bhruic
THX a lot
def onBuildingBuilt(self, argsList):
'Building Completed'
pCity, iBuildingType = argsList
game = CyGame()
if iBuildingType == gc.getInfoTypeForString( 'BUILDING_xyz' ):
pPlayer = gc.getPlayer(pCity.plot().getOwner())
gc.getTeam(pPlayer.getTeam()).setHasTech(gc.getInfoTypeForString( 'TECH_zyz' ), true, pPlayer.getID(), false, false)
#gc.getPlayer(pCity.plot().getOwner()).initUnit( 17, pCity.getX(), pCity.getY(), UnitAITypes.NO_UNITAI )
pPlayer.initUnit( 17, pCity.getX(), pCity.getY(), UnitAITypes.NO_UNITAI )
...
def onImprovementBuilt(self, argsList):
'Improvement Built'
iImprovement, iX, iY = argsList
pPlot = CyMap().plot(iX,iY)
if(iImprovement==gc.getInfoTypeForString('IMPROVEMENT_MINE')):
if(pPlot.getTerrainType()==gc.getInfoTypeForString( 'TERRAIN_GRASS' )):
pPlot.setImprovementType(-1)
if(iImprovement==gc.getInfoTypeForString('IMPROVEMENT_LUMBERMILL')):
if(pPlot.getFeatureType()==gc.getInfoTypeForString( 'FEATURE_FOREST' )):
pPlot.setImprovementType(-1)
if(iImprovement==gc.getInfoTypeForString('IMPROVEMENT_FARM')):
if(pPlot.getBonusType()==gc.getInfoTypeForString( 'BONUS_HORSE' )):
pPlot.setImprovementType(-1)
.
.
.
Comment