<?xml version="1.0" standalone="yes" ?> 
<scenario>
<difficulty value="1"/>
<players>
	<player control="human" faction="romans" team="1"/>
	<player control="cpu"  faction="romans" team="1"/>
	<player control="cpu" faction="romans" team="1"/>
	<player control="cpu" faction="barbarians" team="3"/>
</players>
<map value="ba"/>
<tileset value="forest"/>
<tech-tree value="ultrapack_v1"/>
	<default-resources value="true"/>	
	<default-units value="false"/>
	<default-victory-conditions value="true"/>
	<scripts>
		<startup>
			--disable AI
			disableAi(0)
			disableAi(1)
			disableAi(2)

			--objectives
			objective='destroy_barbarian_camp'
			showMessage('Brief1', 'message from the king')
			setDisplayText('lesson1')

			--player units
			for i=1, 1 do
				createUnit('forum', 0, startLocation(0))
			end

			for i=1, 2 do
				createUnit('swordsman', 0, startLocation(0))
				givePositionCommand(lastCreatedUnit(), 'attack', startLocation(2))	
			end

			for i=1, 2 do
				createUnit('swordsman', 0, startLocation(0))
				givePositionCommand(lastCreatedUnit(), 'attack', startLocation(1))	
			end

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

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

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

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

			for i=1, 4 do
				createUnit('spearman', 0, startLocation(2))
			end

			createUnit('training_camp', 0, startLocation(0))
			summonerUnit= lastCreatedUnit()

				giveProductionCommand(summonerUnit, 'spearman')
				giveProductionCommand(summonerUnit, 'spearman')

			--create enemy attackers
			for i=1, 3 do
				createUnit('stickfighter', 3, startLocation(3))
				givePositionCommand(lastCreatedUnit(), 'attack', startLocation(0))	
			end

			for i=1, 4 do
				createUnit('torch_man', 3, startLocation(3))
				givePositionCommand(lastCreatedUnit(), 'attack', startLocation(2))	
			end

			for i=1, 5 do
				createUnit('swordman', 3, startLocation(3))
				givePositionCommand(lastCreatedUnit(), 'attack', startLocation(0))	
			end

			for i=1, 2 do
				createUnit('axe_thrower', 3, startLocation(3))
				givePositionCommand(lastCreatedUnit(), 'attack', startLocation(0))	
			end

			for i=1, 4 do
				createUnit('axe_thrower', 3, startLocation(3))
				givePositionCommand(lastCreatedUnit(), 'attack', startLocation(2))	
			end

			--objectives
			objective='destroy_barbarian_camp'
			showMessage('Brief2', 'message from the king')
			setDisplayText('lesson1')

			--enemy units village
			createUnit('bonfire', 3, startLocation(3))
			createUnit('fortress', 3, startLocation(3))
			createUnit('bonfire', 3, startLocation(3))
			createUnit('axe_thrower', 3, startLocation(3))
			createUnit('worker', 3, startLocation(3))
			createUnit('worker', 3, startLocation(3))
			createUnit('worker', 3, startLocation(3))
			createUnit('worker', 3, startLocation(3))
			createUnit('worker', 3, startLocation(3))
			createUnit('worker', 3, startLocation(3))
			createUnit('stickfighter', 3, startLocation(3))
			createUnit('stickfighter', 3, startLocation(3))
			createUnit('stickfighter', 3, startLocation(3))
			createUnit('stickfighter', 3, startLocation(3))
			createUnit('spearman', 3, startLocation(3))
			createUnit('farm', 3, startLocation(3))
			createUnit('boar', 3, startLocation(3))
			createUnit('boar', 3, startLocation(3))
			createUnit('boar', 3, startLocation(3))
			createUnit('battleaxe_man', 3, startLocation(3))
			createUnit('battleaxe_man', 3, startLocation(3))
			createUnit('hunting_tent', 3, startLocation(3))
			createUnit('hunting_tent', 3, startLocation(3))
	         	createUnit('farm', 3, startLocation(3))

		</startup>	
	</scripts>		
</scenario>
