<?xml version="1.0" standalone="yes" ?> 
<scenario>
	<difficulty value="3"/>
	<players>
		<player control="human" faction="pirates" team="1"/>
		<player control="cpu-ultra" faction="pirates" team="1"/>
		<player control="cpu-ultra" faction="china" team="2"/>
		<player control="cpu-ultra" faction="china" team="2"/>	
	</players>
	<map value="cost_to_cost"/>
	<tileset value="sea"/>
	<tech-tree value="magitech"/>
	<default-resources value="true"/>
	<default-units value="false"/>
	<default-victory-conditions value="true"/>
	<scripts>
		<startup>
			--disable AI
			disableAi(3)
			
			--allied units
			createUnit('reck', 0, startLocation(1))
			createUnit('pirate', 0, startLocation(1))
			createUnit('pirate', 0, startLocation(1))
			createUnit('pirate', 0, startLocation(1))
			createUnit('pirate', 1, startLocation(1))
			captainUnit= lastCreatedUnit()
			
			--player units
			for i=1, 1 do
				createUnit('pirate_ship', 0, startLocation(0))
			end	

			for i=1, 1 do
				createUnit('pirate_ship', 1, startLocation(0))
			end

			--enemy units village
			createUnit('worker', 2, startLocation(2))
			createUnit('worker', 2, startLocation(2))
			createUnit('worker', 2, startLocation(2))
			createUnit('castle', 2, startLocation(2))
			createUnit('archer_tower', 2, startLocation(2))	
			createUnit('archer_tower', 2, startLocation(2))	
			createUnit('archer_tower', 2, startLocation(2))
			createUnit('archer', 2, startLocation(2))
			createUnit('archer', 2, startLocation(2))
			createUnit('archer', 2, startLocation(2))
			createUnit('archer', 2, startLocation(2))
			createUnit('archer', 2, startLocation(2))


			createUnit('dock', 2, startLocation(3))
			createUnit('canoe', 2, startLocation(3))
			
			--create enemy attackers
			for i=1, 1 do
				createUnit('crow', 2, startLocation(3))	
			end

			--objectives
			objective='Objectivedestroy1'
			showMessage('start', 'captain')
			setDisplayText('Objectivedestroy1')
		</startup>		
	</scripts>		
</scenario>
