Adding a "Start in Old World" option to map script

martix

Chieftain
Joined
Mar 14, 2010
Messages
49
Hey guys. A bit new to python, but I'm sure you can help.

I wanted to add an option to start in the old world only to an earth like map, that didn't have it.

I looked through the "Terra" script which I know has it. Pretty sure this is it:
Spoiler :
Code:
def findStartingPlot(argsList):
	[playerID] = argsList

	def isValid(playerID, x, y):
		map = CyMap()
		pPlot = map.plot(x, y)
		
		if (pPlot.getArea() != map.findBiggestArea(False).getID()):
			return False

		return True
	
	return CvMapGeneratorUtil.findStartingPlot(playerID, isValid)
Question being, how to plug it in the other map script.
Copy enough? I don't see this fun called anywhere in terra, besides its definition.

Just for info, target map is RoM's Earth3 script.

P.S. How can I make a shortcut launch a specific mod? nvm
 
Back
Top Bottom