Replacing "Water" with specific terrain

jbfballrb

Warlord
Joined
Oct 24, 2003
Messages
203
Location
Richmond, VA
is there any sort of way to replace the amount of "water" terrain types in a map script with more specific types, such as rather than 75% water and 25% land, it might be 25% grass, plains, desert, etc. and 75% coast tiles, or all ocean tiles, or a mixture of several types?
 
jbfballrb said:
is there any sort of way to replace the amount of "water" terrain types in a map script with more specific types, such as rather than 75% water and 25% land, it might be 25% grass, plains, desert, etc. and 75% coast tiles, or all ocean tiles, or a mixture of several types?

Water is self defining. A lake is any water fully enclosed by land and smaller than some certain size. Coast is within 1 tile of land. Ocean is 2 tiles away. A map script just declares that a tile is water, the game figures out which type of water it is.

As to grass/plains/dessert, that's defined as the 'terrain' applied to land or hill tiles, and is fully controlled by the map script, so you can easily set relative percentages for those possibilities.
 
jbfballrb said:
in a clearer form, if ive removed the water tag from ocean and coast, basically making every terrain land, is there some way to have the map script still place these where they should be?

Most map scripts are likely to have trouble with this. If oceans and lakes don't pass the isWater() test, you're going to get some odd behaviors. I tried this out quickly with my smartmap script and it causes an endless loop somewhere. (probably searching for continental boundaries).
 
surt said:
Water is self defining. A lake is any water fully enclosed by land and smaller than some certain size. Coast is within 1 tile of land. Ocean is 2 tiles away. A map script just declares that a tile is water, the game figures out which type of water it is.

No, that's not true. Coast is definitely a distinct terrain type.
Lakes are automatically tagged as such, so. The maximum size of a lake is 10, I believe (so on a very big world map, the great lakes will inexplicably turn into seas)
 
Most map scripts are likely to have trouble with this. If oceans and lakes don't pass the isWater() test, you're going to get some odd behaviors. I tried this out quickly with my smartmap script and it causes an endless loop somewhere. (probably searching for continental boundaries).

i tried it with pangaea, and got rivers but no water. is there a way to replace the isWater() test with something like a isCoast/Ocean() test?
 
Back
Top Bottom