terraform, python ? need code reviewed

micmc

Warlord
Joined
Apr 17, 2004
Messages
179
Location
atlanta ga usa
#Terraform Flat land --- ice > Tundra > Desert > Plains > Grass >
if(iImprovement == gc.getInfoTypeForString('IMPROVEMENT_TERRAFORM')):
CyInterface().addMessage(CyGame().getActivePlayer(),True,25,'TERRAFORM completed!','AS2D_DISCOVERBONUS',1,'Art/Interface/Buttons/general/happy_person.dds',ColorTypes(8),iX,iY,False,False)
nase = pPlot.getTerrainType()
pPlot.setTerrainType(nase-1, 1, 1)
pPlot.setImprovementType(-1)
Retun

If I wanted to grass into coast (or ocean) what I would I do to the above to make this happen? and if I wanted to make a complete loop, like back to ice what would I do?
 
this has been done before. I know its in ViSa mod, probably others. maybe check their code.
 
thank you shiggs, I figured it had, and was in the process of wading through the various mods to see if I could find it to modify what I wanted to do when the mail notification came in. You just saved me a load of time this evening thanks!
 
Back
Top Bottom