Anyone know the instruction to limit buildings (such as harbors) to seaside towns only? And can the principle be extended further to other terrain types?
Announcement
Collapse
No announcement yet.
Harbors for seaside towns only?
Collapse
X
-
Paul,
I think you mean the tileimprovement port.
Take a look into the tileimp.txt there you will find the lines:
CantBuildOn TERRAIN_BROWN_HILL
CantBuildOn TERRAIN_BROWN_MOUNTAIN
CantBuildOn TERRAIN_DEAD
CantBuildOn TERRAIN_DESERT
CantBuildOn TERRAIN_FOREST
CantBuildOn TERRAIN_GLACIER
CantBuildOn TERRAIN_GRASSLAND
CantBuildOn TERRAIN_HILL
CantBuildOn TERRAIN_JUNGLE
CantBuildOn TERRAIN_MOUNTAIN
CantBuildOn TERRAIN_PLAINS
CantBuildOn TERRAIN_SWAMP
CantBuildOn TERRAIN_TUNDRA
CantBuildOn TERRAIN_WATER_DEEP
CantBuildOn TERRAIN_WATER_RIFT
CantBuildOn TERRAIN_WATER_TRENCH
CantBuildOn TERRAIN_WATER_VOLCANO
CantBuildOn TERRAIN_WHITE_HILL
CantBuildOn TERRAIN_WHITE_MOUNTAIN
for the TILEIMP_PORT. I think TERRAIN_WATER_BEACH is not in the list.
-Martin
Civ2 military advisor: "No complaints, Sir!"
-
Or another way in SLIC (if he means an actual building in a city, like harbour-guns):
Using the mod_CanBuildBuilding (or whatever it's called) you could check each neighbor (tile) and see if the terrain is a water or beach terrain. If yes, then the return is true the city can build a harbour.
------------------
Rommell to a sub-commander outside Tobruk: "Those Australians are in there somewhere. But where? Let's advance and wait till they shoot, then shoot back."
Comment
-
Concrete, Abstract, or Squoingy?
"I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis
Comment
-
quote:
Originally posted by PaulWilliams on 04-02-2001 08:55 AM
Duh! The answer was there all the time:
CoastalBuilding
As found in the entry for battlements...
Now, I wonder whether the CTP2 program recognises any other statements like that...
I took a look into the ctp2.exe and there are all the statements also unused ones.
-MartinCiv2 military advisor: "No complaints, Sir!"
Comment
-
quote:
Originally posted by Martin Gühmann on 04-02-2001 02:31 PM
I took a look into the ctp2.exe and there are all the statements also unused ones.
What unused ones are there ? This could save a lot of SLIC work
Concrete, Abstract, or Squoingy?
"I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis
Comment
Comment