<?xml version="1.0" standalone="yes" ?> 
<scenario>
	<difficulty value="1"/>
	<players>
		<player control="human" faction="pirates" team="1"/>
		<player control="cpu" faction="pirates" team="2"/>
		<player control="cpu" faction="pirates" team="2"/>
		<player control="cpu" faction="pirates" team="2"/>		
	</players>
	<map value="mountains"/>
	<tileset value="winter_forest"/>
	<tech-tree value="magitech"/>
	<default-resources value="false"/>
	<default-units value="false"/>
	<default-victory-conditions value="false"/>
	<scripts>
		<startup>
			disableAi(0)
			createUnit('reck', 1, startLocation(0))
			setCameraPosition(unitPosition(lastCreatedUnit()))
			createUnit('pirate', 1, startLocation(0))
			createUnit('pirate', 1, startLocation(0))
			createUnit('pirate', 1, startLocation(0))
			createUnit('captain', 1, startLocation(0))
			createUnit('shot_gun_man', 1, startLocation(0))
			createUnit('cutlass_man', 1, startLocation(0))
			createUnit('cutlass_man', 1, startLocation(0))
			createUnit('cutlass_man', 1, startLocation(0))
			createUnit('cutlass_man', 1, startLocation(0))
			createUnit('pistol_man', 1, startLocation(0))
			createUnit('pistol_man', 1, startLocation(0))
			giveResource('gold', 1, 1000);
			giveResource('stone', 1, 1000);
			giveResource('wood', 1, 1000);			
			showMessage('Welcome', 'captain')
		        objective= 'defeat_enemy'	
			setDisplayText('Go destroy the mediling viligers and gather plunder!')		
		</startup>
		<unitDied>
			if objective=='defeat_enemy' and unitCount(0)==0 then
				clearDisplayText()
				setPlayerAsWinner(0)
				endGame()
			end
		</unitDied>
	</scripts>
</scenario>
