How to start by coast.

AHWM

Chieftain
Joined
Jul 23, 2014
Messages
35
I'm making a USA civilization, and I need them to start by the coast. But I'm not sure what to put. I was thinking about putting coast, but wouldn't that make it so they spawn in the water?

Thanks.
 
Code:
<GameData>
	<Civilization_Start_Along_Ocean>
		<Row>
			<CivilizationType>CIVILIZATION_AMERICA</CivilizationType>
			<StartAlongOcean>true</StartAlongOcean>
		</Row>
	</Civilization_Start_Along_Ocean>
</GameData>
Unless you wanted the effect for a custom, new American civ, in which case it would be this code with CIVILIZATION_AMERICA switched out for the name of your civ.
 
Thank you! I just put that in. Also, how do I make it start with a worker?
 
Code:
<GameData>
	<Civilization_FreeUnits>
		<Row>
			<CivilizationType>CIVILIZATION_AMERICA</CivilizationType>
			<UnitClassType>UNITCLASS_WORKER</UnitClassType>
			<Count>1</Count>
			<UnitAIType>UNITAI_WORKER</UnitAIType>
		</Row>
	</Civilization_FreeUnits>
</GameData>
As a general rule, first see if the base game files have any light to shed on your request, because the information the base game files have forms the basis of pretty much every single mod out there.
 
Code:
<GameData>
	<Civilization_Start_Along_Ocean>
		<Row>
			<CivilizationType>CIVILIZATION_AMERICA</CivilizationType>
			<StartAlongOcean>true</StartAlongOcean>
		</Row>
	</Civilization_Start_Along_Ocean>
</GameData>
Unless you wanted the effect for a custom, new American civ, in which case it would be this code with CIVILIZATION_AMERICA switched out for the name of your civ.

Code:
<GameData>
	<Civilization_FreeUnits>
		<Row>
			<CivilizationType>CIVILIZATION_AMERICA</CivilizationType>
			<UnitClassType>UNITCLASS_WORKER</UnitClassType>
			<Count>1</Count>
			<UnitAIType>UNITAI_WORKER</UnitAIType>
		</Row>
	</Civilization_FreeUnits>
</GameData>
As a general rule, first see if the base game files have any light to shed on your request, because the information the base game files have forms the basis of pretty much every single mod out there.

Thanks! At first, I couldn't find the file for the AI (I was mainly concerned about the UnitAIType part, I knew the rest), so I asked here. After you posted what I quoted, I found the file.
 
Top Bottom