Heya Platy,
quasion about eden,
i have some questions about you code: (ive changed the names):
this line: "for i in range(21):" = if i write - 50 , does it mean 50 tiles of the city im building it ill have a terraform?
this line: does it mean i can only build it in capital? if i want all cities?
converting the code to building - if i change this "if iProjectType =" to
"if ibuildingType ="
and put the whole code between:
game = gc.getGame()
#code here
if ((not gc.getGame().isNetworkMultiPlayer()) and (pCity.getOwner() == gc.getGame().getActivePlayer()) and isWorldWonderClass(gc.getBuildingInfo(iBuildingType).getBuildingClassType())):
will it work for a regular building?
quasion about eden,
i have some questions about you code: (ive changed the names):
Spoiler :
Code:
# Eden Project Start ##
if iProjectType == gc.getInfoTypeForString("TERRAFORMIG_MACHINE_PROJECT1"):
pPlayer = gc.getPlayer(pCity.getOwner())
iTeam = pPlayer.getTeam()
for iPlayerX in range(gc.getMAX_CIV_PLAYERS()):
pPlayerX = gc.getPlayer(iPlayerX)
if pPlayerX.isAlive() and pPlayerX.getTeam() == iTeam:
capital = pPlayerX.getCapitalCity()
for i in range(21):
pPlot = capital.getCityIndexPlot(i)
if pPlot.getTerrainType() == gc.getInfoTypeForString("TERRAIN_GRASS"):
pPlot.setTerrainType(gc.getInfoTypeForString("TERRAIN_GRASS2"), 1, 1)
elif pPlot.getTerrainType() == gc.getInfoTypeForString("TERRAIN_TUNDRA"):
pPlot.setTerrainType(gc.getInfoTypeForString("TERRAIN_TUNDRA2"), 1, 1)
elif pPlot.getTerrainType() == gc.getInfoTypeForString("TERRAIN_PLAINS"):
pPlot.setTerrainType(gc.getInfoTypeForString("TERRAIN_PLAINS2"), 1, 1)
elif pPlot.getTerrainType() == gc.getInfoTypeForString("TERRAIN_DESERT"):
pPlot.setTerrainType(gc.getInfoTypeForString("TERRAIN_DESERT2"), 1, 1)
elif pPlot.getTerrainType() == gc.getInfoTypeForString("TERRAIN_SNOW"):
pPlot.setTerrainType(gc.getInfoTypeForString("TERRAIN_SNOW2"), 1, 1)
CyInterface().addMessage(iPlayerX,true,15,CyTranslator().getText("TXT_EDEN",(capital.getName(),)),'',0,'',-1,-1,-1, false,false)
## Eden Project End ##
this line: "for i in range(21):" = if i write - 50 , does it mean 50 tiles of the city im building it ill have a terraform?
this line: does it mean i can only build it in capital? if i want all cities?
converting the code to building - if i change this "if iProjectType =" to
"if ibuildingType ="
and put the whole code between:
game = gc.getGame()
#code here
if ((not gc.getGame().isNetworkMultiPlayer()) and (pCity.getOwner() == gc.getGame().getActivePlayer()) and isWorldWonderClass(gc.getBuildingInfo(iBuildingType).getBuildingClassType())):
will it work for a regular building?