Control rivers in a map script?

Pantastic

King
Joined
Mar 15, 2006
Messages
922
I'd like to make a version of the 'lakes' map that has tons of rivers, more like the center of the great plains map. I've been poking around in the CvMapGeneratorUtility plus the Great Plains and Lake scripts, but I'm not really sure how to control rivers. I don't see anything in the main map generator that looks like control for rivers, and in Great Plains there's a funky script to make a Mississipi style river (flowing south to end in water) but I don't see how to make more rivers overall.

What do I need to poke around with to make a lot more rivers be created? Is CvMapGeneratorUtility not really the 'main' script I should be looking at?
 
Hi !

I've made a version of lakes where you can add river here:
http://forums.civfanatics.com/showthread.php?t=151629

otherwise, you can add a river while making :

CyMapGenerator().doRiver(pPlot,riverdirection)

where pPlot is the starting plot , and river direction is in :
[CardinalDirectionTypes.CARDINALDIRECTION_NORTH
,CardinalDirectionTypes.CARDINALDIRECTION_EAST
,CardinalDirectionTypes.CARDINALDIRECTION_SOUTH
,CardinalDirectionTypes.CARDINALDIRECTION_WEST]
the river begin at the south_east of the plot with the direction .

You can also create rivers by defining each segment of river while making :

pPlot.setWOfRiver(true, riverdirection) ...(north or south for direction and the segment is on the east of the tile)
pPlot.setNOfRiver(true, riverdirection) ...(west or east for direction and the segment is on the south of the tile)


Tcho!
 
Thanks, that gives me the river festival I wanted. Though it's kind of distracting playing with the other options, resources set to the madness is funny.
 
Back
Top Bottom