label="Orange_Dude Caves 5-15-09"
version="1.6"
completion="victory"
campaign_type="multiplayer"
difficulty="NORMAL"
random_seed="18837"
random_calls="0"
next_underlying_unit_id="64"
end_text_duration="0"
[variables]
	damage_inflicted="2"
	side_number="1"
	turn_number="8"
[/variables]
[replay]
	[command]
		[start]
		[/start]
	[/command]
	[command]
		[recruit]
			value="4"
			x="24"
			y="5"
		[/recruit]
		[random]
			value="27084"
		[/random]
		[random]
			value="9567"
		[/random]
		[random]
			value="15739"
		[/random]
		[random]
			value="9053"
		[/random]
		[random]
			value="31496"
		[/random]
		[random]
			value="23613"
		[/random]
		[random]
			value="13164"
		[/random]
		[random]
			value="25384"
		[/random]
		[random]
			value="783"
		[/random]
		[random]
			value="26937"
		[/random]
		[random]
			value="11149"
		[/random]
		[random]
			value="29382"
		[/random]
		[random]
			value="27754"
		[/random]
		[random]
			value="25539"
		[/random]
		[random]
			value="6750"
			[results]
				checksum="FTxBwyUzhyBkwVHKQOq5AMPytSNtRJzMRsDuHBtnQvBFyQAVsL8qJTmQQNRqrWuTuTxCUFLDPxfDLuyOdqNHp2JuaZMrXGikJwc0bkdib+c.P93obZj,mcoe3b,IXl32"
			[/results]
		[/random]
	[/command]
	[command]
		[recruit]
			value="4"
			x="18"
			y="5"
		[/recruit]
		[random]
			value="21126"
		[/random]
		[random]
			value="8240"
		[/random]
		[random]
			value="22420"
		[/random]
		[random]
			value="14576"
		[/random]
		[random]
			value="1075"
		[/random]
		[random]
			value="663"
		[/random]
		[random]
			value="7248"
		[/random]
		[random]
			value="12328"
		[/random]
		[random]
			value="12933"
		[/random]
		[random]
			value="3822"
		[/random]
		[random]
			value="14245"
		[/random]
		[random]
			value="2651"
		[/random]
		[random]
			value="22425"
		[/random]
		[random]
			value="23531"
		[/random]
		[random]
			value="5697"
			[results]
				checksum="FTxBwyUzhyBkwVHKQOq5AMPytSNtRJzMRsDuHBtnQvBFyQAVsL8qJTmQQNRqrWuTuTxCUFLDPxfDLuyOdqNHp2JuaZMrXGikJwc0bkdib+c.P93obZj,mcoe3b,IXl32"
			[/results]
		[/random]
	[/command]
	[command]
		[recruit]
			value="7"
			x="19"
			y="5"
		[/recruit]
		[random]
			value="23055"
		[/random]
		[random]
			value="26445"
		[/random]
		[random]
			value="14707"
		[/random]
		[random]
			value="31889"
		[/random]
		[random]
			value="20728"
		[/random]
		[random]
			value="23345"
		[/random]
		[random]
			value="17449"
		[/random]
		[random]
			value="22661"
		[/random]
		[random]
			value="15125"
		[/random]
		[random]
			value="19502"
		[/random]
		[random]
			value="26487"
		[/random]
		[random]
			value="32527"
		[/random]
		[random]
			value="15447"
		[/random]
		[random]
			value="30464"
		[/random]
		[random]
			value="13173"
			[results]
				checksum="c4jbeoBjPXdN9277b82>Vg,h+ld6d5,0c<W-1<71YYc5-d+8873Gj8ibkh8k-+v7e7e8fh18<i8Sem73jI-oaGeRO,h>ybO20xxhh6<5,n30KE4<Yfd6-cbePq5.ql>p"
			[/results]
		[/random]
	[/command]
	[command]
		[recruit]
			value="6"
			x="23"
			y="5"
		[/recruit]
		[random]
			value="5477"
		[/random]
		[random]
			value="8956"
		[/random]
		[random]
			value="26742"
		[/random]
		[random]
			value="18426"
		[/random]
		[random]
			value="27013"
		[/random]
		[random]
			value="5328"
		[/random]
		[random]
			value="12953"
		[/random]
		[random]
			value="19444"
		[/random]
		[random]
			value="29360"
		[/random]
		[random]
			value="1346"
		[/random]
		[random]
			value="23466"
		[/random]
		[random]
			value="1736"
		[/random]
		[random]
			value="12385"
		[/random]
		[random]
			value="20720"
		[/random]
		[random]
			value="31905"
			[results]
				checksum="GIrTMzMz9ES2DQOJBEKJhELDntFKRtrHUBCMyPNLLqFJRxvqM3FDTGMqHwEVMDODuIOJsNEsPcOusOKDwebPsxOruODoP.K+zDJqnpswJI0PpQ,UvAQ3huxn4mf5Lj19"
			[/results]
		[/random]
	[/command]
	[command]
		[recruit]
			value="1"
			x="22"
			y="4"
		[/recruit]
		[random]
			value="86"
		[/random]
		[random]
			value="21846"
		[/random]
		[random]
			value="14267"
		[/random]
		[random]
			value="26510"
		[/random]
		[random]
			value="8579"
		[/random]
		[random]
			value="27659"
		[/random]
		[random]
			value="25899"
		[/random]
		[random]
			value="27089"
		[/random]
		[random]
			value="23869"
		[/random]
		[random]
			value="19085"
		[/random]
		[random]
			value="2261"
		[/random]
		[random]
			value="25732"
		[/random]
		[random]
			value="21076"
		[/random]
		[random]
			value="30972"
		[/random]
		[random]
			value="7336"
			[results]
				checksum="MjpsyKA8tq1H+rohkH2DZ9>b7j1h.rkiw1-Fek9X9FajMic5Q3Y959Xncn>g+J0<5+3mY8je7a461,hkGw7d1pgHD0ytJwg>n6zuefoWmmRC,xvlCbQ1htCesyckpNss"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Lighting has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="icanseeyou has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="21,20,19,18,17"
			y="4,4,4,3,3"
		[/move]
	[/command]
	[command]
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Orange_Dude"
			message="gl & hf"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="7"
			x="18"
			y="19"
		[/recruit]
		[random]
			value="23727"
		[/random]
		[random]
			value="23895"
		[/random]
		[random]
			value="15490"
		[/random]
		[random]
			value="26373"
		[/random]
		[random]
			value="3362"
		[/random]
		[random]
			value="28877"
		[/random]
		[random]
			value="12024"
		[/random]
		[random]
			value="14177"
		[/random]
		[random]
			value="6683"
		[/random]
		[random]
			value="28673"
		[/random]
		[random]
			value="24127"
		[/random]
		[random]
			value="17698"
		[/random]
		[random]
			value="14168"
		[/random]
		[random]
			value="30986"
		[/random]
		[random]
			value="1061"
			[results]
				checksum="c4ibeoBjPXdN9277b82>Vg,h+ld6d5,0c<W-1<71YYc5-d+8873Gj8ibkh8k-+v7e7e8fh1l<i8Sem73jI-oaGeRO,h0ybO20xxhh6<5-i30KE4<Yfd6-cbeCq5.ql>p"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="4"
			x="19"
			y="20"
		[/recruit]
		[random]
			value="24666"
		[/random]
		[random]
			value="23840"
		[/random]
		[random]
			value="26312"
		[/random]
		[random]
			value="3411"
		[/random]
		[random]
			value="17630"
		[/random]
		[random]
			value="31658"
		[/random]
		[random]
			value="25129"
		[/random]
		[random]
			value="25718"
		[/random]
		[random]
			value="30952"
		[/random]
		[random]
			value="29556"
		[/random]
		[random]
			value="32343"
		[/random]
		[random]
			value="18313"
		[/random]
		[random]
			value="25111"
		[/random]
		[random]
			value="21742"
		[/random]
		[random]
			value="1555"
			[results]
				checksum="FIxBwyUzhyBkwVHKQOq5AMPytSNtRJzMRsDuHBtnQvBFyQAVsL8qJTmQQNRqrWuTuTxCUEQDPxfDLuyOdqNHp2JuaZJrXGikJwc0bkdie+c.P93obZj,mcpd3b,IXl32"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="6"
			x="20"
			y="20"
		[/recruit]
		[random]
			value="23221"
		[/random]
		[random]
			value="2281"
		[/random]
		[random]
			value="26111"
		[/random]
		[random]
			value="3740"
		[/random]
		[random]
			value="12382"
		[/random]
		[random]
			value="9917"
		[/random]
		[random]
			value="25950"
		[/random]
		[random]
			value="26156"
		[/random]
		[random]
			value="2016"
		[/random]
		[random]
			value="26587"
		[/random]
		[random]
			value="9301"
		[/random]
		[random]
			value="5783"
		[/random]
		[random]
			value="20976"
		[/random]
		[random]
			value="3578"
		[/random]
		[random]
			value="25164"
			[results]
				checksum="GIsTMzMz9ES2DQOJBEKJhELDntFKRtrHUBCMyPNLLqFJRxvqM3FDTGMqHwEVMDODuIOJsNEqPcOusOKDwebPsxOruODoP.K+zDJqnpswGK0PpQ,UvAQ3huxn2mf5Lj19"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="4"
			x="24"
			y="19"
		[/recruit]
		[random]
			value="9180"
		[/random]
		[random]
			value="22345"
		[/random]
		[random]
			value="9766"
		[/random]
		[random]
			value="21011"
		[/random]
		[random]
			value="18674"
		[/random]
		[random]
			value="26577"
		[/random]
		[random]
			value="26219"
		[/random]
		[random]
			value="26601"
		[/random]
		[random]
			value="32447"
		[/random]
		[random]
			value="28351"
		[/random]
		[random]
			value="11749"
		[/random]
		[random]
			value="31984"
		[/random]
		[random]
			value="31875"
		[/random]
		[random]
			value="16672"
		[/random]
		[random]
			value="19705"
			[results]
				checksum="FTxBwyUzhyBkwVHKQOq5AMPytSNtRJzMRsDuHBtnQvBFyQAVsL8qJTmQQNRqrWuTuTxCUFIDPxfDLuyOdqNHp2JuaZMrXGikJwc0bkdie+c.P93obZj,mcol3b,IXl32"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="jacki has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="4"
			x="23"
			y="20"
		[/recruit]
		[random]
			value="24835"
		[/random]
		[random]
			value="1254"
		[/random]
		[random]
			value="16522"
		[/random]
		[random]
			value="25064"
		[/random]
		[random]
			value="25185"
		[/random]
		[random]
			value="20203"
		[/random]
		[random]
			value="11355"
		[/random]
		[random]
			value="9236"
		[/random]
		[random]
			value="24890"
		[/random]
		[random]
			value="32647"
		[/random]
		[random]
			value="7000"
		[/random]
		[random]
			value="15338"
		[/random]
		[random]
			value="13711"
		[/random]
		[random]
			value="20544"
		[/random]
		[random]
			value="23614"
			[results]
				checksum="uyqOVzDO<ExdHrVAAKrGB6qDQPwqLuEDUSNIMADRBGxxpOFSryqC1rOBpDQNRqrWuTuTxCUFIDPxfDLuyOdqNHp2JuaZMrXGikJwc0bkdie+c.P93obZj,mcol3b,IXl"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="6"
			x="22"
			y="20"
		[/recruit]
		[random]
			value="19381"
		[/random]
		[random]
			value="4296"
		[/random]
		[random]
			value="19126"
		[/random]
		[random]
			value="1192"
		[/random]
		[random]
			value="22033"
		[/random]
		[random]
			value="199"
		[/random]
		[random]
			value="3520"
		[/random]
		[random]
			value="16822"
		[/random]
		[random]
			value="20134"
		[/random]
		[random]
			value="16659"
		[/random]
		[random]
			value="8966"
		[/random]
		[random]
			value="684"
		[/random]
		[random]
			value="32680"
		[/random]
		[random]
			value="28569"
		[/random]
		[random]
			value="31501"
			[results]
				checksum="GIrTMzMz9ES2DQOJBEKJhELDntFKRtrHUBCMyPNLLqFJRxvqM3FDTGMqHwEVMDODuIOJsNEtPcOusOKDwebPsxOruODoP.K+zDJqnpswGK0PpQ,qvAQ3huxn5mf5Lj19"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="21,22,23,24,25"
			y="21,20,20,20,21"
		[/move]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		[move]
			x="22,23,24,24,25"
			y="4,5,5,6,7"
		[/move]
	[/command]
	[command]
		[move]
			x="24,25,26,27,28,29,30,31"
			y="5,6,6,6,5,5,5,6"
		[/move]
	[/command]
	[command]
		[move]
			x="23,23,22,22,22,22"
			y="5,6,6,7,8,9"
		[/move]
	[/command]
	[command]
		[move]
			x="17,17,17,17,17,17"
			y="3,4,5,6,7,8"
		[/move]
	[/command]
	[command]
		[move]
			x="18,17,16,15,14,13,12"
			y="5,5,5,5,5,5,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="WIF_Gadenz has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="19,18,17,16,15,14,13,12"
			y="5,5,6,6,7,7,8,8"
		[/move]
	[/command]
	[command]
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[move]
			x="18,18,18,18,17,16,16"
			y="19,18,17,16,16,15,14"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="19,18,17,16,15,14,13,12,11"
			y="20,19,19,19,20,19,19,19,19"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="20,19,18,17,16,15"
			y="20,20,19,19,19,20"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="24,25,26,27,28,29,30,31"
			y="19,19,18,18,17,17,16,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="23,24,25,26,27,28,29,30"
			y="20,19,20,20,20,19,20,20"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="22,23,24,24,25,25"
			y="20,20,19,18,18,17"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="25,24,23,22,21"
			y="21,20,20,20,21"
		[/move]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="7"
			x="24"
			y="19"
		[/recruit]
		[random]
			value="14110"
		[/random]
		[random]
			value="20395"
		[/random]
		[random]
			value="22073"
		[/random]
		[random]
			value="10020"
		[/random]
		[random]
			value="18194"
		[/random]
		[random]
			value="11751"
		[/random]
		[random]
			value="26999"
		[/random]
		[random]
			value="23243"
		[/random]
		[random]
			value="32313"
		[/random]
		[random]
			value="17248"
		[/random]
		[random]
			value="25732"
		[/random]
		[random]
			value="29314"
		[/random]
		[random]
			value="27319"
		[/random]
		[random]
			value="30777"
		[/random]
		[random]
			value="5950"
			[results]
				checksum="86Wmq3.,tb9Th9Xh+8Om3eb898egWbi26k39>2dlaZge0f-9iPif8c7h8k-+v7e7e8fh1b<i8Sem73jI-oaGeRO,h0ybO20xxhh6<5-i30KE4<Yfd6-cbeMq5.ql>pFA"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		[move]
			x="17,17,17,18"
			y="8,7,6,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Warrior has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="12,12,12,12,11,11,11,11"
			y="4,5,6,7,8,9,10,11"
		[/move]
	[/command]
	[command]
		[move]
			x="12,11,10,9,8"
			y="8,9,9,10,10"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Pavlin has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="8,8"
			y="10,11"
		[/move]
	[/command]
	[command]
		[move]
			x="8,7"
			y="11,12"
		[/move]
	[/command]
	[command]
		[move]
			x="22,23,24,25,26,26"
			y="9,9,8,9,9,10"
		[/move]
	[/command]
	[command]
		[move]
			x="25,26,26,27,28"
			y="7,7,8,9,9"
		[/move]
	[/command]
	[command]
		[move]
			x="31,31,31,31,31"
			y="6,7,8,9,10"
		[/move]
	[/command]
	[command]
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="qrcze has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="11,11"
			y="19,18"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="icanseeyou has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Darius has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="31,32,33,33,34,35,35"
			y="16,15,15,14,13,13,12"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="30,30,30,30,30"
			y="20,19,18,17,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="MrHanky has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="30,31"
			y="16,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="25,25,26,27,28,29,30"
			y="17,18,18,18,17,17,16"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="11,12,12,13,14,15"
			y="18,17,16,16,15,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="16,16,17,18,19,20"
			y="14,15,16,16,16,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Bierbrauer has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="7"
			x="18"
			y="19"
		[/recruit]
		[random]
			value="29501"
		[/random]
		[random]
			value="1499"
		[/random]
		[random]
			value="15235"
		[/random]
		[random]
			value="2351"
		[/random]
		[random]
			value="28338"
		[/random]
		[random]
			value="17227"
		[/random]
		[random]
			value="9222"
		[/random]
		[random]
			value="23661"
		[/random]
		[random]
			value="223"
		[/random]
		[random]
			value="21064"
		[/random]
		[random]
			value="27330"
		[/random]
		[random]
			value="24669"
		[/random]
		[random]
			value="21216"
		[/random]
		[random]
			value="4108"
		[/random]
		[random]
			value="11868"
			[results]
				checksum="c4jbeoBjPXdN9277b82>Vg,h+ld6d5,0c<W-1<71YYc5-d+8873Gj8ibkh8k-+v7e7e8fh18<i8Sem73jI-oaGeRO,h>ybO20xxhh6<5,n30KE4<Yfd6-cbePq5.ql>p"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="15,14,13,12,11"
			y="20,19,19,19,19"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="24,25,26,27,28,29,30,30"
			y="19,19,18,18,17,17,16,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		[move]
			x="18,19,20,21"
			y="5,5,4,4"
		[/move]
	[/command]
	[command]
		[move]
			x="31,31,31,31,31"
			y="10,9,8,7,6"
		[/move]
	[/command]
	[command]
		[move]
			x="28,29,30,31"
			y="9,10,10,10"
		[/move]
	[/command]
	[command]
		[move]
			x="26,27"
			y="10,11"
		[/move]
	[/command]
	[command]
		[move]
			x="27,28"
			y="11,11"
		[/move]
	[/command]
	[command]
		[move]
			x="28,29"
			y="11,12"
		[/move]
	[/command]
	[command]
		[move]
			x="29,28,27,26"
			y="12,11,11,10"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="CramNiap has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[recruit]
			value="6"
			x="24"
			y="5"
		[/recruit]
		[random]
			value="25939"
		[/random]
		[random]
			value="28501"
		[/random]
		[random]
			value="912"
		[/random]
		[random]
			value="6288"
		[/random]
		[random]
			value="27432"
		[/random]
		[random]
			value="27266"
		[/random]
		[random]
			value="17217"
		[/random]
		[random]
			value="16399"
		[/random]
		[random]
			value="21041"
		[/random]
		[random]
			value="26901"
		[/random]
		[random]
			value="18367"
		[/random]
		[random]
			value="24627"
		[/random]
		[random]
			value="24114"
		[/random]
		[random]
			value="8210"
		[/random]
		[random]
			value="12555"
			[results]
				checksum="GIsTMzMz9ES2DQOJBEKJhELDntFKRtrHUBCMyPNLLqFJRxvqM3FDTGMqHwEVMDODuIOJsNEqPcOusOKDwebPsxOruODoP.K+zDJqnpswGK0PpQ,UvAQ3huxn2mf5Lj19"
			[/results]
		[/random]
	[/command]
	[command]
		[recruit]
			value="4"
			x="23"
			y="5"
		[/recruit]
		[random]
			value="8219"
		[/random]
		[random]
			value="20481"
		[/random]
		[random]
			value="22659"
		[/random]
		[random]
			value="14029"
		[/random]
		[random]
			value="13103"
		[/random]
		[random]
			value="15416"
		[/random]
		[random]
			value="6849"
		[/random]
		[random]
			value="30128"
		[/random]
		[random]
			value="5877"
		[/random]
		[random]
			value="7131"
		[/random]
		[random]
			value="5685"
		[/random]
		[random]
			value="631"
		[/random]
		[random]
			value="2163"
		[/random]
		[random]
			value="16426"
		[/random]
		[random]
			value="32308"
			[results]
				checksum="uyqNVzDO<ExdHrVAAKrGB6qDQPwqLuEDUSNIMADRBGxxpOFSryqC1rOBpDQNRqrWuTuTxCUEQDPxfDLuyOdqNHp2JuaZJrXGikJwc0bkdie+c.P93obZj,mcpd3b,IXl"
			[/results]
		[/random]
	[/command]
	[command]
		[recruit]
			value="1"
			x="22"
			y="4"
		[/recruit]
		[random]
			value="25277"
		[/random]
		[random]
			value="26726"
		[/random]
		[random]
			value="27184"
		[/random]
		[random]
			value="32242"
		[/random]
		[random]
			value="17149"
		[/random]
		[random]
			value="20437"
		[/random]
		[random]
			value="16018"
		[/random]
		[random]
			value="30457"
		[/random]
		[random]
			value="12958"
		[/random]
		[random]
			value="14610"
		[/random]
		[random]
			value="442"
		[/random]
		[random]
			value="15144"
		[/random]
		[random]
			value="7772"
		[/random]
		[random]
			value="10556"
		[/random]
		[random]
			value="599"
			[results]
				checksum="MipsyKA8tq1G+rohkH2DZ9>b7j1h.rkiw1-Fek9X9FajMic5Q3Y959Xncn>g+J0<5+3mY8je7a461,hkHw7d1pgHD0ytJwg>n6zuefoWmmRC,xvlCaM1htCesyhkpNss"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="WIF_Xalzar has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Mique has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="11,12"
			y="11,11"
		[/move]
	[/command]
	[command]
		[move]
			x="12,13"
			y="11,12"
		[/move]
	[/command]
	[command]
		[move]
			x="13,13"
			y="12,13"
		[/move]
	[/command]
	[command]
		[move]
			x="13,13,12,11"
			y="13,12,11,11"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="binchu has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Roten has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="7,8,9,10,11,12,12,13"
			y="12,11,11,10,10,9,8,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="zedahu has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[move]
			x="15,14,13,12,11,10,10"
			y="15,14,14,14,15,14,13"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="jogador has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Burger has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Azaghal has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="20,19,18,17,16,15,14"
			y="15,16,16,16,15,15,14"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="18,17,16,16,16,15,14,13"
			y="19,19,18,17,16,16,15,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="11,11,11,11,11"
			y="19,18,17,16,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="35,35,35,34,34,33"
			y="12,11,10,9,8,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="31,31,31,31,31"
			y="16,15,14,13,12"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="30,30,30,30"
			y="15,14,13,12"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="30,31,31,31,31"
			y="16,16,15,14,13"
		[/move]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="7"
			x="24"
			y="19"
		[/recruit]
		[random]
			value="29623"
		[/random]
		[random]
			value="16823"
		[/random]
		[random]
			value="24051"
		[/random]
		[random]
			value="30267"
		[/random]
		[random]
			value="10079"
		[/random]
		[random]
			value="9002"
		[/random]
		[random]
			value="19092"
		[/random]
		[random]
			value="27303"
		[/random]
		[random]
			value="21353"
		[/random]
		[random]
			value="23143"
		[/random]
		[random]
			value="27920"
		[/random]
		[random]
			value="15323"
		[/random]
		[random]
			value="538"
		[/random]
		[random]
			value="681"
		[/random]
		[random]
			value="1414"
			[results]
				checksum="c4jbeoBjPXdN9277b82>Vg,h+ld6d5,0c<W-1<71YYc5-d+8873Gj8ibkh8k-+v7e7e8fh1b<i8Sem73jI-oaGeRO,h0ybO20xxhh6<5-i30KE4<Yfd6-cbeMq5.ql>p"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="TEMPOTEMPO has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[recruit]
			value="6"
			x="18"
			y="5"
		[/recruit]
		[random]
			value="30806"
		[/random]
		[random]
			value="9622"
		[/random]
		[random]
			value="17732"
		[/random]
		[random]
			value="20256"
		[/random]
		[random]
			value="6474"
		[/random]
		[random]
			value="23616"
		[/random]
		[random]
			value="25838"
		[/random]
		[random]
			value="29792"
		[/random]
		[random]
			value="12042"
		[/random]
		[random]
			value="21435"
		[/random]
		[random]
			value="30857"
		[/random]
		[random]
			value="24236"
		[/random]
		[random]
			value="18194"
		[/random]
		[random]
			value="13350"
		[/random]
		[random]
			value="22023"
			[results]
				checksum="GIsTMzMz9ES2DQOJBEKJhELDntFKRtrHUBCMyPNLLqFJRxvqM3FDTGMqHwEVMDODuIOJsNEqPcOusOKDwebPsxOruODoP.K+zDJqnpswGK0PpQ,UvAQ3huxn2mf5Lj19"
			[/results]
		[/random]
	[/command]
	[command]
		[recruit]
			value="7"
			x="19"
			y="5"
		[/recruit]
		[random]
			value="21443"
		[/random]
		[random]
			value="20487"
		[/random]
		[random]
			value="25983"
		[/random]
		[random]
			value="3708"
		[/random]
		[random]
			value="32460"
		[/random]
		[random]
			value="13752"
		[/random]
		[random]
			value="23631"
		[/random]
		[random]
			value="7589"
		[/random]
		[random]
			value="13505"
		[/random]
		[random]
			value="11975"
		[/random]
		[random]
			value="20629"
		[/random]
		[random]
			value="4540"
		[/random]
		[random]
			value="6149"
		[/random]
		[random]
			value="12192"
		[/random]
		[random]
			value="4702"
			[results]
				checksum="c4ibeoBjPXdN9277b82>Vg,h+ld6d5,0c<W-1<71YYc5-d+8873Gj8ibkh8k-+v7e7e8fh19<i8Sem73jI-oaGeRO,h>ybO20xxhh6<5-i30KE4<Yfd6-cbeOq5.ql>p"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="23,22,21,20,19,18,17,16,15"
			y="5,4,4,4,5,5,6,6,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Confessor has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Bohemmoth has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Minotharus has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="uio has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Roten has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="22,21,20,19,18,17"
			y="4,4,4,5,5,6"
		[/move]
	[/command]
	[command]
		[move]
			x="24,23,22,21,20,19"
			y="5,5,5,6,6,7"
		[/move]
	[/command]
	[command]
		[move]
			x="11,11,11,10"
			y="11,10,9,8"
		[/move]
	[/command]
	[command]
		[move]
			x="13,12,11"
			y="8,7,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="aeris_Hu has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="21,22,23,24,25,26"
			y="4,4,5,5,6,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Glamdring has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Kain has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,11,11,11"
			y="13,13,12,11"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Hi has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="ka_o_3991 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="11,12,13,13,13,13"
			y="15,14,14,13,12,11"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="13,13,13,12,11,10,9"
			y="15,14,13,12,12,11,11"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="14,13,13,13,12,11,10"
			y="14,14,13,12,11,11,10"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="31,30,29,29,29,29"
			y="12,11,11,10,9,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Glouk has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="gamelle has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Lighting has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Vex121 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="24,25,26,27,28,29,30,30"
			y="19,19,18,18,17,17,16,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="4"
			x="24"
			y="19"
		[/recruit]
		[random]
			value="15948"
		[/random]
		[random]
			value="32274"
		[/random]
		[random]
			value="16891"
		[/random]
		[random]
			value="30339"
		[/random]
		[random]
			value="31313"
		[/random]
		[random]
			value="25633"
		[/random]
		[random]
			value="31414"
		[/random]
		[random]
			value="24538"
		[/random]
		[random]
			value="1782"
		[/random]
		[random]
			value="23160"
		[/random]
		[random]
			value="24607"
		[/random]
		[random]
			value="32407"
		[/random]
		[random]
			value="17685"
		[/random]
		[random]
			value="15195"
		[/random]
		[random]
			value="11511"
			[results]
				checksum="FTxBwyUzhyBkwVHKQOq5AMPytSNtRJzMRsDuHBtnQvBFyQAVsL8qJTmQQNRqrWuTuTxCUFLDPxfDLuyOdqNHp2JuaZMrXGikJwc0bkdib+c.P93obZj,mcoe3b,IXl32"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="4"
			x="18"
			y="19"
		[/recruit]
		[random]
			value="24622"
		[/random]
		[random]
			value="14675"
		[/random]
		[random]
			value="26502"
		[/random]
		[random]
			value="20988"
		[/random]
		[random]
			value="3480"
		[/random]
		[random]
			value="6972"
		[/random]
		[random]
			value="23705"
		[/random]
		[random]
			value="5780"
		[/random]
		[random]
			value="30624"
		[/random]
		[random]
			value="19442"
		[/random]
		[random]
			value="15181"
		[/random]
		[random]
			value="28728"
		[/random]
		[random]
			value="12466"
		[/random]
		[random]
			value="22786"
		[/random]
		[random]
			value="19590"
			[results]
				checksum="FTxBwyUzhyBkwVHKQOq5AMPytSNtRJzMRsDuHBtnQvBFyQAVsL8qJTmQQNRqrWuTuTxCUFIDPxfDLuyOdqNHp2JuaZMrXGikJwc0bkdie+c.P93obZj,mcol3b,IXl32"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Girgistian has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Kelen has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="goku94 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="DZh-Kenshin has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="eastprince has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="33,32,31,30,29,29"
			y="8,7,8,7,7,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="29,29"
			y="8,9"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="30,30,29,29,29,29"
			y="12,11,11,10,9,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="31,30,29,28,27"
			y="13,13,13,12,12"
		[/move]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Thrantar has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="DZh-AlphaRune has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="26,26,26,27,28"
			y="6,7,8,9,9"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="28"
				y="9"
			[/source]
			[destination]
				x="29"
				y="9"
			[/destination]
		[/attack]
		[random]
			value="13853"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="13163"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="25013"
			[results]
				chance="40"
				damage="9"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="21789"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="16868"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="9353"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="26,27,28,29,30,30"
			y="10,10,10,11,10,9"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="30"
				y="9"
			[/source]
			[destination]
				x="29"
				y="9"
			[/destination]
		[/attack]
		[random]
			value="11830"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="10739"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="132"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="18524"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="17776"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="17322"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="31,30,29"
			y="10,10,10"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="29"
				y="10"
			[/source]
			[destination]
				x="29"
				y="9"
			[/destination]
		[/attack]
		[random]
			value="456"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="5687"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="18053"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="26608"
			[results]
				chance="70"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="19608"
			[results]
				chance="40"
				damage="7"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="19,20,21,22,23,24,25"
			y="5,4,5,5,6,6,7"
		[/move]
	[/command]
	[command]
		[move]
			x="19,20,21,22,23,24"
			y="7,7,7,7,8,7"
		[/move]
	[/command]
	[command]
		[move]
			x="31,31,30"
			y="6,7,7"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="30"
				y="7"
			[/source]
			[destination]
				x="29"
				y="8"
			[/destination]
		[/attack]
		[random]
			value="30353"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="27532"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="SLSL has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="10,10"
			y="8,9"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="10"
				y="9"
			[/source]
			[destination]
				x="10"
				y="10"
			[/destination]
		[/attack]
		[random]
			value="13365"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="19416"
			[results]
				chance="40"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Kain has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Carving has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="18,17,16,15,14,13"
			y="5,6,6,7,7,8"
		[/move]
	[/command]
	[command]
		[move]
			x="17,16,15,14,13,12"
			y="6,6,7,7,8,8"
		[/move]
	[/command]
	[command]
		[move]
			x="15,14,13,12,11,10"
			y="7,7,7,7,8,8"
		[/move]
	[/command]
	[command]
		[move]
			x="11,10,9,9"
			y="7,7,8,9"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Lutzbox360 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="2130 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="jingjang1 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="30,30,30,29,29,28,27,27"
			y="15,14,13,13,12,11,11,10"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="29,29"
			y="8,9"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="27"
				y="10"
			[/source]
			[destination]
				x="28"
				y="9"
			[/destination]
		[/attack]
		[random]
			value="21787"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="5022"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1421"
			[results]
				chance="60"
				damage="10"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="11641"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="19997"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="31292"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="3561"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="29"
				y="9"
			[/source]
			[destination]
				x="28"
				y="9"
			[/destination]
		[/attack]
		[random]
			value="31160"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="5938"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="31266"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="12449"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="9158"
			[results]
				chance="60"
				damage="10"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="32373"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="530"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="mchandy36 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="jogador has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="oskar has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Orange_Dude"
			message="didnt see that quick thief coming..."
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="24,25,26,27,28,29,30,30"
			y="19,19,18,18,17,17,16,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="29,30,31"
			y="6,5,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="27,27,26"
			y="12,11,10"
		[/move]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="7"
			x="24"
			y="19"
		[/recruit]
		[random]
			value="7100"
		[/random]
		[random]
			value="20590"
		[/random]
		[random]
			value="26395"
		[/random]
		[random]
			value="24054"
		[/random]
		[random]
			value="32047"
		[/random]
		[random]
			value="14041"
		[/random]
		[random]
			value="7115"
		[/random]
		[random]
			value="28501"
		[/random]
		[random]
			value="1288"
		[/random]
		[random]
			value="3240"
		[/random]
		[random]
			value="28303"
		[/random]
		[random]
			value="9652"
		[/random]
		[random]
			value="21549"
		[/random]
		[random]
			value="19897"
		[/random]
		[random]
			value="4129"
			[results]
				checksum="86Wmq3.,tb9Th9Xh+8Om3eb898egWbi26k39>2dlaZge0f-9iPif8c7h8k-+v7e7e8fh1b<i8Sem73jI-oaGeRO,h0ybO20xxhh6<5-i30KE4<Yfd6-cbeMq5.ql>pFA"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Blackadder"
			message="ah"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Blackadder"
			message="you were very lucky there"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Hellmaster has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Orange_Dude"
			message="well yeah, there was chance to kill there for sure"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Blackadder"
			message="I'm at -44% inflicted"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Junkie has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Blackadder"
			message="the average damage was 36, and I didn't use my poacher"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="18,18,18,17,17,16,16,15"
			y="19,18,17,17,16,15,14,14"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="9,8,7,7,7,8,9"
			y="11,10,10,9,8,7,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="13,12,11,10,9,9"
			y="11,10,11,11,11,10"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="9"
				y="10"
			[/source]
			[destination]
				x="9"
				y="9"
			[/destination]
		[/attack]
		[random]
			value="20791"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="25086"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="22770"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="4685"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Stannis has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="9"
				y="8"
			[/source]
			[destination]
				x="9"
				y="9"
			[/destination]
		[/attack]
		[random]
			value="19283"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="2609"
			[results]
				chance="30"
				damage="8"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="26496"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="10492"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="20348"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="25483"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Mehos has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Orange_Dude"
			message="so yeah, that was about 50% than id say...."
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="11,12,13,14,15,16"
			y="11,10,11,10,10,9"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,11"
			y="10,11"
		[/move]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Blackadder"
			message="yeah"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="zxa has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="24,25,25,26"
			y="7,8,9,9"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="26"
				y="9"
			[/source]
			[destination]
				x="27"
				y="10"
			[/destination]
		[/attack]
		[random]
			value="2240"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="30865"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="28154"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="18739"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="29,29,28,27"
			y="10,11,11,11"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="27"
				y="11"
			[/source]
			[destination]
				x="27"
				y="10"
			[/destination]
		[/attack]
		[random]
			value="27979"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="21472"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="6191"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="18794"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="7913"
			[results]
				chance="40"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1626"
			[results]
				chance="70"
				damage="3"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="PeterPanTheFirst has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="30,30,29,28"
			y="9,10,11,10"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="28"
				y="10"
			[/source]
			[destination]
				x="27"
				y="10"
			[/destination]
		[/attack]
		[random]
			value="2816"
			[results]
				chance="40"
				damage="5"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Iwonka has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="28,27,26,25,24,24"
			y="9,9,8,8,7,6"
		[/move]
	[/command]
	[command]
		[move]
			x="30,30"
			y="7,8"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="30"
				y="8"
			[/source]
			[destination]
				x="29"
				y="9"
			[/destination]
		[/attack]
		[random]
			value="15553"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="499"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="25,26,26,27,28"
			y="7,7,8,9,9"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="28"
				y="9"
			[/source]
			[destination]
				x="29"
				y="9"
			[/destination]
		[/attack]
		[random]
			value="12754"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="23681"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="16303"
			[results]
				chance="40"
				damage="13"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="roku has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="10,11,12,13,14,15,16,17,17"
			y="8,8,7,7,7,7,6,7,8"
		[/move]
	[/command]
	[command]
		[move]
			x="10,11,11,11,10,9"
			y="9,9,8,7,6,7"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="9"
				y="7"
			[/source]
			[destination]
				x="9"
				y="8"
			[/destination]
		[/attack]
		[random]
			value="25809"
			[results]
				chance="30"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="709"
			[results]
				chance="30"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="12,11,10"
			y="8,9,8"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="10"
				y="8"
			[/source]
			[destination]
				x="9"
				y="8"
			[/destination]
		[/attack]
		[random]
			value="22856"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="25431"
			[results]
				chance="40"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="9475"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="4749"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="10586"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="31009"
			[results]
				chance="40"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="13,12,11,10"
			y="8,7,7,7"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="10"
				y="7"
			[/source]
			[destination]
				x="9"
				y="8"
			[/destination]
		[/attack]
		[random]
			value="23352"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="7789"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="11369"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="9304"
			[results]
				chance="30"
				damage="5"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Kamiljoner has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="9"
				y="9"
			[/source]
			[destination]
				x="9"
				y="10"
			[/destination]
		[/attack]
		[random]
			value="24404"
			[results]
				chance="60"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="11261"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="27286"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="20793"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="27910"
			[results]
				chance="60"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="BURN has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Orange_Dude"
			message="well i definately didnt take that risk on purpose :)"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="26"
				y="10"
			[/source]
			[destination]
				x="27"
				y="11"
			[/destination]
		[/attack]
		[random]
			value="17257"
			[results]
				chance="70"
				damage="2"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="11802"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="22955"
			[results]
				chance="70"
				damage="2"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="2332"
			[results]
				chance="70"
				damage="2"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="24055"
			[results]
				chance="70"
				damage="2"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="laure has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Viritueel has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Trout has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="-PoGoPuSch3L- has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="30,30,30,30,30,30,31"
			y="15,14,13,12,11,10,10"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="24,25,26,27,28,29,30,30"
			y="19,19,18,18,17,17,16,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="11,10,9"
			y="11,11,12"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="9,10,11"
			y="10,10,11"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="15,14,14,13,13,12"
			y="14,13,12,12,11,10"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="16,17,18,19"
			y="9,10,9,9"
		[/move]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="7"
			x="24"
			y="19"
		[/recruit]
		[random]
			value="24664"
		[/random]
		[random]
			value="16174"
		[/random]
		[random]
			value="12955"
		[/random]
		[random]
			value="19384"
		[/random]
		[random]
			value="31911"
		[/random]
		[random]
			value="12725"
		[/random]
		[random]
			value="17644"
		[/random]
		[random]
			value="5712"
		[/random]
		[random]
			value="23165"
		[/random]
		[random]
			value="6298"
		[/random]
		[random]
			value="25413"
		[/random]
		[random]
			value="17774"
		[/random]
		[random]
			value="9449"
		[/random]
		[random]
			value="20292"
		[/random]
		[random]
			value="9666"
			[results]
				checksum="86Wmq3.,tb9Th9Xh+8Om3eb898egWbi26k39>2dlaZge0f-9iPif8c7h8k-+v7e7e8fh18<i8Sem73jI-oaGeRO,h>ybO20xxhh6<5,n30KE4<Yfd6-cbePq5.ql>pFA"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="4"
			x="23"
			y="20"
		[/recruit]
		[random]
			value="9618"
		[/random]
		[random]
			value="28042"
		[/random]
		[random]
			value="16520"
		[/random]
		[random]
			value="7563"
		[/random]
		[random]
			value="16505"
		[/random]
		[random]
			value="13824"
		[/random]
		[random]
			value="21995"
		[/random]
		[random]
			value="25179"
		[/random]
		[random]
			value="28520"
		[/random]
		[random]
			value="3161"
		[/random]
		[random]
			value="6058"
		[/random]
		[random]
			value="1016"
		[/random]
		[random]
			value="13888"
		[/random]
		[random]
			value="5125"
		[/random]
		[random]
			value="20043"
			[results]
				checksum="FIxBwyUzhyBkwVHKQOq5AMPytSNtRJzMRsDuHBtnQvBFyQAVsL8qJTmQQNRqrWuTuTxCUFJDPxfDLuyOdqNHp2JuaZMrXGikJwc0bkdib+c.P93obZj,mcok3b,IXl32"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="ok this is not good i think"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="firas has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="?"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="iur turn is skipped"
			side="1"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="no"
			side="2"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="you haven't taken your turn yet"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="ok..."
			side="1"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="look"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="ah ya now i see"
			side="1"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="all your men are where you left them"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="ok"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="DeadMan has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="noob has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="SiN has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="27"
				y="11"
			[/source]
			[destination]
				x="26"
				y="10"
			[/destination]
		[/attack]
		[random]
			value="12792"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="12751"
			[results]
				chance="70"
				damage="2"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="24657"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="10799"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="20320"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="28,27,26,25,25"
			y="9,9,8,9,10"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="25"
				y="10"
			[/source]
			[destination]
				x="26"
				y="10"
			[/destination]
		[/attack]
		[random]
			value="16118"
			[results]
				chance="40"
				damage="8"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="23259"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="26229"
			[results]
				chance="40"
				damage="8"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="2633"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="23765"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="whatever has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Ralwar has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="26,25,24,23,22"
			y="9,9,8,9,9"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="30,29,28,27"
			y="8,9,9,10"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="27"
				y="10"
			[/source]
			[destination]
				x="26"
				y="10"
			[/destination]
		[/attack]
		[random]
			value="7885"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="20402"
			[results]
				chance="40"
				damage="3"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="3265"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="3579"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="28,28,27,26"
			y="10,9,9,9"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="26"
				y="9"
			[/source]
			[destination]
				x="26"
				y="10"
			[/destination]
		[/attack]
		[random]
			value="7224"
			[results]
				chance="40"
				damage="3"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="augh"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="WishMaster has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="9,10,11,11,12"
			y="7,6,6,5,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="jugador has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,11,12,13,14,15"
			y="7,8,7,7,6,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="9,10,11,12,13,14,15"
			y="9,9,9,8,8,7,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="24,24,24,25,26,26"
			y="6,7,8,9,9,10"
		[/move]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Rebeldi has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="19,19,19,19,19,18,18,17"
			y="9,8,7,6,5,4,3,3"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Talkative has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="30,30,30,30,31"
			y="15,14,13,12,12"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="xplorer has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="24,25,26,27,28,29,30,30"
			y="19,19,18,18,17,17,16,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Drew has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="23,24,25,26,27,28,29,30,31"
			y="20,19,19,18,18,17,17,16,16"
		[/move]
	[/command]
	[command]
		[move]
			x="11,11,12,12,13,14"
			y="11,10,9,8,8,7"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="14"
				y="7"
			[/source]
			[destination]
				x="15"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="7398"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="16571"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="30587"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="3963"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="DiabLy has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="EvilMaster has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="jackryan has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="TURCO has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="12,12,12,12"
			y="10,9,8,7"
		[/move]
	[/command]
	[command]
		[move]
			x="9,10,11"
			y="12,11,11"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Blops has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[recruit]
			value="4"
			x="24"
			y="19"
		[/recruit]
		[random]
			value="19389"
		[/random]
		[random]
			value="24141"
		[/random]
		[random]
			value="28950"
		[/random]
		[random]
			value="32123"
		[/random]
		[random]
			value="23938"
		[/random]
		[random]
			value="29562"
		[/random]
		[random]
			value="32343"
		[/random]
		[random]
			value="27303"
		[/random]
		[random]
			value="25970"
		[/random]
		[random]
			value="17038"
		[/random]
		[random]
			value="23730"
		[/random]
		[random]
			value="27664"
		[/random]
		[random]
			value="3586"
		[/random]
		[random]
			value="15285"
		[/random]
		[random]
			value="11508"
			[results]
				checksum="uyqNVzDO<ExdHrVAAKrGB6qDQPwqLuEDUSNIMADRBGxxpOFSryqC1rOBpDQNRqrWuTuTxCUFJDPxfDLuyOdqNHp2JuaZMrXGikJwc0bkdib+c.P93obZj,mcok3b,IXl"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="CramNiap has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[recruit]
			value="7"
			x="18"
			y="19"
		[/recruit]
		[random]
			value="9225"
		[/random]
		[random]
			value="13758"
		[/random]
		[random]
			value="5997"
		[/random]
		[random]
			value="23403"
		[/random]
		[random]
			value="3073"
		[/random]
		[random]
			value="7548"
		[/random]
		[random]
			value="29833"
		[/random]
		[random]
			value="11609"
		[/random]
		[random]
			value="26546"
		[/random]
		[random]
			value="28222"
		[/random]
		[random]
			value="19971"
		[/random]
		[random]
			value="22501"
		[/random]
		[random]
			value="29787"
		[/random]
		[random]
			value="3991"
		[/random]
		[random]
			value="20280"
			[results]
				checksum="c4ibeoBjPXdN9277b82>Vg,h+ld6d5,0c<W-1<71YYc5-d+8873Gj8ibkh8k-+v7e7e8fh0c<i8Sem73jI-oaGeRO,h>ybO20xxhh6<5,n30KE4<Yfd6-cbfLq5.ql>p"
			[/results]
		[/random]
	[/command]
	[command]
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,11,12"
			y="8,9,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="12"
				y="8"
			[/source]
			[destination]
				x="12"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="10159"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="29058"
			[results]
				chance="70"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="23952"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="20804"
			[results]
				chance="70"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="29102"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Tato has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="martona has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="15,15,14,13,12"
			y="7,6,5,6,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="12"
				y="6"
			[/source]
			[destination]
				x="12"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="13886"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="22265"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="21839"
			[results]
				chance="40"
				damage="10"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="26467"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="20790"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="12,12,11,11"
			y="4,5,6,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="11"
				y="7"
			[/source]
			[destination]
				x="12"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="21841"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="29127"
			[results]
				chance="30"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="25129"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="20324"
			[results]
				chance="30"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="15,14,13,13"
			y="6,5,6,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="13"
				y="7"
			[/source]
			[destination]
				x="12"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="16660"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="24460"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="8329"
			[results]
				chance="40"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="27239"
			[results]
				chance="60"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="12901"
			[results]
				chance="40"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="15819"
			[results]
				chance="40"
				damage="4"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[choose]
			value="0"
		[/choose]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="lucky"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Alexjonder has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="17,17,17,17,17"
			y="8,7,6,5,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Elf has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Arxi has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="25,25,24,23,22,21,20"
			y="10,9,8,8,7,7,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="26,25,24,23,22,22,21"
			y="9,9,8,8,7,6,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Stannis has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="26,26,25,24,23,22"
			y="10,9,9,8,8,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="27,26"
			y="11,10"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="27,26,25"
			y="10,10,10"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="joueur has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="EDF has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="22,22,21,20,19,18"
			y="9,8,8,7,7,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		[move]
			x="18,18,18,18,17,16,16"
			y="19,18,17,16,16,15,14"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="WIF_Galldrian has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="24,24,23,23,23,23,23,23"
			y="19,18,18,17,16,15,14,13"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Plinio has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="31,31,31,30,29,29"
			y="10,9,8,7,7,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Rebeldi has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="31,30,29,28,27,26"
			y="6,5,5,5,6,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Dawantt has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="31,31,31,31,31,31,31"
			y="16,15,14,13,12,11,10"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="G-Grave has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="BlipBlob has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="30,30,30,29,29,29,29,28"
			y="15,14,13,13,12,11,10,9"
		[/move]
	[/command]
	[command]
		[move]
			x="31,31,31,31,30,30,29"
			y="12,11,10,9,8,7,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Lylian has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="a1611 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Calandryl has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="14,15,15,14,13,12"
			y="7,7,6,5,5,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Achilles has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Blackadder"
			message="who's luckY?"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="lutzbox has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Blackadder"
			message="you're lucky"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="me"
			side="1"
		[/speak]
	[/command]
	[command]
		[recruit]
			value="7"
			x="18"
			y="19"
		[/recruit]
		[random]
			value="1521"
		[/random]
		[random]
			value="3344"
		[/random]
		[random]
			value="7585"
		[/random]
		[random]
			value="6804"
		[/random]
		[random]
			value="30325"
		[/random]
		[random]
			value="3737"
		[/random]
		[random]
			value="5893"
		[/random]
		[random]
			value="20132"
		[/random]
		[random]
			value="10962"
		[/random]
		[random]
			value="27671"
		[/random]
		[random]
			value="18956"
		[/random]
		[random]
			value="8531"
		[/random]
		[random]
			value="1207"
		[/random]
		[random]
			value="10446"
		[/random]
		[random]
			value="29683"
			[results]
				checksum="c4jbeoBjPXdN9277b82>Vg,h+ld6d5,0c<W-1<71YYc5-d+8873Gj8ibkh8k-+v7e7e8fh1b<i8Sem73jI-oaGeRO,h0ybO20xxhh6<5-i30KE4<Yfd6-cbeMq5.ql>p"
			[/results]
		[/random]
	[/command]
	[command]
		[recruit]
			value="7"
			x="19"
			y="20"
		[/recruit]
		[random]
			value="25757"
		[/random]
		[random]
			value="18156"
		[/random]
		[random]
			value="14920"
		[/random]
		[random]
			value="590"
		[/random]
		[random]
			value="12574"
		[/random]
		[random]
			value="2163"
		[/random]
		[random]
			value="11732"
		[/random]
		[random]
			value="30598"
		[/random]
		[random]
			value="31007"
		[/random]
		[random]
			value="29620"
		[/random]
		[random]
			value="29576"
		[/random]
		[random]
			value="7241"
		[/random]
		[random]
			value="1150"
		[/random]
		[random]
			value="21220"
		[/random]
		[random]
			value="1875"
			[results]
				checksum="c4jbeoBjPXdN9277b82>Vg,h+ld6d5,0c<W-1<71YYc5-d+8873Gj8ibkh8k-+v7e7e8fh18<i8Sem73jI-oaGeRO,h>ybO20xxhh6<5,n30KE4<Yfd6-cbePq5.ql>p"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="the leveling archer"
			side="1"
		[/speak]
	[/command]
	[command]
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="yep"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Liren has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="12,12,12,11,11"
			y="8,7,6,6,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="11"
				y="5"
			[/source]
			[destination]
				x="12"
				y="4"
			[/destination]
		[/attack]
		[random]
			value="5177"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1953"
			[results]
				chance="70"
				damage="3"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="15232"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="30001"
			[results]
				chance="70"
				damage="3"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="16272"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="12,13,14,14,13"
			y="6,6,5,4,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="13"
				y="4"
			[/source]
			[destination]
				x="12"
				y="4"
			[/destination]
		[/attack]
		[random]
			value="26545"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="15834"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="21094"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="17996"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="16043"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="when the game dropped, I was at -43% and you were at plus 5%"
			side="2"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="up until just now that means that you were holding a 50% margin on me"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Fardeil has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="11,11,10,10,11"
			y="7,6,5,4,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="11"
				y="4"
			[/source]
			[destination]
				x="12"
				y="4"
			[/destination]
		[/attack]
		[random]
			value="10202"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="28695"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="28335"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="5552"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="13,13,13"
			y="7,6,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="13"
				y="5"
			[/source]
			[destination]
				x="12"
				y="4"
			[/destination]
		[/attack]
		[random]
			value="1715"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="32723"
			[results]
				chance="60"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="10348"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="23818"
			[results]
				chance="60"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="28536"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="27798"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="oh yeah"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="17,17,16,15,14,13,12"
			y="4,5,5,6,5,6,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="12"
				y="5"
			[/source]
			[destination]
				x="12"
				y="4"
			[/destination]
		[/attack]
		[random]
			value="20284"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="18662"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="5272"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="17158"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="it's still 50%"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="26,26,26,26,26"
			y="10,9,8,7,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="26"
				y="6"
			[/source]
			[destination]
				x="26"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="2734"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="2735"
			[results]
				chance="70"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="23941"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="31217"
			[results]
				chance="70"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="12505"
			[results]
				chance="30"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="25,25,25,26,27,27"
			y="10,9,8,7,7,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="mauro has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="TanuPoN has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="20,21,22,23,24,25"
			y="6,6,5,5,5,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="25"
				y="5"
			[/source]
			[destination]
				x="26"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="23449"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="23538"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="41"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="18836"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="4775"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="xenon has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="SM_Ile has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Meloon has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="27"
				y="6"
			[/source]
			[destination]
				x="26"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="25615"
			[results]
				chance="30"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="12916"
			[results]
				chance="40"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="7550"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="32638"
			[results]
				chance="40"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="jules has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="22,23,24,25"
			y="7,7,6,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="25"
				y="6"
			[/source]
			[destination]
				x="26"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="1655"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="28211"
			[results]
				chance="60"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="20143"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="31936"
			[results]
				chance="60"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="6427"
			[results]
				chance="30"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="19310"
			[results]
				chance="30"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="martona has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="21,22,23,24,25,26"
			y="6,5,5,4,4,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="26"
				y="4"
			[/source]
			[destination]
				x="26"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="26814"
			[results]
				chance="30"
				damage="5"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[choose]
			value="0"
		[/choose]
	[/command]
	[command]
		sent="yes"
		[move]
			x="18,19,20,21,22,23"
			y="6,7,7,8,8,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Ilusionist has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="jugador has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="oh hey"
			side="2"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="so luck from that foot bap"
			side="2"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="pad"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Kelen has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Liren has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="yeah but overall not that lucky "
			side="1"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="nope"
			side="2"
		[/speak]
	[/command]
	[command]
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="12"
				y="4"
			[/source]
			[destination]
				x="13"
				y="4"
			[/destination]
		[/attack]
		[random]
			value="15719"
			[results]
				chance="30"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="27651"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="21162"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="638"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="icanseeyou has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Chablan has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="union19 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="DAXIONG has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="llhAnny has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Talkative has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Martin_Angel has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="stelzer has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="pako has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Blackadder"
			message="there's a chance of me killing you this turn"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="yeah there is also the foodpad"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Seph_cz has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Blackadder"
			message="it's not huge, but it's there"
			side="2"
		[/speak]
	[/command]
	[command]
		[move]
			x="23,23,23,22,22"
			y="13,12,11,10,9"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="WIF_Xalzar has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="28,27,26,25"
			y="9,10,10,10"
		[/move]
	[/command]
	[command]
		[move]
			x="29,30,31"
			y="6,5,6"
		[/move]
	[/command]
	[command]
		[move]
			x="29,30,31"
			y="7,7,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="youd need all five hits"
			side="1"
		[/speak]
	[/command]
	[command]
		[move]
			x="25,26"
			y="10,10"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Tra66i has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Blackadder"
			message="yep"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Filadeus has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="11,10,9,8,7,6"
			y="11,10,10,9,10,9"
		[/move]
	[/command]
	[command]
		[move]
			x="16,15,14,13,13,12,11"
			y="14,14,13,13,12,11,11"
		[/move]
	[/command]
	[command]
		[move]
			x="18,18,18,17,17,16,16,15"
			y="19,18,17,17,16,15,14,14"
		[/move]
	[/command]
	[command]
		[move]
			x="19,18,18,17,17,16,16,15"
			y="20,19,18,18,17,16,15,15"
		[/move]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="bit less than 8%"
			side="1"
		[/speak]
	[/command]
	[command]
		[recruit]
			value="4"
			x="18"
			y="19"
		[/recruit]
		[random]
			value="13490"
		[/random]
		[random]
			value="23488"
		[/random]
		[random]
			value="12145"
		[/random]
		[random]
			value="16190"
		[/random]
		[random]
			value="32486"
		[/random]
		[random]
			value="944"
		[/random]
		[random]
			value="14143"
		[/random]
		[random]
			value="28480"
		[/random]
		[random]
			value="17892"
		[/random]
		[random]
			value="8692"
		[/random]
		[random]
			value="6652"
		[/random]
		[random]
			value="18604"
		[/random]
		[random]
			value="1525"
		[/random]
		[random]
			value="2304"
		[/random]
		[random]
			value="19038"
			[results]
				checksum="FIxBwyUzhyBkwVHKQOq5AMPytSNtRJzMRsDuHBtnQvBFyQAVsL8qJTmQQNRqrWuTuTxCUEQDPxfDLuyOdqNHp2JuaZMrXGikJwc0bkdib+c.P93obZj,mcpd3b,IXl32"
			[/results]
		[/random]
	[/command]
	[command]
		[recruit]
			value="4"
			x="19"
			y="20"
		[/recruit]
		[random]
			value="20631"
		[/random]
		[random]
			value="14547"
		[/random]
		[random]
			value="27610"
		[/random]
		[random]
			value="23940"
		[/random]
		[random]
			value="15990"
		[/random]
		[random]
			value="14142"
		[/random]
		[random]
			value="444"
		[/random]
		[random]
			value="11442"
		[/random]
		[random]
			value="20913"
		[/random]
		[random]
			value="24959"
		[/random]
		[random]
			value="9315"
		[/random]
		[random]
			value="30913"
		[/random]
		[random]
			value="2228"
		[/random]
		[random]
			value="17697"
		[/random]
		[random]
			value="20667"
			[results]
				checksum="uyqNVzDO<ExdHrVAAKrGB6qDQPwqLuEDUSNIMADRBGxxpOFSryqC1rOBpDQNRqrWuTuTxCUFJDPxfDLuyOdqNHp2JuaZMrXGikJwc0bkdib+c.P93obZj,mcok3b,IXl"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="MarshallDFX has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Bierbrauer has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Taisteluorava has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="not that risky on your part"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="vanderlubbe has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="jugador has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Liren has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="especially since my footpad hit twice"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="thought has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="stelzer has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="26,27,28,29,30,31"
			y="4,5,4,5,4,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="31"
				y="5"
			[/source]
			[destination]
				x="31"
				y="6"
			[/destination]
		[/attack]
		[random]
			value="2644"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="18589"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="11956"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="12472"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="15193"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="23112"
			[results]
				chance="30"
				damage="9"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="26,27,28,29,30"
			y="6,7,6,6,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="30"
				y="5"
			[/source]
			[destination]
				x="31"
				y="6"
			[/destination]
		[/attack]
		[random]
			value="6099"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="17929"
			[results]
				chance="70"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="19611"
			[results]
				chance="30"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="21392"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="9070"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="27,28,29,30,31,32,32"
			y="6,5,5,4,4,4,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="25,24,23,22,21"
			y="6,5,5,4,4"
		[/move]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="holy crap"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="nausea has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="you can afford to recruit?"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="yy has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="made a mistake there"
			side="1"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="I don't believe it!"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="mond has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Adr has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="sure, i saved money at the beginning of the game"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Lord_Chris_ITA has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="yeah I've just gotten you to zero income, haven't put you negative yet"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[recruit]
			value="1"
			x="20"
			y="4"
		[/recruit]
		[random]
			value="3120"
		[/random]
		[random]
			value="8319"
		[/random]
		[random]
			value="12400"
		[/random]
		[random]
			value="15344"
		[/random]
		[random]
			value="16812"
		[/random]
		[random]
			value="26926"
		[/random]
		[random]
			value="29748"
		[/random]
		[random]
			value="2931"
		[/random]
		[random]
			value="9716"
		[/random]
		[random]
			value="23076"
		[/random]
		[random]
			value="1318"
		[/random]
		[random]
			value="30045"
		[/random]
		[random]
			value="14642"
		[/random]
		[random]
			value="14257"
		[/random]
		[random]
			value="2024"
			[results]
				checksum="MjpsyKA8tq1H+rohkH2DZ9>b7j1h.rkiw1-Fek9X9FajMic5Q3Y959Xncn>g+J0<5+3mY8je7a461,hkGw7d1pgHD0ytJwg>n6zuefoWmmRC,xvlCbQ1htCesyckpNss"
			[/results]
		[/random]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="well"
			side="2"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="this turn you're negative"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="12"
				y="5"
			[/source]
			[destination]
				x="12"
				y="4"
			[/destination]
		[/attack]
		[random]
			value="29155"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="5375"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1124"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="9915"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="dethtoll has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="jugador has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="chains has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="hu12 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="13"
				y="4"
			[/source]
			[destination]
				x="12"
				y="4"
			[/destination]
		[/attack]
		[random]
			value="10748"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="28143"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="13277"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="16038"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="4504"
			[results]
				chance="40"
				damage="12"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="smoke em if you've got em"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="11,12"
			y="5,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="13,14,15,16,17,17"
			y="5,5,5,5,5,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="17"
				y="4"
			[/source]
			[destination]
				x="17"
				y="3"
			[/destination]
		[/attack]
		[random]
			value="12057"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="21250"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="8793"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="32373"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="12772"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="28410"
			[results]
				chance="30"
				damage="9"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="11,12,13,14,15,16,17,17"
			y="4,4,5,5,6,6,7,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="brulemeilleur has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="yoroi has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="23,22,22,22"
			y="8,7,6,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="25,24,23,22,21,20,19"
			y="5,5,5,4,4,4,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Sturm has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="26,26,26,26,27,28,28,29"
			y="10,9,8,7,7,6,5,5"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="29"
				y="5"
			[/source]
			[destination]
				x="30"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="13551"
			[results]
				chance="70"
				damage="8"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="14292"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="11545"
			[results]
				chance="70"
				damage="8"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="31,31,31,32,33,33"
			y="10,9,8,7,7,6"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="33"
				y="6"
			[/source]
			[destination]
				x="32"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="15866"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="31394"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="8468"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="7366"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="LordEisen has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="ryanperrault has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="31"
				y="6"
			[/source]
			[destination]
				x="32"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="3078"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="20957"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="19198"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="17873"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="abeto has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="31,30,29"
			y="7,6,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="RyanP has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="TanuPoN has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="18,18,18,17,16,16,16,15,14"
			y="19,18,17,17,16,15,14,14,13"
		[/move]
	[/command]
	[command]
		[move]
			x="19,18,18,17,16,16,15,14,14"
			y="20,19,18,18,17,16,16,15,14"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="jugador has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="15,14,14,14"
			y="14,13,12,11"
		[/move]
	[/command]
	[command]
		[move]
			x="15,15,14,14,13,13,12,12"
			y="15,14,13,12,12,11,10,9"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="nausea has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="11,11,11,11,11"
			y="11,10,9,8,7"
		[/move]
	[/command]
	[command]
		[move]
			x="6,7,8,8,9"
			y="9,9,8,7,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="DZh-AlphaRune has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="xeron has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="7117 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[recruit]
			value="4"
			x="23"
			y="20"
		[/recruit]
		[random]
			value="26509"
		[/random]
		[random]
			value="5536"
		[/random]
		[random]
			value="21061"
		[/random]
		[random]
			value="3624"
		[/random]
		[random]
			value="29110"
		[/random]
		[random]
			value="31578"
		[/random]
		[random]
			value="5042"
		[/random]
		[random]
			value="29775"
		[/random]
		[random]
			value="14648"
		[/random]
		[random]
			value="19245"
		[/random]
		[random]
			value="29809"
		[/random]
		[random]
			value="6056"
		[/random]
		[random]
			value="23468"
		[/random]
		[random]
			value="9882"
		[/random]
		[random]
			value="24848"
			[results]
				checksum="uyqOVzDO<ExdHrVAAKrGB6qDQPwqLuEDUSNIMADRBGxxpOFSryqC1rOBpDQNRqrWuTuTxCUFMDPxfDLuyOdqNHp2JuaZJrXGikJwc0bkdie+c.P93obZj,mcoh3b,IXl"
			[/results]
		[/random]
	[/command]
	[command]
		[recruit]
			value="7"
			x="24"
			y="19"
		[/recruit]
		[random]
			value="12733"
		[/random]
		[random]
			value="13619"
		[/random]
		[random]
			value="18397"
		[/random]
		[random]
			value="17452"
		[/random]
		[random]
			value="20491"
		[/random]
		[random]
			value="4344"
		[/random]
		[random]
			value="11205"
		[/random]
		[random]
			value="24847"
		[/random]
		[random]
			value="5324"
		[/random]
		[random]
			value="4275"
		[/random]
		[random]
			value="25048"
		[/random]
		[random]
			value="16716"
		[/random]
		[random]
			value="1527"
		[/random]
		[random]
			value="15314"
		[/random]
		[random]
			value="18396"
			[results]
				checksum="c4ibeoBjPXdN9277b82>Vg,h+ld6d5,0c<W-1<71YYc5-d+8873Gj8ibkh8k-+v7e7e8fh19<i8Sem73jI-oaGeRO,h>ybO20xxhh6<5-i30KE4<Yfd6-cbeOq5.ql>p"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="KlaW has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[move]
			x="20,19,18"
			y="4,4,3"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="18"
				y="3"
			[/source]
			[destination]
				x="17"
				y="3"
			[/destination]
		[/attack]
		[random]
			value="29428"
			[results]
				chance="30"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="31096"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="28546"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="4882"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="14369"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="finally got a kill"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="19,19,18"
			y="4,3,2"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="13,14,15,16"
			y="4,3,4,3"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="18"
				y="2"
			[/source]
			[destination]
				x="17"
				y="3"
			[/destination]
		[/attack]
		[random]
			value="26866"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="14064"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="11971"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="24400"
			[results]
				chance="30"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="26045"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="17"
				y="4"
			[/source]
			[destination]
				x="17"
				y="3"
			[/destination]
		[/attack]
		[random]
			value="14726"
			[results]
				chance="30"
				damage="9"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="20610"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="12636"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="11372"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="32493"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="6880"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="16"
				y="3"
			[/source]
			[destination]
				x="17"
				y="3"
			[/destination]
		[/attack]
		[random]
			value="12733"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="6617"
			[results]
				chance="30"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="19019"
			[results]
				chance="30"
				damage="16"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[choose]
			value="0"
		[/choose]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="pretty epic game when it takes that long to get a casualty and I'm not out of the game"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="DZh-AlphaRune has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Delek-Ouzken has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="well u got the money, i got the expensive leveled units...."
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="z has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="yep"
			side="2"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="which makes sure you don't get any more money"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="21,20,19,18,17"
			y="4,4,4,3,3"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="12,12,11"
			y="5,4,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="31,31,30,29"
			y="5,4,3,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="29"
				y="4"
			[/source]
			[destination]
				x="29"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="9528"
			[results]
				chance="40"
				damage="9"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="10178"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="20041"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1616"
			[results]
				chance="40"
				damage="9"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="32,32,31,30"
			y="5,4,4,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="30"
				y="4"
			[/source]
			[destination]
				x="29"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="23701"
			[results]
				chance="40"
				damage="7"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="gah!"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="StehendeBiezn has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="laure has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="dodge you fool!"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="22,23,24,25,25,26"
			y="5,6,6,7,8,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="wb has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		[move]
			x="24,24,23,23,23,23"
			y="19,18,18,17,16,15"
		[/move]
	[/command]
	[command]
		[move]
			x="23,23,23,23,23,23,23"
			y="20,19,18,17,16,15,14"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="SmilingCheater has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="33,33,32,31,30,29,28,27,26"
			y="6,7,7,8,8,9,9,10,9"
		[/move]
	[/command]
	[command]
		[move]
			x="29,28,27,26"
			y="6,6,7,7"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="26"
				y="7"
			[/source]
			[destination]
				x="26"
				y="8"
			[/destination]
		[/attack]
		[random]
			value="22157"
			[results]
				chance="60"
				damage="10"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="8666"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="16878"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="15066"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="20654"
			[results]
				chance="60"
				damage="10"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="mond has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="26"
				y="9"
			[/source]
			[destination]
				x="26"
				y="8"
			[/destination]
		[/attack]
		[random]
			value="31995"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="31047"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="14955"
			[results]
				chance="60"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="26865"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Stapi has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Ben_Dover has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Kamiljoner has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Yann4 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="lp has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="14,14,15,16,17"
			y="11,10,10,9,9"
		[/move]
	[/command]
	[command]
		[move]
			x="11,12,13,14,15,16,17"
			y="7,6,7,7,7,6,7"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="17"
				y="7"
			[/source]
			[destination]
				x="17"
				y="8"
			[/destination]
		[/attack]
		[random]
			value="5573"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="3837"
			[results]
				chance="40"
				damage="9"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="7804"
			[results]
				chance="30"
				damage="16"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="30931"
			[results]
				chance="40"
				damage="9"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="31187"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="17"
				y="9"
			[/source]
			[destination]
				x="17"
				y="8"
			[/destination]
		[/attack]
		[random]
			value="24045"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="7024"
			[results]
				chance="40"
				damage="9"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1068"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="11003"
			[results]
				chance="40"
				damage="9"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="16930"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="phew..."
			side="1"
		[/speak]
	[/command]
	[command]
		[move]
			x="22,23,24,25"
			y="9,9,8,8"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="25"
				y="8"
			[/source]
			[destination]
				x="26"
				y="8"
			[/destination]
		[/attack]
		[random]
			value="17625"
			[results]
				chance="60"
				damage="7"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="christ!@"
			side="2"
		[/speak]
	[/command]
	[command]
		[move]
			x="14,14,14,14,15,16"
			y="13,12,11,10,10,9"
		[/move]
	[/command]
	[command]
		[move]
			x="14,14,13,13,12,11,11,10"
			y="14,13,13,12,11,11,10,9"
		[/move]
	[/command]
	[command]
		[move]
			x="12,11,10"
			y="9,9,8"
		[/move]
	[/command]
	[command]
		[recruit]
			value="4"
			x="18"
			y="19"
		[/recruit]
		[random]
			value="18605"
		[/random]
		[random]
			value="5670"
		[/random]
		[random]
			value="6591"
		[/random]
		[random]
			value="15954"
		[/random]
		[random]
			value="10289"
		[/random]
		[random]
			value="29375"
		[/random]
		[random]
			value="3524"
		[/random]
		[random]
			value="21271"
		[/random]
		[random]
			value="27813"
		[/random]
		[random]
			value="7515"
		[/random]
		[random]
			value="9546"
		[/random]
		[random]
			value="18610"
		[/random]
		[random]
			value="20619"
		[/random]
		[random]
			value="14272"
		[/random]
		[random]
			value="18198"
			[results]
				checksum="uyqNVzDO<ExdHrVAAKrGB6qDQPwqLuEDUSNIMADRBGxxpOFSryqC1rOBpDQNRqrWuTuTxCUEQDPxfDLuyOdqNHp2JuaZMrXGikJwc0bkdib+c.P93obZj,mcpd3b,IXl"
			[/results]
		[/random]
	[/command]
	[command]
		[recruit]
			value="4"
			x="19"
			y="20"
		[/recruit]
		[random]
			value="11633"
		[/random]
		[random]
			value="6088"
		[/random]
		[random]
			value="26350"
		[/random]
		[random]
			value="15085"
		[/random]
		[random]
			value="30413"
		[/random]
		[random]
			value="26376"
		[/random]
		[random]
			value="2163"
		[/random]
		[random]
			value="29901"
		[/random]
		[random]
			value="2340"
		[/random]
		[random]
			value="7776"
		[/random]
		[random]
			value="3222"
		[/random]
		[random]
			value="2594"
		[/random]
		[random]
			value="808"
		[/random]
		[random]
			value="9352"
		[/random]
		[random]
			value="14014"
			[results]
				checksum="uyqOVzDO<ExdHrVAAKrGB6qDQPwqLuEDUSNIMADRBGxxpOFSryqC1rOBpDQNRqrWuTuTxCUFIDPxfDLuyOdqNHp2JuaZMrXGikJwc0bkdie+c.P93obZj,mcol3b,IXl"
			[/results]
		[/random]
	[/command]
	[command]
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="that's two bloody casualties right there"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="18,18,18,18,17"
			y="2,3,4,5,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="17"
				y="6"
			[/source]
			[destination]
				x="17"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="18722"
			[results]
				chance="40"
				damage="13"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[choose]
			value="0"
		[/choose]
	[/command]
	[command]
		sent="yes"
		[move]
			x="17,18,19,20,21,22"
			y="8,7,8,8,9,9"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="dirzy33 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Schwarzbier has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="17,17,17,17,17"
			y="4,5,6,7,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="17"
				y="8"
			[/source]
			[destination]
				x="17"
				y="9"
			[/destination]
		[/attack]
		[random]
			value="8839"
			[results]
				chance="40"
				damage="7"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="and a lost house"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Punkka has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="damn"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="18,19,20,21,22"
			y="3,3,3,4,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="11,12,12,12,12,12,12,12,11"
			y="4,4,5,6,7,8,9,10,11"
		[/move]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="gah!"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="make that 2 ;)"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Polycentropsis has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="12,12,11,11,10"
			y="4,5,6,7,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="10"
				y="7"
			[/source]
			[destination]
				x="9"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="8678"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="21111"
			[results]
				chance="50"
				damage="3"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="4461"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="13337"
			[results]
				chance="50"
				damage="3"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="31415"
			[results]
				chance="30"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="22885"
			[results]
				chance="50"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="16,15,14,13,12"
			y="3,4,4,5,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="29,28,27,26,26"
			y="4,4,5,5,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="26"
				y="6"
			[/source]
			[destination]
				x="26"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="8549"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="11176"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="26641"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="20061"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="30,29,28,27,26,25,24"
			y="4,5,5,5,4,5,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="17,18,19,20,21"
			y="3,3,4,4,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="tank has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="31,30,29,28,27,26"
			y="6,5,5,5,5,5"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="26"
				y="7"
			[/source]
			[destination]
				x="26"
				y="6"
			[/destination]
		[/attack]
		[random]
			value="28834"
			[results]
				chance="60"
				damage="8"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="11577"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="13365"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="10271"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="20645"
			[results]
				chance="60"
				damage="8"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="5437"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="28045"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="26"
				y="5"
			[/source]
			[destination]
				x="26"
				y="6"
			[/destination]
		[/attack]
		[random]
			value="14171"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="21062"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="11482"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="26972"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="8966"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="30149"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="23,23,23,23"
			y="14,13,12,11"
		[/move]
	[/command]
	[command]
		[move]
			x="23,23,23,23,22"
			y="15,14,13,12,11"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="DiabLy has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="giocatore has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="time to get out of this damned financial crisis....."
			side="1"
		[/speak]
	[/command]
	[command]
		[move]
			x="10,11,12,13,13,12"
			y="8,9,9,10,11,11"
		[/move]
	[/command]
	[command]
		[move]
			x="9,8,8,8,9,10"
			y="7,7,8,9,10,10"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="10"
				y="10"
			[/source]
			[destination]
				x="11"
				y="11"
			[/destination]
		[/attack]
		[random]
			value="30804"
			[results]
				chance="30"
				damage="10"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="11485"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="28269"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="31975"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="30124"
			[results]
				chance="30"
				damage="10"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="12"
				y="11"
			[/source]
			[destination]
				x="11"
				y="11"
			[/destination]
		[/attack]
		[random]
			value="24496"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="31800"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="24517"
			[results]
				chance="30"
				damage="13"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="reini has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="16,15,14,13,12,11"
			y="9,10,10,11,10,11"
		[/move]
	[/command]
	[command]
		[move]
			x="10,9,8,7,6"
			y="9,10,9,9,8"
		[/move]
	[/command]
	[command]
		[move]
			x="18,18,18,17,16,16,16,15,14"
			y="19,18,17,17,16,15,14,14,13"
		[/move]
	[/command]
	[command]
		[move]
			x="19,18,18,18,18,17,16,16"
			y="20,19,18,17,16,16,15,14"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="alexis has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="25,25"
			y="8,7"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="25"
				y="7"
			[/source]
			[destination]
				x="26"
				y="6"
			[/destination]
		[/attack]
		[random]
			value="25909"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="10951"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="31409"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="20949"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="25869"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="14592"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="26,26,25"
			y="9,8,8"
		[/move]
	[/command]
	[command]
		[recruit]
			value="7"
			x="18"
			y="19"
		[/recruit]
		[random]
			value="10762"
		[/random]
		[random]
			value="11065"
		[/random]
		[random]
			value="24955"
		[/random]
		[random]
			value="31481"
		[/random]
		[random]
			value="31906"
		[/random]
		[random]
			value="17514"
		[/random]
		[random]
			value="8503"
		[/random]
		[random]
			value="24340"
		[/random]
		[random]
			value="5795"
		[/random]
		[random]
			value="4783"
		[/random]
		[random]
			value="5072"
		[/random]
		[random]
			value="22603"
		[/random]
		[random]
			value="31795"
		[/random]
		[random]
			value="8612"
		[/random]
		[random]
			value="3653"
			[results]
				checksum="96Wmq3.,tb9Th9Xh+8Om3eb898egWbi26k39>2dlaZge0f-9iPif8c7h8k-+v7e7e8fh0c<i8Sem73jI-oaGeRO,h>ybO20xxhh6<5,n30KE4<Yfd6-cbfLq5.ql>pFA"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Ilusionist has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[recruit]
			value="7"
			x="19"
			y="20"
		[/recruit]
		[random]
			value="26721"
		[/random]
		[random]
			value="20984"
		[/random]
		[random]
			value="14494"
		[/random]
		[random]
			value="341"
		[/random]
		[random]
			value="15462"
		[/random]
		[random]
			value="27141"
		[/random]
		[random]
			value="10596"
		[/random]
		[random]
			value="9348"
		[/random]
		[random]
			value="4508"
		[/random]
		[random]
			value="20569"
		[/random]
		[random]
			value="24009"
		[/random]
		[random]
			value="1398"
		[/random]
		[random]
			value="22441"
		[/random]
		[random]
			value="6607"
		[/random]
		[random]
			value="11209"
			[results]
				checksum="c4jbeoBjPXdN9277b82>Vg,h+ld6d5,0c<W-1<71YYc5-d+8873Gj8ibkh8k-+v7e7e8fh1k<i8Sem73jI-oaGeRO,h0ybO20xxhh6<5,n30KE4<Yfd6-cbeDq5.ql>p"
			[/results]
		[/random]
	[/command]
	[command]
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Punkka has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="not if I can help it"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Grond has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="10,10,9,8,8,9"
			y="7,8,9,9,10,11"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="9"
				y="11"
			[/source]
			[destination]
				x="10"
				y="10"
			[/destination]
		[/attack]
		[random]
			value="23993"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="6970"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="6274"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="9049"
			[results]
				chance="70"
				damage="2"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="6376"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="11818"
			[results]
				chance="70"
				damage="2"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Mamlock has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="tank has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="jrika has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Loulou has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="cassano99 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Waaagh has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="pwnd has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="brulemeilleur has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="dethtoll has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="ArdentFist has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="jacki has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="17,18,19,20,21,22,23"
			y="6,5,5,4,4,4,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="22,23,23,23,24"
			y="4,5,6,7,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="24"
				y="7"
			[/source]
			[destination]
				x="25"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="27920"
			[results]
				chance="40"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="25923"
			[results]
				chance="70"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="9741"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="1155"
			[results]
				chance="70"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="11199"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Wrath has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="21,22,23,24,24"
			y="4,4,5,5,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="24"
				y="6"
			[/source]
			[destination]
				x="25"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="2671"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="4267"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="7092"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="2547"
			[results]
				chance="60"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="21470"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="31239"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="26"
				y="6"
			[/source]
			[destination]
				x="25"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="9956"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="27440"
			[results]
				chance="60"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="25801"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="17867"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="31908"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="25283"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="24,25"
			y="5,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="25"
				y="6"
			[/source]
			[destination]
				x="25"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="27583"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="13682"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="4467"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="28698"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Lamenoire has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="26"
				y="7"
			[/source]
			[destination]
				x="26"
				y="6"
			[/destination]
		[/attack]
		[random]
			value="2215"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="10025"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="1174"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="9459"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="2647"
			[results]
				chance="60"
				damage="6"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[choose]
			value="0"
		[/choose]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Jaguar has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="petitemerde has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="26,25"
			y="5,5"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="25"
				y="5"
			[/source]
			[destination]
				x="25"
				y="6"
			[/destination]
		[/attack]
		[random]
			value="3266"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="16674"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="25738"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="28706"
			[results]
				chance="30"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="23,24,25,25,24"
			y="11,10,10,9,8"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="24"
				y="8"
			[/source]
			[destination]
				x="24"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="16897"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="6859"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="12950"
			[results]
				chance="70"
				damage="2"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="jacki has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="16,15,14,13,12,11,10"
			y="14,14,13,13,12,12,11"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="10"
				y="11"
			[/source]
			[destination]
				x="9"
				y="11"
			[/destination]
		[/attack]
		[random]
			value="29748"
			[results]
				chance="70"
				damage="2"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="8852"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="6651"
			[results]
				chance="70"
				damage="2"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="14,13,12,11,10,9"
			y="13,13,12,12,12,12"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="9"
				y="12"
			[/source]
			[destination]
				x="9"
				y="11"
			[/destination]
		[/attack]
		[random]
			value="9847"
			[results]
				chance="70"
				damage="2"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="11951"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="21595"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Vamp has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="11,11,10,9"
			y="11,10,9,10"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="9"
				y="10"
			[/source]
			[destination]
				x="9"
				y="11"
			[/destination]
		[/attack]
		[random]
			value="3198"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="31641"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="22155"
			[results]
				chance="70"
				damage="2"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="milan111 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Hilquias has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Shura has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="6,7,7,7,8"
			y="8,9,10,11,11"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="8"
				y="11"
			[/source]
			[destination]
				x="9"
				y="11"
			[/destination]
		[/attack]
		[random]
			value="12625"
			[results]
				chance="70"
				damage="2"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="14590"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="30461"
			[results]
				chance="70"
				damage="2"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="10,10,9,8,8"
			y="10,9,9,9,10"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="8"
				y="10"
			[/source]
			[destination]
				x="9"
				y="11"
			[/destination]
		[/attack]
		[random]
			value="32379"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="12880"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="31113"
			[results]
				chance="70"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="10085"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="11959"
			[results]
				chance="70"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="29600"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="knight_ruben has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="AssassinT90 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="12,11"
			y="11,11"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Marcsman has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Waaagh1 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="18,19,20,20,21,22,22"
			y="19,19,18,17,17,16,15"
		[/move]
	[/command]
	[command]
		[move]
			x="19,19,20,21,21,22,22,23"
			y="20,19,18,18,17,16,15,15"
		[/move]
	[/command]
	[command]
		[recruit]
			value="4"
			x="24"
			y="19"
		[/recruit]
		[random]
			value="4955"
		[/random]
		[random]
			value="14072"
		[/random]
		[random]
			value="66"
		[/random]
		[random]
			value="3381"
		[/random]
		[random]
			value="23639"
		[/random]
		[random]
			value="15279"
		[/random]
		[random]
			value="27488"
		[/random]
		[random]
			value="5963"
		[/random]
		[random]
			value="13824"
		[/random]
		[random]
			value="14384"
		[/random]
		[random]
			value="1443"
		[/random]
		[random]
			value="5234"
		[/random]
		[random]
			value="26880"
		[/random]
		[random]
			value="29973"
		[/random]
		[random]
			value="19852"
			[results]
				checksum="uyqNVzDO<ExdHrVAAKrGB6qDQPwqLuEDUSNIMADRBGxxpOFSryqC1rOBpDQNRqrWuTuTxCUEQDPxfDLuyOdqNHp2JuaZJrXGikJwc0bkdie+c.P93obZj,mcpd3b,IXl"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="25,26,26,26,26"
			y="7,7,8,9,10"
		[/move]
	[/command]
	[command]
		[move]
			x="22,21,20,19,19"
			y="11,12,11,11,10"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="DiabLy has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="25,25"
			y="8,7"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="25"
				y="7"
			[/source]
			[destination]
				x="24"
				y="6"
			[/destination]
		[/attack]
		[random]
			value="28666"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="18184"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="30616"
			[results]
				chance="60"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="12899"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="12578"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="7786"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="exciting!"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Glouk has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="24,25"
			y="7,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="25"
				y="8"
			[/source]
			[destination]
				x="26"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="3659"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="32496"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="16665"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="19866"
			[results]
				chance="70"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="11213"
			[results]
				chance="40"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="21234"
			[results]
				chance="70"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="23,24,25,26,27"
			y="5,5,6,6,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="27"
				y="7"
			[/source]
			[destination]
				x="26"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="3586"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="12019"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="21173"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="22527"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="7015"
			[results]
				chance="40"
				damage="14"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="5554"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Punkka has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Blademaster has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="dozen has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="25,24"
			y="6,5"
		[/move]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="who's afraid of the big bad rogue?"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Tards has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="12,13,14,15,16,17,18,19"
			y="4,5,5,6,5,6,5,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="17,18,19,20,20"
			y="8,7,8,8,9"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="20"
				y="9"
			[/source]
			[destination]
				x="19"
				y="10"
			[/destination]
		[/attack]
		[random]
			value="1381"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="32386"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="16745"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="20676"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="quest has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="eltron69 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="9"
				y="11"
			[/source]
			[destination]
				x="8"
				y="10"
			[/destination]
		[/attack]
		[random]
			value="3226"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="14348"
			[results]
				chance="70"
				damage="2"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="8851"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="11240"
			[results]
				chance="70"
				damage="2"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="11324"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="12470"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		[move]
			x="9,10,11,11,12,12,12,12"
			y="10,9,9,8,7,6,5,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="aj"
			side="1"
		[/speak]
	[/command]
	[command]
		[move]
			x="10,11,11,10,9"
			y="11,11,10,9,10"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="9"
				y="10"
			[/source]
			[destination]
				x="9"
				y="11"
			[/destination]
		[/attack]
		[random]
			value="14941"
			[results]
				chance="70"
				damage="2"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="16058"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="27663"
			[results]
				chance="70"
				damage="2"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="InSan1tY has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="11,10"
			y="11,10"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="10"
				y="10"
			[/source]
			[destination]
				x="9"
				y="11"
			[/destination]
		[/attack]
		[random]
			value="18071"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="9483"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="3366"
			[results]
				chance="70"
				damage="5"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="yidengyi has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="forgot to move leader..."
			side="1"
		[/speak]
	[/command]
	[command]
		[move]
			x="8,9,10,11"
			y="10,11,11,11"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Nero has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Blackadder"
			message="?"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Blackadder"
			message="aj?"
			side="2"
		[/speak]
	[/command]
	[command]
		[move]
			x="9,10,11,12,12,12,13,14,15"
			y="12,11,11,10,9,8,8,7,7"
		[/move]
	[/command]
	[command]
		[move]
			x="8,9,10,11,12,12,13,13,14"
			y="11,11,10,10,9,8,8,7,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="lankabel has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="fakivaki has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Blackadder"
			message="that's cool"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Blackadder"
			message="I won't kill it"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="MoaB has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="yidengyi has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="well if u dont want to :)"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="xekaltsotos has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="25,26,27,28,29,30,31"
			y="5,4,5,5,5,5,6"
		[/move]
	[/command]
	[command]
		[move]
			x="26,26,27,28,29,30,31"
			y="7,8,9,9,10,10,10"
		[/move]
	[/command]
	[command]
		[move]
			x="25,26"
			y="7,6"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="26"
				y="6"
			[/source]
			[destination]
				x="27"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="31363"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="29796"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="10864"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="8009"
			[results]
				chance="40"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="9429"
			[results]
				chance="40"
				damage="4"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="WIF_GalldriaN has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="24,25"
			y="8,9"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="25"
				y="9"
			[/source]
			[destination]
				x="25"
				y="8"
			[/destination]
		[/attack]
		[random]
			value="3352"
			[results]
				chance="70"
				damage="2"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="994"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="8071"
			[results]
				chance="70"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Tasssadar has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="23,23,23,23,23"
			y="15,14,13,12,11"
		[/move]
	[/command]
	[command]
		[move]
			x="22,23,23,23,24,24"
			y="15,15,14,13,12,11"
		[/move]
	[/command]
	[command]
		[move]
			x="24,24,23,23,23,23,23,23"
			y="19,18,18,17,16,15,14,13"
		[/move]
	[/command]
	[command]
		[recruit]
			value="4"
			x="24"
			y="19"
		[/recruit]
		[random]
			value="3537"
		[/random]
		[random]
			value="15726"
		[/random]
		[random]
			value="3399"
		[/random]
		[random]
			value="16156"
		[/random]
		[random]
			value="19763"
		[/random]
		[random]
			value="24859"
		[/random]
		[random]
			value="12292"
		[/random]
		[random]
			value="5077"
		[/random]
		[random]
			value="25967"
		[/random]
		[random]
			value="28014"
		[/random]
		[random]
			value="17214"
		[/random]
		[random]
			value="3029"
		[/random]
		[random]
			value="22959"
		[/random]
		[random]
			value="10292"
		[/random]
		[random]
			value="18331"
			[results]
				checksum="uyqOVzDO<ExdHrVAAKrGB6qDQPwqLuEDUSNIMADRBGxxpOFSryqC1rOBpDQNRqrWuTuTxCUFIDPxfDLuyOdqNHp2JuaZMrXGikJwc0bkdie+c.P93obZj,mcol3b,IXl"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="player2 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[recruit]
			value="4"
			x="23"
			y="20"
		[/recruit]
		[random]
			value="21913"
		[/random]
		[random]
			value="15852"
		[/random]
		[random]
			value="12254"
		[/random]
		[random]
			value="10362"
		[/random]
		[random]
			value="9664"
		[/random]
		[random]
			value="16720"
		[/random]
		[random]
			value="6765"
		[/random]
		[random]
			value="6619"
		[/random]
		[random]
			value="4269"
		[/random]
		[random]
			value="19605"
		[/random]
		[random]
			value="30905"
		[/random]
		[random]
			value="20963"
		[/random]
		[random]
			value="30223"
		[/random]
		[random]
			value="24895"
		[/random]
		[random]
			value="9352"
			[results]
				checksum="uyqNVzDO<ExdHrVAAKrGB6qDQPwqLuEDUSNIMADRBGxxpOFSryqC1rOBpDQNRqrWuTuTxCUFGDPxfDLuyOdqNHp2JuaZJrXGikJwc0bkdib+c.P93obZj,mcoj3b,IXl"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Stravius has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="lol im so out numbered :)"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="RNGGOD has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="let's say I don't want to"
			side="2"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="oh "
			side="2"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="forgot to take a village"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="ah yes"
			side="1"
		[/speak]
	[/command]
	[command]
		async="yes"
		[rename]
			name="Miloniver the forgetful"
			x="19"
			y="10"
		[/rename]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="kubisak has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Blademaster1 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="20"
				y="9"
			[/source]
			[destination]
				x="19"
				y="10"
			[/destination]
		[/attack]
		[random]
			value="29227"
			[results]
				chance="40"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="22243"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="30033"
			[results]
				chance="40"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="5101"
			[results]
				chance="40"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="24,23,22,21,20,20,19"
			y="5,6,6,7,7,8,9"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="19"
				y="9"
			[/source]
			[destination]
				x="19"
				y="10"
			[/destination]
		[/attack]
		[random]
			value="25218"
			[results]
				chance="40"
				damage="6"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="and now she's miloniver the Dead"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="evita has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="stupid girl"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="hostO has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="K has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="27,27,26"
			y="7,6,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="19,20,21,22,23,24,25,26"
			y="6,6,7,7,8,7,7,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="26"
				y="7"
			[/source]
			[destination]
				x="26"
				y="6"
			[/destination]
		[/attack]
		[random]
			value="11557"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="13093"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="25217"
			[results]
				chance="40"
				damage="18"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="15955"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="11710"
			[results]
				chance="40"
				damage="18"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="berg has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="your luck"
			side="2"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="it kills me"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="eric has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="kavalji has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="24,24,25,25"
			y="6,5,5,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="HAOS has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="22,22"
			y="9,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="bohdan has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="25,24,23,23,22"
			y="8,7,8,9,9"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="22,21,20,19"
			y="8,8,8,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Bohemmoth has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="shaade has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="galldrian has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="26,25,24"
			y="5,6,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[move]
			x="19,18,17"
			y="8,7,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Bowflan has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="looks like you level another man"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="galldrian has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="seems to be the case"
			side="1"
		[/speak]
	[/command]
	[command]
		[move]
			x="12,13,14,15,16,17,17,17"
			y="4,5,5,5,5,5,4,3"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Louloupidou has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="10,11,12,12,13,14,15,16"
			y="10,10,9,8,8,7,7,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="HonkiTonk has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Mondien has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="at least i go done elite style :)"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Sturm has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="31,30,29,28,27,26"
			y="6,5,5,5,6,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="krav-maga has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="26"
				y="6"
			[/source]
			[destination]
				x="26"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="4707"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="5267"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="20461"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="3075"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="16222"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="THerian has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="26,27,28,29,29,29,28,27"
			y="10,10,9,9,8,7,6,7"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="27"
				y="7"
			[/source]
			[destination]
				x="26"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="22056"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="7237"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="19005"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="15434"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="19089"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Blademaster has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Pain has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="24,24,25,26,26"
			y="11,10,10,9,8"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="26"
				y="8"
			[/source]
			[destination]
				x="26"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="16435"
			[results]
				chance="40"
				damage="13"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="10240"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="18130"
			[results]
				chance="40"
				damage="13"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="30619"
			[results]
				chance="40"
				damage="9"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="11158"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="24916"
			[results]
				chance="40"
				damage="9"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="day has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="23,24,25,25,25"
			y="11,10,10,9,8"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="25"
				y="8"
			[/source]
			[destination]
				x="26"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="4000"
			[results]
				chance="40"
				damage="10"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Louloupidou has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="25,25,25,26,26,26"
			y="9,8,7,6,5,4"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="26"
				y="4"
			[/source]
			[destination]
				x="25"
				y="4"
			[/destination]
		[/attack]
		[random]
			value="24836"
			[results]
				chance="60"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="2774"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="24646"
			[results]
				chance="60"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="10996"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="11721"
			[results]
				chance="40"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="6673"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Therian has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="oyuncu has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="15,16,17,18,19,20,21,22,23"
			y="7,6,6,5,5,4,4,4,5"
		[/move]
	[/command]
	[command]
		[move]
			x="14,15,16,17,18,19,20,21,22"
			y="6,6,5,5,5,5,4,4,4"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="23"
				y="5"
			[/source]
			[destination]
				x="24"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="5928"
			[results]
				chance="30"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="4712"
			[results]
				chance="30"
				damage="5"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="8190"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="12142"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="20075"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Nubie has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="24,24,23,23,23,23,23"
			y="19,18,18,17,16,15,14"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Misa has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="23,24,24,24,25,25"
			y="13,12,11,10,10,9"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Sturm has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="23,23,23,23,23,23,23,23"
			y="20,19,18,17,16,15,14,13"
		[/move]
	[/command]
	[command]
		[recruit]
			value="7"
			x="24"
			y="19"
		[/recruit]
		[random]
			value="15989"
		[/random]
		[random]
			value="13022"
		[/random]
		[random]
			value="434"
		[/random]
		[random]
			value="25404"
		[/random]
		[random]
			value="7682"
		[/random]
		[random]
			value="13104"
		[/random]
		[random]
			value="14356"
		[/random]
		[random]
			value="23885"
		[/random]
		[random]
			value="3684"
		[/random]
		[random]
			value="9097"
		[/random]
		[random]
			value="2772"
		[/random]
		[random]
			value="16627"
		[/random]
		[random]
			value="31235"
		[/random]
		[random]
			value="7740"
		[/random]
		[random]
			value="24132"
			[results]
				checksum="c4jbeoBjPXdN9277b82>Vg,h+ld6d5,0c<W-1<71YYc5-d+8873Gj8ibkh8k-+v7e7e8fh18<i8Sem73jI-oaGeRO,h>ybO20xxhh6<5,n30KE4<Yfd6-cbePq5.ql>p"
			[/results]
		[/random]
	[/command]
	[command]
		[recruit]
			value="7"
			x="23"
			y="20"
		[/recruit]
		[random]
			value="866"
		[/random]
		[random]
			value="32224"
		[/random]
		[random]
			value="114"
		[/random]
		[random]
			value="16457"
		[/random]
		[random]
			value="4366"
		[/random]
		[random]
			value="30995"
		[/random]
		[random]
			value="20599"
		[/random]
		[random]
			value="166"
		[/random]
		[random]
			value="24308"
		[/random]
		[random]
			value="420"
		[/random]
		[random]
			value="568"
		[/random]
		[random]
			value="8770"
		[/random]
		[random]
			value="2498"
		[/random]
		[random]
			value="13723"
		[/random]
		[random]
			value="8051"
			[results]
				checksum="96Wmq3.,tb9Th9Xh+8Om3eb898egWbi26k39>2dlaZge0f-9iPif8c7h8k-+v7e7e8fh1l<i8Sem73jI-oaGeRO,h0ybO20xxhh6<5-i30KE4<Yfd6-cbeCq5.ql>pFA"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="WinterKnight has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="misstroprichetique has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[countdown_update]
			team="2"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="yep"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Bolisimo_VonSwaygo has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Daeroth has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Blue has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="I figured this would be a good map to HODOR on."
			side="2"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="It seems I was right."
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="i regret not having gone fullly hodor"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Pain has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="yes"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="but well, its also not my style"
			side="1"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="not mine really"
			side="2"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="I made a few mistakes"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="7untiltheend7 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="the poachers did very little for my cause"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Blood has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="well my trapper where not a good choice"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="TYPEMOON has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="ethanwai has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="eh"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="19,20,21,22,23,24"
			y="9,8,8,8,8,8"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="24"
				y="8"
			[/source]
			[destination]
				x="25"
				y="8"
			[/destination]
		[/attack]
		[random]
			value="17485"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="16433"
			[results]
				chance="40"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[choose]
			value="0"
		[/choose]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="7untiltheend7 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="I think the guards men cost you big time"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="thermophilus has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Medavoj has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="too slow"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="yeah true"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="desrtfox has logged into the lobby"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="and not enough damage potential"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="cheng has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="well that was the non hodor part... just thought i could use them as a slow sustained offence"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="24,25,25,26"
			y="5,6,7,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="26"
				y="7"
			[/source]
			[destination]
				x="25"
				y="8"
			[/destination]
		[/attack]
		[random]
			value="28910"
			[results]
				chance="40"
				damage="23"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Hin has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="bam :)"
			side="1"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="oh hell"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="mpwarden has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Killer595 has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="PaX has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="22,22,22,22,23"
			y="9,8,7,6,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="23"
				y="6"
			[/source]
			[destination]
				x="23"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="6836"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="25429"
			[results]
				chance="70"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="15450"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="23757"
			[results]
				chance="70"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="22174"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="20,20,20,21,21,22"
			y="9,8,7,7,6,5"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="22"
				y="5"
			[/source]
			[destination]
				x="23"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="19192"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="19687"
			[results]
				chance="60"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="29714"
			[results]
				chance="30"
				damage="9"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="23104"
			[results]
				chance="60"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="10834"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="14718"
			[results]
				chance="30"
				damage="9"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[move]
			x="25,24"
			y="4,4"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="24"
				y="4"
			[/source]
			[destination]
				x="23"
				y="5"
			[/destination]
		[/attack]
		[random]
			value="11079"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="21539"
			[results]
				chance="50"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="18199"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="30618"
			[results]
				chance="50"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="28391"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="2965"
			[results]
				chance="30"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="lol"
			side="1"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="oops?"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[move]
			x="17,18,18,17"
			y="8,7,6,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[attack]
			defender_weapon="-1"
			weapon="1"
			[source]
				x="17"
				y="6"
			[/source]
			[destination]
				x="16"
				y="6"
			[/destination]
		[/attack]
		[random]
			value="30513"
			[results]
				chance="40"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="9417"
			[results]
				chance="40"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		sent="yes"
		[countdown_update]
			team="1"
			value="270000"
		[/countdown_update]
	[/command]
	[command]
		sent="yes"
		[end_turn]
		[/end_turn]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message=">:3"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="ok gg"
			side="1"
		[/speak]
	[/command]
	[command]
		[move]
			x="26,26"
			y="8,9"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="1"
			weapon="1"
			[source]
				x="27"
				y="7"
			[/source]
			[destination]
				x="26"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="12716"
			[results]
				chance="40"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="26649"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="14731"
			[results]
				chance="40"
				damage="7"
				dies="no"
				hits="yes"
			[/results]
		[/random]
		[random]
			value="25972"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="3330"
			[results]
				chance="40"
				damage="6"
				dies="no"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="31,30,29,28,27,26"
			y="10,10,10,9,9,8"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="26"
				y="8"
			[/source]
			[destination]
				x="26"
				y="7"
			[/destination]
		[/attack]
		[random]
			value="21581"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="30399"
			[results]
				chance="40"
				damage="0"
				dies="no"
				hits="no"
			[/results]
		[/random]
		[random]
			value="22734"
			[results]
				chance="40"
				damage="19"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[move]
			x="26,26"
			y="9,10"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="poteha has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="11,12,12,12,13,14,15"
			y="11,10,9,8,8,7,7"
		[/move]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="yeah rogues kick ass"
			side="1"
		[/speak]
	[/command]
	[command]
		[move]
			x="9,10,11,12,13,13,14"
			y="10,9,9,8,8,7,6"
		[/move]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Jaguar has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Blackadder"
			message="i was hopign to get an assasin"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Blackadder"
			message="but I doubt your leader would survive your turn even if I dont' kill it."
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="well i guess if the game hade gone a little longer one would have appeared"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Blackadder"
			message="yep"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="WIF_Gadenz has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Dragon has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Lester_Burnham has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Blackadder"
			message="'"
			side="2"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="mirosol has logged into the lobby"
		[/speak]
	[/command]
	[command]
		sent="yes"
		[speak]
			id="server"
			message="Samurai has logged into the lobby"
		[/speak]
	[/command]
	[command]
		[move]
			x="26,25"
			y="4,5"
		[/move]
	[/command]
	[command]
		[attack]
			defender_weapon="0"
			weapon="0"
			[source]
				x="25"
				y="5"
			[/source]
			[destination]
				x="24"
				y="4"
			[/destination]
		[/attack]
		[random]
			value="9010"
			[results]
				chance="50"
				damage="6"
				dies="yes"
				hits="yes"
			[/results]
		[/random]
	[/command]
	[command]
		[choose]
			value="0"
		[/choose]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="the dodge"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="ok just finish me please :)"
			side="1"
		[/speak]
	[/command]
	[command]
		sent="yes"
		undo="no"
		[speak]
			id="Orange_Dude_______"
			message="gg"
			side="1"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="the doge made this game strange"
			side="1"
		[/speak]
	[/command]
	[command]
		undo="no"
		[speak]
			id="Blackadder"
			message="gg"
			side="1"
		[/speak]
	[/command]
[/replay]
[snapshot]
[/snapshot]
[replay_start]
	completion="running"
	current_tod="0"
	experience_modifier="70"
	id="multiplayer_Basilisk"
	map_data="border_size=1
usage=map

_off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , Mm^Xm       , Mm^Xm       , Mm^Xm       , Gs^Fp       , Mm^Xm       , Gs^Fp       , Hh          , Gs^Fms      , Ww          , Ww          , Ww          , Gs^Fp       , Gs^Fms      , Hh          , Mm^Xm       , Gs^Fp       , Mm^Xm       , Mm^Xm       , Mm          , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , Gs^Fp       , Mm          , Gg^Fet      , Mm          , Gs^Fp       , Mm^Xm       , Gs^Fms      , Gg^Ve       , Gg          , Hh          , Mm          , Ww          , Gs^Fp       , Hh          , Gg          , Mm          , Gg^Fet      , Mm^Xm       , Mm          , Mm          , Hh          , Gs^Fp       , Ggf         , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , Hh          , Ggf         , Gg          , Hh          , Gg^Ve       , Hh          , Gs^Fms      , Mm          , Mm          , Ggf         , Gg          , Gg          , Ch          , 1 Kh        , Ch          , Gg          , Hh          , Gg          , Gg          , Gs^Fp       , Gg          , Gg          , Gg          , Gg          , Gs^Fms      , Wwf         , Wwf         , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , Xu          , Wwf         , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Kh          , Ch          , Gg          , Wwf         , Gg          , Ch          , Kh          , Gs^Fp       , Mm          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Mm          , Wwf         , Xu          , Xu          , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , Xu          , Xu          , Wwf         , Wwf         , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Re          , Gg          , Re          , Gg          , Gg          , Gg          , Gg          , Wwf         , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Hh          , Gs^Fp       , Gg^Ve       , Gg          , Ggf         , Mm          , Wwf         , Xu          , Xu          , Xu          , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , Xu          , Xu          , Xu          , Xu          , Wwf         , Gg          , Gg          , Gs^Fp       , Hh          , Gs^Fp       , Gg          , Gg          , Re          , Re          , Xu          , Re          , Re^Uf       , Gg          , Re          , Wwf         , Gg          , Gs^Fms      , Gg          , Re          , Re          , Re          , Xu          , Gg          , Gg          , Hh          , Gg          , Gg          , Gs^Fp       , Wwf         , Wwf         , Xu          , Uh          , Xu          , Xu          , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , Xu          , Xu          , Wwf         , Wwf         , Mm          , Gg          , Gg          , Re^Uf       , Mm          , Gg          , Re          , Re          , Ww          , Xu          , Uh          , Uu^Vud      , Xu          , Re          , Wwf         , Wwf         , Re          , Gg          , Re          , Re          , Wwf         , Xu          , Xu          , Re^Uf       , Re          , Gg          , Gg          , Hh          , Ggf         , Hh          , Wwf         , Xu          , Wwf         , Uu          , Uu^Uf       , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , Xu          , Wwf         , Gs^Fp       , Hh          , Hh          , Gg          , Gg          , Hh          , Gs^Fms      , Gg          , Re          , Ww          , Wo          , Ww          , Wwf         , Wwf         , Uh          , Uu^Uf       , Wwf         , Ww          , Ss^Vhs      , Re          , Xu          , Wwf         , Ur          , Ur          , Re          , Re          , Gs^Fms      , Hh          , Gg^Uf       , Gg          , Gg          , Re          , Re^Uf       , Wwf         , Wwf         , Uu          , Xu          , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , Wwf         , Wwf         , Ggf         , Ggf         , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Re          , Ww          , Ww          , Ww          , Xu          , Uh          , Xu          , Ur          , Ww          , Ww          , Ww          , Xu          , Ww          , Uh          , Uu^Vu       , Re          , Gg          , Gg          , Gg          , Gg^Ve       , Gg          , Gg          , Gg          , Gg          , Re          , Gs^Fp       , Wwf         , Xu          , Xu          , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , Gs^Fms      , Gs^Fp       , Re^Uf       , Re          , Gg          , Gg          , Gg          , Gg          , Gg          , Ss^Vhs      , Gg          , Re          , Wwf         , Uh          , Xu          , Ur          , Xu          , Wwf         , Ww          , Wo          , Uu          , Uh          , Ww          , Xu          , Xu          , Re          , Re          , Gg          , Gg          , Gg          , Gs^Fms      , Hh          , Hh          , Gg          , Gg          , Re          , Re          , Wwf         , Xu          , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , Mm          , Hh          , Re          , Re          , Gg          , Gg          , Hh          , Gs^Fp       , Ss          , Gg          , Hh          , Re          , Wwf         , Xu          , Xu          , Ur          , Wwf         , Wwf         , Ww          , Uu^Uf       , Ww          , Ww          , Wwf         , Uu^Uf       , Xu          , Uh          , Wwf         , Re          , Hh          , Hh          , Mm          , Gs^Fp       , Hh          , Gs^Fp       , Gg          , Re          , Re          , Wwf         , Wwf         , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , Wwf         , Re^Uf       , Re          , Gg          , Gg          , Gs^Fp       , Re^Uf       , Gs^Fms      , Mm          , Gs^Fp       , Hh          , Re          , Re          , Uh          , Xu          , Uu^Uf       , Ww          , Ww          , Uu          , Uu^Uf       , Ww          , Wwf         , Xu          , Ur          , Xu          , Xu          , Wwf         , Re          , Re          , Gs^Fp       , Gg          , Ss          , Gg          , Gg          , Gg          , Gg          , Gg          , Re^Uf       , Mm          , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , Xu          , Wwf         , Re          , Gg          , Gg          , Gg          , Gg          , Hh          , Gg          , Hh          , Gg          , Gg          , Gg          , Re          , Uu^Vu       , Xu          , Ww          , Uh          , Ww          , Wo          , Ww          , Wwf         , Xu          , Ur          , Xu          , Uh          , Ww          , Re          , Re          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Ggf         , Hh          , Hh          , Gs^Fp       , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , Xu          , Wwf         , Wwf         , Hh          , Hh          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Re          , Re          , Ur          , Uh          , Xu          , Xu          , Ss^Vhs      , Ww          , Wwf         , Ur          , Uh          , Uh          , Wwf         , Ww          , Wo          , Ww          , Re          , Re          , Gg          , Gg          , Gs^Fms      , Gg          , Gg          , Gg          , Gg          , Gs^Fp       , Wwf         , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , Xu          , Xu          , Wwf         , Gs^Fp       , Re          , Gg          , Ggf         , Gg          , Gg          , Gg          , Gg          , Gs^Fp       , Xu          , Ur          , Wwf         , Wwf         , Re          , Re          , Re          , Ww          , Wwf         , Uu^Uf       , Xu          , Wwf         , Uh          , Ww          , Ww          , Ww          , Re          , Ss^Vhs      , Gg          , Hh          , Mm          , Hh          , Re^Uf       , Gg          , Gg          , Wwf         , Xu          , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , Uu^Uf       , Uu          , Wwf         , Wwf         , Wwf         , Re          , Hh          , Mm          , Gs^Fp       , Gg          , Gg          , Uh          , Xu          , Xu          , Re          , Re          , Gg          , Gg          , Gg          , Wwf         , Re          , Re          , Re^Uf       , Uu^Vud      , Xu          , Xu          , Re          , Re          , Gg          , Gg          , Gg          , Gs^Fms      , Ggf         , Gs^Fp       , Gg          , Gg          , Wwf         , Wwf         , Xu          , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , Xu          , Wwf         , Uh          , Xu          , Xu          , Wwf         , Re          , Re^Uf       , Ggf         , Gg^Uf       , Gs^Fp       , Gg          , Gg          , Re          , Gg          , Re          , Gg          , Gs^Fp       , Gg          , Wwf         , Gg          , Gg          , Gg          , Re          , Re          , Re          , Re          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Wwf         , Wwf         , Xu          , Xu          , Xu          , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , _off^_usr   , Xu          , Xu          , Xu          , Xu          , Wwf         , Re          , Gs^Fms      , Gg          , Gg^Ve       , Ggf         , Gg          , Gg          , Gg          , Ggf         , Gg          , Kh          , Gg          , Gg          , Wwf         , Gg          , Gg          , Kh          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Wwf         , Xu          , Xu          , Xu          , _off^_usr   , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , Xu          , Xu          , Wwf         , Wwf         , Re          , Mm          , Hh          , Gg          , Gg          , Gg          , Gg^Ve       , Gg          , Gs^Fms      , Gg          , Ch          , Ch          , Wwf         , Ch          , Ch          , Gg          , Gg          , Gg          , Gg          , Gg^Fet      , Gg          , Gg^Ve       , Gg          , Gg          , Gs^Fp       , Gg          , Wwf         , Xu          , Xu          , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , Xu          , Wwf         , Re          , Re          , Gs^Fp       , Re          , Gg          , Hh          , Hh          , Gs^Fms      , Gg          , Gg          , Hh          , Mm          , 2 Kh        , Gs^Fp       , Gg          , Gg          , Gg^Ve       , Gs^Fp       , Gg          , Hh          , Hh          , Gs^Fp       , Hh          , Gs^Fms      , Gg          , Wwf         , Wwf         , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , Wwf         , Re          , Re          , Re          , Gs^Fp       , Mm          , Mm          , Mm          , Mm          , Gs^Fms      , Gg^Fet      , Hh          , Ww          , Hh          , Hh          , Gs^Fms      , Hh          , Mm          , Hh          , Mm^Xm       , Mm          , Mm          , Hh          , Gs^Fp       , Mm          , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , Mm          , Hh          , Hh          , Mm^Xm       , Mm^Xm       , Mm^Xm       , Mm^Xm       , Mm^Xm       , Mm          , Mm^Xm       , Ww          , Ww          , Mm          , Mm^Xm       , Mm^Xm       , Mm^Xm       , Mm^Xm       , Mm          , Mm^Xm       , Mm          , Hh          , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , Mm^Xm       , _off^_usr   , Mm          , _off^_usr   , Gs^Fp       , _off^_usr   , Mm^Xm       , _off^_usr   , Ww          , _off^_usr   , Gs^Fp       , _off^_usr   , Hh          , _off^_usr   , Gs^Fp       , _off^_usr   , Mm^Xm       , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   
"
	mp_countdown="yes"
	mp_countdown_action_bonus="20"
	mp_countdown_init_time="270"
	mp_countdown_turn_bonus="200"
	mp_fog="yes"
	mp_shroud="no"
	mp_use_map_settings="yes"
	mp_village_gold="2"
	name="2p - Caves of the Basilisk"
	next_underlying_unit_id="39"
	objectives="Victory:
@Defeat enemy leader(s)"
	observer="yes"
	random_calls="0"
	random_seed="18837"
	savegame="yes"
	turn="8"
	turn_at="8"
	turns="-1"
	version="1.6.1"
	[snapshot]
		campaign_type="multiplayer"
		completion="running"
		current_tod="1"
#textdomain wesnoth-multiplayer
		description=_ "These caves were once the lair of Chak'kso Ney'yks, a legendary Elder Basilisk. The petrified forms of his victims remain as monuments to his savage power."
		difficulty="NORMAL"
		end_text_duration="0"
		experience_modifier="70"
		hash="McPgEzp.LJt7h.t1Qr.c0wdN6DSMrFSDz4LpPy.MjaHg-SJ4NO6RN7,AJkIOwBZE.K6Gt>F,tbOGluI+4Fgcg7SDu,wQihAGrihF1c3lurN0vQXAvq<LoFHYPrX2RHE1"
		id="multiplayer_Basilisk"
		label="2p - Caves of the Basilisk"
		map_data="border_size=1
usage=map

_off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , Mm^Xm       , Mm^Xm       , Mm^Xm       , Gs^Fp       , Mm^Xm       , Gs^Fp       , Hh          , Gs^Fms      , Ww          , Ww          , Ww          , Gs^Fp       , Gs^Fms      , Hh          , Mm^Xm       , Gs^Fp       , Mm^Xm       , Mm^Xm       , Mm          , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , Gs^Fp       , Mm          , Gg^Fet      , Mm          , Gs^Fp       , Mm^Xm       , Gs^Fms      , Gg^Ve       , Gg          , Hh          , Mm          , Ww          , Gs^Fp       , Hh          , Gg          , Mm          , Gg^Fet      , Mm^Xm       , Mm          , Mm          , Hh          , Gs^Fp       , Ggf         , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , Hh          , Ggf         , Gg          , Hh          , Gg^Ve       , Hh          , Gs^Fms      , Mm          , Mm          , Ggf         , Gg          , Gg          , Ch          , 1 Kh        , Ch          , Gg          , Hh          , Gg          , Gg          , Gs^Fp       , Gg          , Gg          , Gg          , Gg          , Gs^Fms      , Wwf         , Wwf         , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , Xu          , Wwf         , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Kh          , Ch          , Gg          , Wwf         , Gg          , Ch          , Kh          , Gs^Fp       , Mm          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Mm          , Wwf         , Xu          , Xu          , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , Xu          , Xu          , Wwf         , Wwf         , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Re          , Gg          , Re          , Gg          , Gg          , Gg          , Gg          , Wwf         , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Hh          , Gs^Fp       , Gg^Ve       , Gg          , Ggf         , Mm          , Wwf         , Xu          , Xu          , Xu          , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , Xu          , Xu          , Xu          , Xu          , Wwf         , Gg          , Gg          , Gs^Fp       , Hh          , Gs^Fp       , Gg          , Gg          , Re          , Re          , Xu          , Re          , Re^Uf       , Gg          , Re          , Wwf         , Gg          , Gs^Fms      , Gg          , Re          , Re          , Re          , Xu          , Gg          , Gg          , Hh          , Gg          , Gg          , Gs^Fp       , Wwf         , Wwf         , Xu          , Uh          , Xu          , Xu          , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , Xu          , Xu          , Wwf         , Wwf         , Mm          , Gg          , Gg          , Re^Uf       , Mm          , Gg          , Re          , Re          , Ww          , Xu          , Uh          , Uu^Vud      , Xu          , Re          , Wwf         , Wwf         , Re          , Gg          , Re          , Re          , Wwf         , Xu          , Xu          , Re^Uf       , Re          , Gg          , Gg          , Hh          , Ggf         , Hh          , Wwf         , Xu          , Wwf         , Uu          , Uu^Uf       , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , Xu          , Wwf         , Gs^Fp       , Hh          , Hh          , Gg          , Gg          , Hh          , Gs^Fms      , Gg          , Re          , Ww          , Wo          , Ww          , Wwf         , Wwf         , Uh          , Uu^Uf       , Wwf         , Ww          , Ss^Vhs      , Re          , Xu          , Wwf         , Ur          , Ur          , Re          , Re          , Gs^Fms      , Hh          , Gg^Uf       , Gg          , Gg          , Re          , Re^Uf       , Wwf         , Wwf         , Uu          , Xu          , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , Wwf         , Wwf         , Ggf         , Ggf         , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Re          , Ww          , Ww          , Ww          , Xu          , Uh          , Xu          , Ur          , Ww          , Ww          , Ww          , Xu          , Ww          , Uh          , Uu^Vu       , Re          , Gg          , Gg          , Gg          , Gg^Ve       , Gg          , Gg          , Gg          , Gg          , Re          , Gs^Fp       , Wwf         , Xu          , Xu          , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , Gs^Fms      , Gs^Fp       , Re^Uf       , Re          , Gg          , Gg          , Gg          , Gg          , Gg          , Ss^Vhs      , Gg          , Re          , Wwf         , Uh          , Xu          , Ur          , Xu          , Wwf         , Ww          , Wo          , Uu          , Uh          , Ww          , Xu          , Xu          , Re          , Re          , Gg          , Gg          , Gg          , Gs^Fms      , Hh          , Hh          , Gg          , Gg          , Re          , Re          , Wwf         , Xu          , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , Mm          , Hh          , Re          , Re          , Gg          , Gg          , Hh          , Gs^Fp       , Ss          , Gg          , Hh          , Re          , Wwf         , Xu          , Xu          , Ur          , Wwf         , Wwf         , Ww          , Uu^Uf       , Ww          , Ww          , Wwf         , Uu^Uf       , Xu          , Uh          , Wwf         , Re          , Hh          , Hh          , Mm          , Gs^Fp       , Hh          , Gs^Fp       , Gg          , Re          , Re          , Wwf         , Wwf         , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , Wwf         , Re^Uf       , Re          , Gg          , Gg          , Gs^Fp       , Re^Uf       , Gs^Fms      , Mm          , Gs^Fp       , Hh          , Re          , Re          , Uh          , Xu          , Uu^Uf       , Ww          , Ww          , Uu          , Uu^Uf       , Ww          , Wwf         , Xu          , Ur          , Xu          , Xu          , Wwf         , Re          , Re          , Gs^Fp       , Gg          , Ss          , Gg          , Gg          , Gg          , Gg          , Gg          , Re^Uf       , Mm          , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , Xu          , Wwf         , Re          , Gg          , Gg          , Gg          , Gg          , Hh          , Gg          , Hh          , Gg          , Gg          , Gg          , Re          , Uu^Vu       , Xu          , Ww          , Uh          , Ww          , Wo          , Ww          , Wwf         , Xu          , Ur          , Xu          , Uh          , Ww          , Re          , Re          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Ggf         , Hh          , Hh          , Gs^Fp       , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , Xu          , Wwf         , Wwf         , Hh          , Hh          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Re          , Re          , Ur          , Uh          , Xu          , Xu          , Ss^Vhs      , Ww          , Wwf         , Ur          , Uh          , Uh          , Wwf         , Ww          , Wo          , Ww          , Re          , Re          , Gg          , Gg          , Gs^Fms      , Gg          , Gg          , Gg          , Gg          , Gs^Fp       , Wwf         , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , Xu          , Xu          , Wwf         , Gs^Fp       , Re          , Gg          , Ggf         , Gg          , Gg          , Gg          , Gg          , Gs^Fp       , Xu          , Ur          , Wwf         , Wwf         , Re          , Re          , Re          , Ww          , Wwf         , Uu^Uf       , Xu          , Wwf         , Uh          , Ww          , Ww          , Ww          , Re          , Ss^Vhs      , Gg          , Hh          , Mm          , Hh          , Re^Uf       , Gg          , Gg          , Wwf         , Xu          , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , Uu^Uf       , Uu          , Wwf         , Wwf         , Wwf         , Re          , Hh          , Mm          , Gs^Fp       , Gg          , Gg          , Uh          , Xu          , Xu          , Re          , Re          , Gg          , Gg          , Gg          , Wwf         , Re          , Re          , Re^Uf       , Uu^Vud      , Xu          , Xu          , Re          , Re          , Gg          , Gg          , Gg          , Gs^Fms      , Ggf         , Gs^Fp       , Gg          , Gg          , Wwf         , Wwf         , Xu          , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , Xu          , Wwf         , Uh          , Xu          , Xu          , Wwf         , Re          , Re^Uf       , Ggf         , Gg^Uf       , Gs^Fp       , Gg          , Gg          , Re          , Gg          , Re          , Gg          , Gs^Fp       , Gg          , Wwf         , Gg          , Gg          , Gg          , Re          , Re          , Re          , Re          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Wwf         , Wwf         , Xu          , Xu          , Xu          , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , _off^_usr   , Xu          , Xu          , Xu          , Xu          , Wwf         , Re          , Gs^Fms      , Gg          , Gg^Ve       , Ggf         , Gg          , Gg          , Gg          , Ggf         , Gg          , Kh          , Gg          , Gg          , Wwf         , Gg          , Gg          , Kh          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Gg          , Wwf         , Xu          , Xu          , Xu          , _off^_usr   , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , Xu          , Xu          , Wwf         , Wwf         , Re          , Mm          , Hh          , Gg          , Gg          , Gg          , Gg^Ve       , Gg          , Gs^Fms      , Gg          , Ch          , Ch          , Wwf         , Ch          , Ch          , Gg          , Gg          , Gg          , Gg          , Gg^Fet      , Gg          , Gg^Ve       , Gg          , Gg          , Gs^Fp       , Gg          , Wwf         , Xu          , Xu          , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , Xu          , Wwf         , Re          , Re          , Gs^Fp       , Re          , Gg          , Hh          , Hh          , Gs^Fms      , Gg          , Gg          , Hh          , Mm          , 2 Kh        , Gs^Fp       , Gg          , Gg          , Gg^Ve       , Gs^Fp       , Gg          , Hh          , Hh          , Gs^Fp       , Hh          , Gs^Fms      , Gg          , Wwf         , Wwf         , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , Wwf         , Re          , Re          , Re          , Gs^Fp       , Mm          , Mm          , Mm          , Mm          , Gs^Fms      , Gg^Fet      , Hh          , Ww          , Hh          , Hh          , Gs^Fms      , Hh          , Mm          , Hh          , Mm^Xm       , Mm          , Mm          , Hh          , Gs^Fp       , Mm          , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , Mm          , Hh          , Hh          , Mm^Xm       , Mm^Xm       , Mm^Xm       , Mm^Xm       , Mm^Xm       , Mm          , Mm^Xm       , Ww          , Ww          , Mm          , Mm^Xm       , Mm^Xm       , Mm^Xm       , Mm^Xm       , Mm          , Mm^Xm       , Mm          , Hh          , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , Mm^Xm       , _off^_usr   , Mm          , _off^_usr   , Gs^Fp       , _off^_usr   , Mm^Xm       , _off^_usr   , Ww          , _off^_usr   , Gs^Fp       , _off^_usr   , Hh          , _off^_usr   , Gs^Fp       , _off^_usr   , Mm^Xm       , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   
_off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   , _off^_usr   
"
		mp_countdown="yes"
		mp_countdown_action_bonus="20"
		mp_countdown_init_time="270"
		mp_countdown_reservoir_time="270"
		mp_countdown_turn_bonus="200"
		mp_fog="yes"
		mp_shroud="no"
		mp_use_map_settings="yes"
		mp_village_gold="2"
		name=_ "2p - Caves of the Basilisk"
		next_underlying_unit_id="39"
#textdomain wesnoth
		objectives=_ "Victory:
@Defeat enemy leader(s)"
		observer="yes"
		playing_team="0"
		random_calls="0"
		random_seed="18837"
		random_start_time="no"
		snapshot="yes"
		turn_at="8"
		turns="-1"
		unit_wml_ids="Armageddon Drake,Direwolf Rider,Dwarvish Guardsman,Dwarvish Thunderguard,Elder Wose,Elvish Marksman,Footpad,Grand Knight,Grand Marshal,Iron Mauler,Mermaid Siren,Naga Myrmidon,Poacher,Saurian Flanker,Saurian Oracle,Sea Serpent,Sky Drake,Thief,Trapper,era_events"
		version="1.6.1"
		[side]
			action_bonus_count="0"
			aggression="0.5"
			allow_player="yes"
			caution="0.25"
			colour="7"
			controller="human"
			countdown_time="270000"
			current_player="Orange_Dude"
			disallow_observers="no"
			fog="yes"
			global_recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
			gold="24"
			hidden="no"
			id="Orange_Dude1"
			income="0"
			leader_value="3"
			name="Orange_Dude"
			no_leader="yes"
			number_of_possible_recruits_to_force_recruit="3.1"
			objectives=_ "Victory:
@Defeat enemy leader(s)"
			objectives_changed="no"
			recruit="Dwarvish Fighter,Dwarvish Guardsman,Dwarvish Thunderer,Dwarvish Ulfserker,Footpad,Gryphon Rider,Poacher,Thief"
			recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
			save_id="Orange_Dude1"
			share_maps="no"
			share_view="yes"
			shroud="no"
			side="1"
			start_gold="100"
			team_name="north"
#textdomain wesnoth-multiplayer
			user_team_name=_ "teamname^North"
			village_gold="2"
			village_value="1"
			villages_per_scout="8"
			[ai]
				recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
				villages_per_scout="8"
				[team_formula]
					rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
				[/team_formula]
			[/ai]
			[ai]
				villages_per_scout="8"
			[/ai]
			[village]
				x="12"
				y="4"
			[/village]
			[village]
				x="17"
				y="3"
			[/village]
			[village]
				x="17"
				y="8"
			[/village]
			[village]
				x="22"
				y="9"
			[/village]
			[unit]
				advances_to="Huntsman,Ranger"
				alignment="chaotic"
				allow_changes="yes"
				allow_player="yes"
				alpha="256"
				attacks_left="1"
				canrecruit="yes"
				colour="7"
				controller="human"
				cost="27"
				current_player="Orange_Dude"
				die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
				experience="3"
				facing="n"
				flag_rgb="magenta"
				flying="no"
				fog="yes"
				gender="male"
				gold="100"
				goto_x="-999"
				goto_y="-999"
				hitpoints="25"
				id="Orange_Dude1"
				image="units/human-outlaws/trapper.png"
				income="0"
#textdomain wesnoth-units
				language_name=_ "Trapper"
				leader="Dwarvish Steelclad,Dwarvish Thunderguard,Dwarvish Stalwart,Rogue,Trapper"
				level="2"
				max_attacks="1"
				max_experience="46"
				max_hitpoints="45"
				max_moves="5"
				movement="5"
				movement_type="smallfoot"
				moves="5"
				mp_countdown="yes"
				mp_countdown_action_bonus="20"
				mp_countdown_init_time="270"
				mp_countdown_reservoir_time="270"
				mp_countdown_turn_bonus="200"
				name="Orange_Dude"
				profile="portraits/humans/trapper.png"
				race="human"
				random_leader="Dwarvish Steelclad,Dwarvish Thunderguard,Rogue,Trapper"
				random_traits="no"
				recruit="Dwarvish Guardsman,Dwarvish Fighter,Dwarvish Ulfserker,Dwarvish Thunderer,Thief,Poacher,Footpad,Gryphon Rider"
				resting="yes"
				save_id="Orange_Dude1"
				share_maps="no"
				share_view="yes"
				shroud="no"
				side="1"
				team_name="north"
				terrain_liked="Hh, Ha, Mm"
				type="Trapper"
				undead_variation="archer"
				underlying_id="1"
				unrenamable="no"
				upkeep="full"
				usage="archer"
				user_team_name="wesnoth-multiplayerteamname^North"
				village_gold="2"
				x="24"
				y="6"
				zoc="yes"
				[defense]
					castle="40"
					cave="60"
					deep_water="80"
					flat="60"
					forest="40"
					frozen="80"
					fungus="50"
					hills="50"
					impassable="60"
					mountains="40"
					reef="70"
					sand="70"
					shallow_water="80"
					swamp_water="50"
					unwalkable="80"
					village="40"
				[/defense]
				[movement_costs]
					castle="1"
					cave="2"
					deep_water="99"
					flat="1"
					forest="2"
					frozen="3"
					fungus="2"
					hills="2"
					impassable="99"
					mountains="3"
					reef="2"
					sand="2"
					shallow_water="3"
					swamp_water="2"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="80"
					blade="100"
					cold="100"
					fire="100"
					impact="100"
					pierce="100"
				[/resistance]
				[portrait]
					image="portraits/humans/transparent/trapper.png"
					mirror="false"
					side="left"
					size="400"
				[/portrait]
				[portrait]
					image="portraits/humans/transparent/trapper.png"
					mirror="true"
					side="right"
					size="400"
				[/portrait]
				[variables]
				[/variables]
				[status]
					hidden="yes"
				[/status]
				[attack]
					damage="4"
					description=_ "dagger"
					icon="attacks/dagger-human.png"
					name="dagger"
					number="4"
					range="melee"
					type="blade"
				[/attack]
				[attack]
					damage="6"
					description=_ "bow"
					name="bow"
					number="4"
					range="ranged"
					type="pierce"
				[/attack]
				[modifications]
				[/modifications]
			[/unit]
			[unit]
				advances_to="Outlaw"
				alignment="chaotic"
				alpha="256"
				attacks_left="1"
				cost="14"
				die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
				ellipse="misc/ellipse"
				experience="2"
				facing="sw"
				flag_rgb="magenta"
				flying="no"
				gender="male"
				goto_x="-999"
				goto_y="-999"
				hitpoints="36"
				id="Footpad-16"
				image="units/human-outlaws/footpad.png"
				language_name=_ "Footpad"
				level="1"
				max_attacks="1"
				max_experience="25"
				max_hitpoints="36"
				max_moves="7"
				movement="7"
				movement_type="elusivefoot"
				moves="7"
				name="Owor"
				race="human"
				random_gender="no"
				random_traits="no"
				resting="yes"
				side="1"
				type="Footpad"
				underlying_id="16"
				unrenamable="no"
				upkeep="full"
				usage="scout"
				x="30"
				y="8"
				zoc="yes"
				[attack_anim]
					offset="0.0"
					[filter_attack]
						name="sling"
					[/filter_attack]
					[if]
						hits="yes"
						[sling_stone_frame]
							begin="-201"
							end="-200"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="-200"
							end="0"
							halo="projectiles/stone.png"
							halo_x="5~0"
							halo_y="-6~0"
							offset="0.0~1.0"
							y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="0"
							end="1"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[frame]
							begin="-400"
							end="-150"
							image="units/human-outlaws/footpad-attack1.png"
							sound="sling.ogg"
						[/frame]
					[/if]
					[else]
						hits="no"
						[sling_stone_frame]
							begin="-201"
							end="-200"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="-200"
							end="100"
							halo="projectiles/stone.png"
							halo_x="5~0"
							halo_y="-6~0"
							offset="0.0~1.5"
							y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="100"
							end="101"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[frame]
							begin="-400"
							end="-150"
							image="units/human-outlaws/footpad-attack1.png"
							sound="sling-miss.ogg"
						[/frame]
					[/else]
					[frame]
						begin="-150"
						end="50"
						image="units/human-outlaws/footpad-attack2.png"
					[/frame]
				[/attack_anim]
				[attack_anim]
					[filter_attack]
						name="club"
					[/filter_attack]
					[frame]
						begin="-250"
						end="-200"
						image="units/human-outlaws/footpad.png"
					[/frame]
					[frame]
						begin="-200"
						end="-100"
						image="units/human-outlaws/footpad-melee-1.png"
					[/frame]
					[if]
						hits="yes"
						[frame]
							begin="-100"
							end="100"
							image="units/human-outlaws/footpad-melee-2.png"
							sound="staff.wav"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-100"
							end="100"
							image="units/human-outlaws/footpad-melee-2.png"
							sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
						[/frame]
					[/else]
					[frame]
						begin="100"
						end="200"
						image="units/human-outlaws/footpad-melee-3.png"
					[/frame]
					[frame]
						begin="200"
						end="300"
						image="units/human-outlaws/footpad-melee-4.png"
					[/frame]
				[/attack_anim]
				[defend]
					start_time="-126"
					[frame]
						duration="1"
						image="units/human-outlaws/footpad.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-defend.png"
					[/frame]
					[if]
						hits="hit"
						[frame]
							duration="150"
							image="units/human-outlaws/footpad-defend.png"
							sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
						[/frame]
					[/if]
					[else]
						hits="miss,kill"
						[frame]
							duration="150"
							image="units/human-outlaws/footpad-defend.png"
						[/frame]
					[/else]
					[frame]
						duration="1"
						image="units/human-outlaws/footpad.png"
					[/frame]
				[/defend]
				[idle_anim]
					start_time="0"
					[filter]
						[not]
							[filter_wml]
								[status]
									poisoned="yes"
								[/status]
							[/filter_wml]
						[/not]
					[/filter]
					[filter]
						[filter_adjacent]
							count="0"
							is_enemy="yes"
						[/filter_adjacent]
					[/filter]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-1.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="200"
						image="units/human-outlaws/footpad-idle-4.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="200"
						image="units/human-outlaws/footpad-idle-4.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-1.png"
					[/frame]
				[/idle_anim]
				[defense]
					castle="30"
					cave="50"
					deep_water="70"
					flat="40"
					forest="30"
					frozen="60"
					fungus="30"
					hills="30"
					impassable="50"
					mountains="30"
					reef="50"
					sand="60"
					shallow_water="60"
					swamp_water="60"
					unwalkable="80"
					village="30"
				[/defense]
				[movement_costs]
					castle="1"
					cave="2"
					deep_water="99"
					flat="1"
					forest="2"
					frozen="2"
					fungus="2"
					hills="2"
					impassable="99"
					mountains="3"
					reef="2"
					sand="2"
					shallow_water="2"
					swamp_water="2"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="80"
					blade="130"
					cold="100"
					fire="100"
					impact="120"
					pierce="120"
				[/resistance]
				[variables]
				[/variables]
				[status]
					hidden="yes"
				[/status]
				[attack]
					damage="6"
					description=_ "club"
					icon="attacks/club-small.png"
					name="club"
					number="2"
					range="melee"
					type="impact"
				[/attack]
				[attack]
					damage="5"
					description=_ "sling"
					name="sling"
					number="2"
					range="ranged"
					type="impact"
				[/attack]
				[modifications]
					[trait]
#textdomain wesnoth
						female_name=_ "female^resilient"
						id="resilient"
						male_name=_ "resilient"
						name=_ "resilient"
						[effect]
							apply_to="hitpoints"
							increase_total="4"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="1"
							times="per level"
						[/effect]
					[/trait]
					[trait]
						female_name=_ "female^strong"
						id="strong"
						male_name=_ "strong"
						name=_ "strong"
						[effect]
							apply_to="attack"
							increase_damage="1"
							range="melee"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="1"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				advances_to="Outlaw"
				alignment="chaotic"
				alpha="256"
				attacks_left="1"
				cost="14"
				die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
				ellipse="misc/ellipse"
				experience="2"
				facing="s"
				flag_rgb="magenta"
				flying="no"
				gender="male"
				goto_x="-999"
				goto_y="-999"
				hitpoints="36"
				id="Footpad-17"
				image="units/human-outlaws/footpad.png"
#textdomain wesnoth-units
				language_name=_ "Footpad"
				level="1"
				max_attacks="1"
				max_experience="25"
				max_hitpoints="36"
				max_moves="7"
				movement="7"
				movement_type="elusivefoot"
				moves="7"
				name="Rhyn"
				race="human"
				random_gender="no"
				random_traits="no"
				resting="yes"
				side="1"
				type="Footpad"
				underlying_id="17"
				unrenamable="no"
				upkeep="full"
				usage="scout"
				x="9"
				y="7"
				zoc="yes"
				[attack_anim]
					offset="0.0"
					[filter_attack]
						name="sling"
					[/filter_attack]
					[if]
						hits="yes"
						[sling_stone_frame]
							begin="-201"
							end="-200"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="-200"
							end="0"
							halo="projectiles/stone.png"
							halo_x="5~0"
							halo_y="-6~0"
							offset="0.0~1.0"
							y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="0"
							end="1"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[frame]
							begin="-400"
							end="-150"
							image="units/human-outlaws/footpad-attack1.png"
							sound="sling.ogg"
						[/frame]
					[/if]
					[else]
						hits="no"
						[sling_stone_frame]
							begin="-201"
							end="-200"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="-200"
							end="100"
							halo="projectiles/stone.png"
							halo_x="5~0"
							halo_y="-6~0"
							offset="0.0~1.5"
							y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="100"
							end="101"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[frame]
							begin="-400"
							end="-150"
							image="units/human-outlaws/footpad-attack1.png"
							sound="sling-miss.ogg"
						[/frame]
					[/else]
					[frame]
						begin="-150"
						end="50"
						image="units/human-outlaws/footpad-attack2.png"
					[/frame]
				[/attack_anim]
				[attack_anim]
					[filter_attack]
						name="club"
					[/filter_attack]
					[frame]
						begin="-250"
						end="-200"
						image="units/human-outlaws/footpad.png"
					[/frame]
					[frame]
						begin="-200"
						end="-100"
						image="units/human-outlaws/footpad-melee-1.png"
					[/frame]
					[if]
						hits="yes"
						[frame]
							begin="-100"
							end="100"
							image="units/human-outlaws/footpad-melee-2.png"
							sound="staff.wav"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-100"
							end="100"
							image="units/human-outlaws/footpad-melee-2.png"
							sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
						[/frame]
					[/else]
					[frame]
						begin="100"
						end="200"
						image="units/human-outlaws/footpad-melee-3.png"
					[/frame]
					[frame]
						begin="200"
						end="300"
						image="units/human-outlaws/footpad-melee-4.png"
					[/frame]
				[/attack_anim]
				[defend]
					start_time="-126"
					[frame]
						duration="1"
						image="units/human-outlaws/footpad.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-defend.png"
					[/frame]
					[if]
						hits="hit"
						[frame]
							duration="150"
							image="units/human-outlaws/footpad-defend.png"
							sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
						[/frame]
					[/if]
					[else]
						hits="miss,kill"
						[frame]
							duration="150"
							image="units/human-outlaws/footpad-defend.png"
						[/frame]
					[/else]
					[frame]
						duration="1"
						image="units/human-outlaws/footpad.png"
					[/frame]
				[/defend]
				[idle_anim]
					start_time="0"
					[filter]
						[not]
							[filter_wml]
								[status]
									poisoned="yes"
								[/status]
							[/filter_wml]
						[/not]
					[/filter]
					[filter]
						[filter_adjacent]
							count="0"
							is_enemy="yes"
						[/filter_adjacent]
					[/filter]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-1.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="200"
						image="units/human-outlaws/footpad-idle-4.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="200"
						image="units/human-outlaws/footpad-idle-4.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-1.png"
					[/frame]
				[/idle_anim]
				[defense]
					castle="30"
					cave="50"
					deep_water="70"
					flat="40"
					forest="30"
					frozen="60"
					fungus="30"
					hills="30"
					impassable="50"
					mountains="30"
					reef="50"
					sand="60"
					shallow_water="60"
					swamp_water="60"
					unwalkable="80"
					village="30"
				[/defense]
				[movement_costs]
					castle="1"
					cave="2"
					deep_water="99"
					flat="1"
					forest="2"
					frozen="2"
					fungus="2"
					hills="2"
					impassable="99"
					mountains="3"
					reef="2"
					sand="2"
					shallow_water="2"
					swamp_water="2"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="80"
					blade="130"
					cold="100"
					fire="100"
					impact="120"
					pierce="120"
				[/resistance]
				[variables]
				[/variables]
				[status]
					hidden="yes"
				[/status]
				[attack]
					damage="6"
					description=_ "club"
					icon="attacks/club-small.png"
					name="club"
					number="2"
					range="melee"
					type="impact"
				[/attack]
				[attack]
					damage="5"
					description=_ "sling"
					name="sling"
					number="2"
					range="ranged"
					type="impact"
				[/attack]
				[modifications]
					[trait]
#textdomain wesnoth
						female_name=_ "female^resilient"
						id="resilient"
						male_name=_ "resilient"
						name=_ "resilient"
						[effect]
							apply_to="hitpoints"
							increase_total="4"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="1"
							times="per level"
						[/effect]
					[/trait]
					[trait]
						female_name=_ "female^strong"
						id="strong"
						male_name=_ "strong"
						name=_ "strong"
						[effect]
							apply_to="attack"
							increase_damage="1"
							range="melee"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="1"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				advances_to="Rogue"
				alignment="chaotic"
				alpha="256"
				attacks_left="1"
				cost="13"
				die_sound="human-female-die-1.ogg,human-female-die-2.ogg,human-female-die-3.ogg"
				ellipse="misc/ellipse"
				experience="3"
				facing="s"
				flag_rgb="magenta"
				flying="no"
				gender="female"
				goto_x="-999"
				goto_y="-999"
				hitpoints="24"
				id="Thief-18"
				image="units/human-outlaws/thief+female.png"
#textdomain wesnoth-units
				language_name=_ "female^Thief"
				level="1"
				max_attacks="1"
				max_experience="20"
				max_hitpoints="24"
				max_moves="7"
				movement="6"
				movement_type="elusivefoot"
				moves="7"
				name="Gwonna"
				profile="portraits/humans/thief+female.png"
				race="human"
				random_gender="no"
				random_traits="no"
				resting="yes"
				side="1"
				type="Thief"
				underlying_id="18"
				unrenamable="no"
				upkeep="full"
				usage="fighter"
				x="9"
				y="9"
				zoc="yes"
				[attack_anim]
					[filter_attack]
						name="dagger"
					[/filter_attack]
					[frame]
						begin="-150"
						end="-100"
						image="units/human-outlaws/thief+female.png"
					[/frame]
					[if]
						hits="yes"
						[frame]
							begin="-100"
							end="100"
							image="units/human-outlaws/thief+female-attack.png"
							sound="dagger-swish.wav"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-100"
							end="100"
							image="units/human-outlaws/thief+female-attack.png"
							sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
						[/frame]
					[/else]
					[frame]
						begin="100"
						end="150"
						image="units/human-outlaws/thief+female.png"
					[/frame]
				[/attack_anim]
				[death]
					start_time="0"
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-die-1.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-die-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-die-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-die-4.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-die-5.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-die-6.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-die-7.png"
					[/frame]
				[/death]
				[defend]
					hits="miss"
					[frame]
						begin="-126"
						end="-125"
						image="units/human-outlaws/thief+female.png"
					[/frame]
					[frame]
						begin="-125"
						end="-42"
						image="units/human-outlaws/thief+female-defend-1-1.png"
					[/frame]
					[frame]
						begin="-42"
						end="41"
						image="units/human-outlaws/thief+female-defend-1-2.png"
					[/frame]
					[frame]
						begin="41"
						end="125"
						image="units/human-outlaws/thief+female-defend-1-1.png"
					[/frame]
					[frame]
						begin="125"
						end="126"
						image="units/human-outlaws/thief+female.png"
					[/frame]
				[/defend]
				[defend]
					hits="miss"
					[frame]
						begin="-126"
						end="-125"
						image="units/human-outlaws/thief+female.png"
					[/frame]
					[frame]
						begin="-125"
						end="-42"
						image="units/human-outlaws/thief+female-defend-2-1.png"
					[/frame]
					[frame]
						begin="-42"
						end="41"
						image="units/human-outlaws/thief+female-defend-2-2.png"
					[/frame]
					[frame]
						begin="41"
						end="125"
						image="units/human-outlaws/thief+female-defend-2-1.png"
					[/frame]
					[frame]
						begin="125"
						end="126"
						image="units/human-outlaws/thief+female.png"
					[/frame]
				[/defend]
				[defend]
					hits="miss"
					[frame]
						begin="-126"
						end="-125"
						image="units/human-outlaws/thief+female.png"
					[/frame]
					[frame]
						begin="-125"
						end="-42"
						image="units/human-outlaws/thief+female-defend-3-1.png"
					[/frame]
					[frame]
						begin="-42"
						end="41"
						image="units/human-outlaws/thief+female-defend-3-2.png"
					[/frame]
					[frame]
						begin="41"
						end="125"
						image="units/human-outlaws/thief+female-defend-3-1.png"
					[/frame]
					[frame]
						begin="125"
						end="126"
						image="units/human-outlaws/thief+female.png"
					[/frame]
				[/defend]
				[defend]
					hits="kill"
					[frame]
						begin="-126"
						end="-125"
						image="units/human-outlaws/thief+female.png"
					[/frame]
					[frame]
						begin="-125"
						end="125"
						image="units/human-outlaws/thief+female-defend.png"
					[/frame]
					[frame]
						begin="125"
						end="126"
						image="units/human-outlaws/thief+female.png"
					[/frame]
				[/defend]
				[defend]
					hits="hit"
					[frame]
						begin="-126"
						end="-125"
						image="units/human-outlaws/thief+female.png"
					[/frame]
					[frame]
						begin="-125"
						end="125"
						image="units/human-outlaws/thief+female-defend.png"
						sound="human-female-hit-1.ogg,human-female-hit-2.ogg,human-female-hit-3.ogg"
					[/frame]
					[frame]
						begin="125"
						end="126"
						image="units/human-outlaws/thief+female.png"
					[/frame]
				[/defend]
				[idle_anim]
					start_time="0"
					[filter]
						[not]
							[filter_wml]
								[status]
									poisoned="yes"
								[/status]
							[/filter_wml]
						[/not]
					[/filter]
					[filter]
						[filter_adjacent]
							count="0"
							is_enemy="yes"
						[/filter_adjacent]
					[/filter]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-1.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-4.png"
					[/frame]
					[frame]
						duration="200"
						image="units/human-outlaws/thief+female-idle-5.png"
					[/frame]
					[frame]
						duration="150"
						image="units/human-outlaws/thief+female-idle-6.png"
					[/frame]
					[frame]
						duration="500"
						image="units/human-outlaws/thief+female-idle-7.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-8.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-9.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-10.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-11.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-12.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-11.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-10.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-9.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-8.png"
					[/frame]
					[frame]
						duration="300"
						image="units/human-outlaws/thief+female-idle-7.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-8.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-9.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-10.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-11.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-12.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-11.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-10.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-9.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-8.png"
					[/frame]
					[frame]
						duration="500"
						image="units/human-outlaws/thief+female-idle-7.png"
					[/frame]
					[frame]
						duration="150"
						image="units/human-outlaws/thief+female-idle-6.png"
					[/frame]
					[frame]
						duration="200"
						image="units/human-outlaws/thief+female-idle-5.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-4.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-1.png"
					[/frame]
				[/idle_anim]
				[portrait]
					image="portraits/humans/transparent/thief+female.png"
					mirror="false"
					side="left"
					size="400"
				[/portrait]
				[portrait]
					image="portraits/humans/transparent/thief+female.png"
					mirror="true"
					side="right"
					size="400"
				[/portrait]
				[defense]
					castle="30"
					cave="50"
					deep_water="70"
					flat="40"
					forest="30"
					frozen="60"
					fungus="30"
					hills="30"
					impassable="50"
					mountains="30"
					reef="50"
					sand="60"
					shallow_water="60"
					swamp_water="60"
					unwalkable="80"
					village="30"
				[/defense]
				[movement_costs]
					castle="1"
					cave="2"
					deep_water="99"
					flat="1"
					forest="2"
					frozen="2"
					fungus="2"
					hills="2"
					impassable="99"
					mountains="3"
					reef="2"
					sand="2"
					shallow_water="2"
					swamp_water="2"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="80"
					blade="130"
					cold="100"
					fire="100"
					impact="120"
					pierce="120"
				[/resistance]
				[variables]
				[/variables]
				[status]
					hidden="yes"
				[/status]
				[attack]
					damage="5"
					description=_ "dagger"
					icon="attacks/dagger-human.png"
					name="dagger"
					number="3"
					range="melee"
					type="blade"
					[specials]
						[damage]
							active_on="offense"
							backstab="yes"
#textdomain wesnoth
							description=_ "Backstab:
When used offensively, this attack deals double damage if there is an enemy of the target on the opposite side of the target, and that unit is not incapacitated (turned to stone or otherwise paralyzed)."
							id="backstab"
							multiply="2"
							name=_ "backstab"
						[/damage]
					[/specials]
				[/attack]
				[modifications]
					[trait]
						female_name=_ "female^strong"
						id="strong"
						male_name=_ "strong"
						name=_ "female^strong"
						[effect]
							apply_to="attack"
							increase_damage="1"
							range="melee"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="1"
						[/effect]
					[/trait]
					[trait]
						female_name=_ "female^quick"
						id="quick"
						male_name=_ "quick"
						name=_ "female^quick"
						[effect]
							apply_to="movement"
							increase="1"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="-5%"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				advances_to="Trapper"
				alignment="chaotic"
				alpha="256"
				attacks_left="1"
				cost="14"
				die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
				ellipse="misc/ellipse"
				experience="9"
				facing="nw"
				flag_rgb="magenta"
				flying="no"
				gender="male"
				goto_x="-999"
				goto_y="-999"
				hitpoints="19"
				id="Poacher-19"
				image="units/human-outlaws/poacher.png"
#textdomain wesnoth-units
				language_name=_ "Poacher"
				level="1"
				max_attacks="1"
				max_experience="20"
				max_hitpoints="31"
				max_moves="6"
				movement="5"
				movement_type="smallfoot"
				moves="6"
				name="Dac"
				profile="portraits/humans/trapper.png"
				race="human"
				random_gender="no"
				random_traits="no"
				resting="yes"
				side="1"
				type="Poacher"
				undead_variation="archer"
				underlying_id="19"
				unrenamable="no"
				upkeep="full"
				usage="archer"
				x="28"
				y="10"
				zoc="yes"
				[attack_anim]
					[filter_attack]
						name="bow"
					[/filter_attack]
					[missile_frame]
						begin="-150"
						end="0"
						image="projectiles/missile-n.png"
						image_diagonal="projectiles/missile-ne.png"
					[/missile_frame]
					[if]
						hits="yes"
						[frame]
							begin="-400"
							end="-250"
							image="units/human-outlaws/poacher-attack1.png"
							sound="bow.ogg"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-400"
							end="-250"
							image="units/human-outlaws/poacher-attack1.png"
							sound="bow-miss.ogg"
						[/frame]
					[/else]
					[frame]
						begin="-250"
						end="-100"
						image="units/human-outlaws/poacher-attack2.png"
					[/frame]
					[frame]
						begin="-100"
						end="0"
						image="units/human-outlaws/poacher-attack3.png"
					[/frame]
					[frame]
						begin="0"
						end="100"
						image="units/human-outlaws/poacher.png"
					[/frame]
				[/attack_anim]
				[attack_anim]
					[filter_attack]
						name="dagger"
					[/filter_attack]
					[frame]
						begin="-250"
						end="-150"
						image="units/human-outlaws/poacher-dagger.png"
					[/frame]
					[if]
						hits="yes"
						[frame]
							begin="-150"
							end="50"
							image="units/human-outlaws/poacher-attack.png"
							sound="dagger-swish.wav"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-150"
							end="50"
							image="units/human-outlaws/poacher-attack.png"
							sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
						[/frame]
					[/else]
					[frame]
						begin="50"
						end="150"
						image="units/human-outlaws/poacher-dagger.png"
					[/frame]
				[/attack_anim]
				[defend]
					start_time="-126"
					[filter_attack]
						range="melee"
					[/filter_attack]
					[frame]
						duration="1"
						image="units/human-outlaws/poacher-dagger.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/poacher-defend.png"
					[/frame]
					[if]
						hits="hit"
						[frame]
							duration="150"
							image="units/human-outlaws/poacher-defend.png"
							sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
						[/frame]
					[/if]
					[else]
						hits="miss,kill"
						[frame]
							duration="150"
							image="units/human-outlaws/poacher-defend.png"
						[/frame]
					[/else]
					[frame]
						duration="1"
						image="units/human-outlaws/poacher-dagger.png"
					[/frame]
				[/defend]
				[defend]
					start_time="-126"
					[filter_attack]
						range="ranged"
					[/filter_attack]
					[frame]
						duration="1"
						image="units/human-outlaws/poacher.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/poacher-bow-defend.png"
					[/frame]
					[if]
						hits="hit"
						[frame]
							duration="150"
							image="units/human-outlaws/poacher-bow-defend.png"
							sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
						[/frame]
					[/if]
					[else]
						hits="miss,kill"
						[frame]
							duration="150"
							image="units/human-outlaws/poacher-bow-defend.png"
						[/frame]
					[/else]
					[frame]
						duration="1"
						image="units/human-outlaws/poacher.png"
					[/frame]
				[/defend]
				[portrait]
					image="portraits/humans/transparent/trapper.png"
					mirror="false"
					side="left"
					size="400"
				[/portrait]
				[portrait]
					image="portraits/humans/transparent/trapper.png"
					mirror="true"
					side="right"
					size="400"
				[/portrait]
				[defense]
					castle="40"
					cave="60"
					deep_water="80"
					flat="60"
					forest="40"
					frozen="80"
					fungus="50"
					hills="50"
					impassable="60"
					mountains="40"
					reef="70"
					sand="70"
					shallow_water="80"
					swamp_water="50"
					unwalkable="80"
					village="40"
				[/defense]
				[movement_costs]
					castle="1"
					cave="2"
					deep_water="99"
					flat="1"
					forest="2"
					frozen="3"
					fungus="2"
					hills="2"
					impassable="99"
					mountains="3"
					reef="2"
					sand="2"
					shallow_water="3"
					swamp_water="2"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="80"
					blade="100"
					cold="100"
					fire="100"
					impact="100"
					pierce="100"
				[/resistance]
				[variables]
				[/variables]
				[status]
					hidden="yes"
				[/status]
				[attack]
					damage="4"
					description=_ "dagger"
					icon="attacks/dagger-human.png"
					name="dagger"
					number="2"
					range="melee"
					type="blade"
				[/attack]
				[attack]
					damage="4"
					description=_ "bow"
					name="bow"
					number="4"
					range="ranged"
					type="pierce"
				[/attack]
				[modifications]
					[trait]
#textdomain wesnoth
						female_name=_ "female^strong"
						id="strong"
						male_name=_ "strong"
						name=_ "strong"
						[effect]
							apply_to="attack"
							increase_damage="1"
							range="melee"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="1"
						[/effect]
					[/trait]
					[trait]
						female_name=_ "female^quick"
						id="quick"
						male_name=_ "quick"
						name=_ "quick"
						[effect]
							apply_to="movement"
							increase="1"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="-5%"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				advances_to="Dwarvish Stalwart"
				alignment="neutral"
				alpha="256"
				attacks_left="1"
				cost="19"
				die_sound="dwarf-die-1.ogg,dwarf-die-2.ogg"
				ellipse="misc/ellipse"
				experience="10"
				facing="nw"
				flag_rgb="magenta"
				flying="no"
				gender="male"
				goto_x="-999"
				goto_y="-999"
				hitpoints="26"
				id="Dwarvish Guardsman-20"
				image="units/dwarves/guard.png"
#textdomain wesnoth-units
				language_name=_ "Dwarvish Guardsman"
				level="1"
				max_attacks="1"
				max_experience="27"
				max_hitpoints="43"
				max_moves="4"
				movement="4"
				movement_type="dwarvishfoot"
				moves="4"
				name="Peldurus"
				profile="portraits/dwarves/guard.png"
				race="dwarf"
				random_gender="no"
				random_traits="no"
				resting="yes"
				side="1"
				type="Dwarvish Guardsman"
				undead_variation="dwarf"
				underlying_id="20"
				unrenamable="no"
				upkeep="full"
				usage="fighter"
				x="27"
				y="11"
				zoc="yes"
				[attack_anim]
					[filter_attack]
						name="javelin"
					[/filter_attack]
					[missile_frame]
						begin="-150"
						end="0"
						image="projectiles/spear-n.png"
						image_diagonal="projectiles/spear-ne.png"
					[/missile_frame]
					[frame]
						begin="-250"
						end="-150"
						image="units/dwarves/guard-defend-1.png"
						sound="throw-1.wav,throw-2.wav,throw-3.wav,throw-4.wav"
					[/frame]
					[if]
						hits="yes"
						[frame]
							begin="-150"
							end="-50"
							image="units/dwarves/guard-attack.png"
							sound="spear.ogg"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-150"
							end="-50"
							image="units/dwarves/guard-attack.png"
						[/frame]
					[/else]
					[frame]
						begin="-50"
						end="0"
						image="units/dwarves/guard.png"
					[/frame]
				[/attack_anim]
				[attack_anim]
					[filter_attack]
						name="spear"
					[/filter_attack]
					[frame]
						begin="-200"
						end="-150"
						image="units/dwarves/guard.png"
					[/frame]
					[frame]
						begin="-150"
						end="-100"
						image="units/dwarves/guard-defend-1.png"
					[/frame]
					[if]
						hits="yes"
						[frame]
							begin="-100"
							end="50"
							image="units/dwarves/guard-attack.png"
							sound="spear.ogg"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-100"
							end="50"
							image="units/dwarves/guard-attack.png"
							sound="spear-miss.ogg"
						[/frame]
					[/else]
					[frame]
						begin="50"
						end="75"
						image="units/dwarves/guard-defend-2.png"
					[/frame]
					[frame]
						begin="75"
						end="150"
						image="units/dwarves/guard.png"
					[/frame]
				[/attack_anim]
				[defend]
					start_time="-126"
					[frame]
						duration="1"
						image="units/dwarves/guard-defend-1.png"
					[/frame]
					[frame]
						duration="100"
						image="units/dwarves/guard-defend-2.png"
					[/frame]
					[if]
						hits="hit"
						[frame]
							duration="150"
							image="units/dwarves/guard-defend-2.png"
							sound="dwarf-hit-1.ogg,dwarf-hit-2.ogg,dwarf-hit-3.ogg,dwarf-hit-4.ogg"
						[/frame]
					[/if]
					[else]
						hits="miss,kill"
						[frame]
							duration="150"
							image="units/dwarves/guard-defend-2.png"
						[/frame]
					[/else]
					[frame]
						duration="1"
						image="units/dwarves/guard-defend-1.png"
					[/frame]
				[/defend]
				[idle_anim]
					start_time="0"
					[filter]
						[not]
							[filter_wml]
								[status]
									poisoned="yes"
								[/status]
							[/filter_wml]
						[/not]
					[/filter]
					[filter]
						[filter_adjacent]
							count="0"
							is_enemy="yes"
						[/filter_adjacent]
					[/filter]
					[frame]
						duration="100"
						image="units/dwarves/guard-idle-1.png"
					[/frame]
					[frame]
						duration="500"
						image="units/dwarves/guard-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/dwarves/guard-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/dwarves/guard-idle-4.png"
					[/frame]
					[frame]
						duration="400"
						image="units/dwarves/guard-idle-5.png"
					[/frame]
					[frame]
						duration="500"
						image="units/dwarves/guard-idle-6.png"
					[/frame]
					[frame]
						duration="100"
						image="units/dwarves/guard-idle-1.png"
					[/frame]
				[/idle_anim]
				[portrait]
					image="portraits/dwarves/transparent/guard.png"
					mirror="false"
					side="left"
					size="400"
				[/portrait]
				[portrait]
					image="portraits/dwarves/transparent/guard.png"
					mirror="true"
					side="right"
					size="400"
				[/portrait]
				[defense]
					castle="40"
					cave="50"
					deep_water="80"
					flat="70"
					forest="70"
					frozen="70"
					fungus="60"
					hills="50"
					impassable="50"
					mountains="40"
					reef="70"
					sand="70"
					shallow_water="80"
					swamp_water="80"
					unwalkable="80"
					village="50"
				[/defense]
				[movement_costs]
					castle="1"
					cave="1"
					deep_water="99"
					flat="1"
					forest="1"
					frozen="2"
					fungus="1"
					hills="1"
					impassable="99"
					mountains="1"
					reef="2"
					sand="1"
					shallow_water="3"
					swamp_water="3"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="90"
					blade="80"
					cold="90"
					fire="90"
					impact="80"
					pierce="80"
				[/resistance]
				[abilities]
					[resistance]
						active_on="defense"
						affect_self="yes"
						apply_to="blade,pierce,impact,fire,cold,arcane"
#textdomain wesnoth
						description=_ "Steadfast:
This unit's resistances are doubled, up to a maximum of 50%, when defending. Vulnerabilities are not affected."
						female_name=_ "female^steadfast"
						id="steadfast"
						max_value="50"
						multiply="2"
						name=_ "steadfast"
						[filter_base_value]
							greater_than="0"
							less_than_equal_to="50"
						[/filter_base_value]
					[/resistance]
				[/abilities]
				[variables]
				[/variables]
				[status]
					hidden="yes"
				[/status]
				[attack]
					damage="6"
#textdomain wesnoth-units
					description=_ "spear"
					icon="attacks/spear.png"
					name="spear"
					number="3"
					range="melee"
					type="pierce"
				[/attack]
				[attack]
					damage="5"
					description=_ "javelin"
					icon="attacks/javelin-human.png"
					name="javelin"
					number="1"
					range="ranged"
					type="pierce"
				[/attack]
				[modifications]
					[trait]
#textdomain wesnoth
						female_name=_ "female^intelligent"
						id="intelligent"
						male_name=_ "intelligent"
						name=_ "intelligent"
						[effect]
							apply_to="max_experience"
							increase="-20%"
						[/effect]
					[/trait]
					[trait]
						female_name=_ "female^strong"
						id="strong"
						male_name=_ "strong"
						name=_ "strong"
						[effect]
							apply_to="attack"
							increase_damage="1"
							range="melee"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="1"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				advances_to="Trapper"
				alignment="chaotic"
				alpha="256"
				attacks_left="1"
				cost="14"
				die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
				ellipse="misc/ellipse"
				experience="1"
				facing="se"
				flag_rgb="magenta"
				flying="no"
				gender="male"
				goto_x="-999"
				goto_y="-999"
				hitpoints="33"
				id="Poacher-29"
				image="units/human-outlaws/poacher.png"
#textdomain wesnoth-units
				language_name=_ "Poacher"
				level="1"
				max_attacks="1"
				max_experience="16"
				max_hitpoints="33"
				max_moves="5"
				movement="5"
				movement_type="smallfoot"
				moves="5"
				name="Gumyr"
				profile="portraits/humans/trapper.png"
				race="human"
				random_gender="no"
				random_traits="no"
				resting="yes"
				side="1"
				type="Poacher"
				undead_variation="archer"
				underlying_id="29"
				unrenamable="no"
				upkeep="full"
				usage="archer"
				x="26"
				y="9"
				zoc="yes"
				[attack_anim]
					[filter_attack]
						name="bow"
					[/filter_attack]
					[missile_frame]
						begin="-150"
						end="0"
						image="projectiles/missile-n.png"
						image_diagonal="projectiles/missile-ne.png"
					[/missile_frame]
					[if]
						hits="yes"
						[frame]
							begin="-400"
							end="-250"
							image="units/human-outlaws/poacher-attack1.png"
							sound="bow.ogg"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-400"
							end="-250"
							image="units/human-outlaws/poacher-attack1.png"
							sound="bow-miss.ogg"
						[/frame]
					[/else]
					[frame]
						begin="-250"
						end="-100"
						image="units/human-outlaws/poacher-attack2.png"
					[/frame]
					[frame]
						begin="-100"
						end="0"
						image="units/human-outlaws/poacher-attack3.png"
					[/frame]
					[frame]
						begin="0"
						end="100"
						image="units/human-outlaws/poacher.png"
					[/frame]
				[/attack_anim]
				[attack_anim]
					[filter_attack]
						name="dagger"
					[/filter_attack]
					[frame]
						begin="-250"
						end="-150"
						image="units/human-outlaws/poacher-dagger.png"
					[/frame]
					[if]
						hits="yes"
						[frame]
							begin="-150"
							end="50"
							image="units/human-outlaws/poacher-attack.png"
							sound="dagger-swish.wav"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-150"
							end="50"
							image="units/human-outlaws/poacher-attack.png"
							sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
						[/frame]
					[/else]
					[frame]
						begin="50"
						end="150"
						image="units/human-outlaws/poacher-dagger.png"
					[/frame]
				[/attack_anim]
				[defend]
					start_time="-126"
					[filter_attack]
						range="melee"
					[/filter_attack]
					[frame]
						duration="1"
						image="units/human-outlaws/poacher-dagger.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/poacher-defend.png"
					[/frame]
					[if]
						hits="hit"
						[frame]
							duration="150"
							image="units/human-outlaws/poacher-defend.png"
							sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
						[/frame]
					[/if]
					[else]
						hits="miss,kill"
						[frame]
							duration="150"
							image="units/human-outlaws/poacher-defend.png"
						[/frame]
					[/else]
					[frame]
						duration="1"
						image="units/human-outlaws/poacher-dagger.png"
					[/frame]
				[/defend]
				[defend]
					start_time="-126"
					[filter_attack]
						range="ranged"
					[/filter_attack]
					[frame]
						duration="1"
						image="units/human-outlaws/poacher.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/poacher-bow-defend.png"
					[/frame]
					[if]
						hits="hit"
						[frame]
							duration="150"
							image="units/human-outlaws/poacher-bow-defend.png"
							sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
						[/frame]
					[/if]
					[else]
						hits="miss,kill"
						[frame]
							duration="150"
							image="units/human-outlaws/poacher-bow-defend.png"
						[/frame]
					[/else]
					[frame]
						duration="1"
						image="units/human-outlaws/poacher.png"
					[/frame]
				[/defend]
				[portrait]
					image="portraits/humans/transparent/trapper.png"
					mirror="false"
					side="left"
					size="400"
				[/portrait]
				[portrait]
					image="portraits/humans/transparent/trapper.png"
					mirror="true"
					side="right"
					size="400"
				[/portrait]
				[defense]
					castle="40"
					cave="60"
					deep_water="80"
					flat="60"
					forest="40"
					frozen="80"
					fungus="50"
					hills="50"
					impassable="60"
					mountains="40"
					reef="70"
					sand="70"
					shallow_water="80"
					swamp_water="50"
					unwalkable="80"
					village="40"
				[/defense]
				[movement_costs]
					castle="1"
					cave="2"
					deep_water="99"
					flat="1"
					forest="2"
					frozen="3"
					fungus="2"
					hills="2"
					impassable="99"
					mountains="3"
					reef="2"
					sand="2"
					shallow_water="3"
					swamp_water="2"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="80"
					blade="100"
					cold="100"
					fire="100"
					impact="100"
					pierce="100"
				[/resistance]
				[variables]
				[/variables]
				[status]
					hidden="yes"
				[/status]
				[attack]
					damage="4"
					description=_ "dagger"
					icon="attacks/dagger-human.png"
					name="dagger"
					number="2"
					range="melee"
					type="blade"
				[/attack]
				[attack]
					damage="4"
					description=_ "bow"
					name="bow"
					number="4"
					range="ranged"
					type="pierce"
				[/attack]
				[modifications]
					[trait]
#textdomain wesnoth
						female_name=_ "female^intelligent"
						id="intelligent"
						male_name=_ "intelligent"
						name=_ "intelligent"
						[effect]
							apply_to="max_experience"
							increase="-20%"
						[/effect]
					[/trait]
					[trait]
						female_name=_ "female^strong"
						id="strong"
						male_name=_ "strong"
						name=_ "strong"
						[effect]
							apply_to="attack"
							increase_damage="1"
							range="melee"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="1"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				advances_to="Outlaw"
				alignment="chaotic"
				alpha="256"
				attacks_left="1"
				cost="14"
				die_sound="human-female-die-1.ogg,human-female-die-2.ogg,human-female-die-3.ogg"
				ellipse="misc/ellipse"
				experience="0"
				facing="s"
				flag_rgb="magenta"
				flying="no"
				gender="female"
				goto_x="-999"
				goto_y="-999"
				hitpoints="29"
				id="Footpad-30"
				image="units/human-outlaws/footpad+female.png"
#textdomain wesnoth-units
				language_name=_ "female^Footpad"
				level="1"
				max_attacks="1"
				max_experience="20"
				max_hitpoints="29"
				max_moves="8"
				movement="7"
				movement_type="elusivefoot"
				moves="8"
				name="Alwlonna"
				race="human"
				random_gender="no"
				random_traits="no"
				resting="yes"
				side="1"
				type="Footpad"
				underlying_id="30"
				unrenamable="no"
				upkeep="full"
				usage="scout"
				x="17"
				y="8"
				zoc="yes"
				[attack_anim]
					offset="0.0"
					[filter_attack]
						name="sling"
					[/filter_attack]
					[if]
						hits="yes"
						[sling_stone_frame]
							begin="-201"
							end="-200"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="-200"
							end="0"
							halo="projectiles/stone.png"
							halo_x="5~0"
							halo_y="-6~0"
							offset="0.0~1.0"
							y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="0"
							end="1"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[frame]
							begin="-400"
							end="-150"
							image="units/human-outlaws/footpad+female-attack1.png"
							sound="sling.ogg"
						[/frame]
					[/if]
					[else]
						hits="no"
						[sling_stone_frame]
							begin="-201"
							end="-200"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="-200"
							end="100"
							halo="projectiles/stone.png"
							halo_x="5~0"
							halo_y="-6~0"
							offset="0.0~1.5"
							y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="100"
							end="101"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[frame]
							begin="-400"
							end="-150"
							image="units/human-outlaws/footpad+female-attack1.png"
							sound="sling-miss.ogg"
						[/frame]
					[/else]
					[frame]
						begin="-150"
						end="50"
						image="units/human-outlaws/footpad+female-attack2.png"
					[/frame]
				[/attack_anim]
				[attack_anim]
					[filter_attack]
						name="club"
					[/filter_attack]
					[frame]
						begin="-250"
						end="-200"
						image="units/human-outlaws/footpad+female.png"
					[/frame]
					[frame]
						begin="-200"
						end="-100"
						image="units/human-outlaws/footpad+female-melee-1.png"
					[/frame]
					[if]
						hits="yes"
						[frame]
							begin="-100"
							end="100"
							image="units/human-outlaws/footpad+female-melee-2.png"
							sound="staff.wav"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-100"
							end="100"
							image="units/human-outlaws/footpad+female-melee-2.png"
							sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
						[/frame]
					[/else]
					[frame]
						begin="100"
						end="200"
						image="units/human-outlaws/footpad+female-melee-3.png"
					[/frame]
					[frame]
						begin="200"
						end="300"
						image="units/human-outlaws/footpad+female-melee-4.png"
					[/frame]
				[/attack_anim]
				[defend]
					start_time="-126"
					[frame]
						duration="1"
						image="units/human-outlaws/footpad+female.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad+female-defend.png"
					[/frame]
					[if]
						hits="hit"
						[frame]
							duration="150"
							image="units/human-outlaws/footpad+female-defend.png"
							sound="human-female-hit-1.ogg,human-female-hit-2.ogg,human-female-hit-3.ogg"
						[/frame]
					[/if]
					[else]
						hits="miss,kill"
						[frame]
							duration="150"
							image="units/human-outlaws/footpad+female-defend.png"
						[/frame]
					[/else]
					[frame]
						duration="1"
						image="units/human-outlaws/footpad+female.png"
					[/frame]
				[/defend]
				[idle_anim]
					start_time="0"
					[filter]
						[not]
							[filter_wml]
								[status]
									poisoned="yes"
								[/status]
							[/filter_wml]
						[/not]
					[/filter]
					[filter]
						[filter_adjacent]
							count="0"
							is_enemy="yes"
						[/filter_adjacent]
					[/filter]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad+female-idle-1.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad+female-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad+female-idle-3.png"
					[/frame]
					[frame]
						duration="200"
						image="units/human-outlaws/footpad+female-idle-4.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad+female-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad+female-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad+female-idle-3.png"
					[/frame]
					[frame]
						duration="200"
						image="units/human-outlaws/footpad+female-idle-4.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad+female-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad+female-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad+female-idle-1.png"
					[/frame]
				[/idle_anim]
				[defense]
					castle="30"
					cave="50"
					deep_water="70"
					flat="40"
					forest="30"
					frozen="60"
					fungus="30"
					hills="30"
					impassable="50"
					mountains="30"
					reef="50"
					sand="60"
					shallow_water="60"
					swamp_water="60"
					unwalkable="80"
					village="30"
				[/defense]
				[movement_costs]
					castle="1"
					cave="2"
					deep_water="99"
					flat="1"
					forest="2"
					frozen="2"
					fungus="2"
					hills="2"
					impassable="99"
					mountains="3"
					reef="2"
					sand="2"
					shallow_water="2"
					swamp_water="2"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="80"
					blade="130"
					cold="100"
					fire="100"
					impact="120"
					pierce="120"
				[/resistance]
				[variables]
				[/variables]
				[status]
					hidden="yes"
				[/status]
				[attack]
					damage="5"
					description=_ "club"
					icon="attacks/club-small.png"
					name="club"
					number="2"
					range="melee"
					type="impact"
				[/attack]
				[attack]
					damage="5"
					description=_ "sling"
					name="sling"
					number="2"
					range="ranged"
					type="impact"
				[/attack]
				[modifications]
					[trait]
#textdomain wesnoth
						female_name=_ "female^intelligent"
						id="intelligent"
						male_name=_ "intelligent"
						name=_ "female^intelligent"
						[effect]
							apply_to="max_experience"
							increase="-20%"
						[/effect]
					[/trait]
					[trait]
						female_name=_ "female^quick"
						id="quick"
						male_name=_ "quick"
						name=_ "female^quick"
						[effect]
							apply_to="movement"
							increase="1"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="-5%"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				advances_to="Dwarvish Stalwart"
				alignment="neutral"
				alpha="256"
				attacks_left="1"
				cost="19"
				die_sound="dwarf-die-1.ogg,dwarf-die-2.ogg"
				ellipse="misc/ellipse"
				experience="1"
				facing="nw"
				flag_rgb="magenta"
				flying="no"
				gender="male"
				goto_x="-999"
				goto_y="-999"
				hitpoints="34"
				id="Dwarvish Guardsman-31"
				image="units/dwarves/guard.png"
#textdomain wesnoth-units
				language_name=_ "Dwarvish Guardsman"
				level="1"
				max_attacks="1"
				max_experience="33"
				max_hitpoints="42"
				max_moves="5"
				movement="4"
				movement_type="dwarvishfoot"
				moves="5"
				name="Augthus"
				profile="portraits/dwarves/guard.png"
				race="dwarf"
				random_gender="no"
				random_traits="no"
				resting="yes"
				side="1"
				type="Dwarvish Guardsman"
				undead_variation="dwarf"
				underlying_id="31"
				unrenamable="no"
				upkeep="full"
				usage="fighter"
				x="10"
				y="8"
				zoc="yes"
				[attack_anim]
					[filter_attack]
						name="javelin"
					[/filter_attack]
					[missile_frame]
						begin="-150"
						end="0"
						image="projectiles/spear-n.png"
						image_diagonal="projectiles/spear-ne.png"
					[/missile_frame]
					[frame]
						begin="-250"
						end="-150"
						image="units/dwarves/guard-defend-1.png"
						sound="throw-1.wav,throw-2.wav,throw-3.wav,throw-4.wav"
					[/frame]
					[if]
						hits="yes"
						[frame]
							begin="-150"
							end="-50"
							image="units/dwarves/guard-attack.png"
							sound="spear.ogg"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-150"
							end="-50"
							image="units/dwarves/guard-attack.png"
						[/frame]
					[/else]
					[frame]
						begin="-50"
						end="0"
						image="units/dwarves/guard.png"
					[/frame]
				[/attack_anim]
				[attack_anim]
					[filter_attack]
						name="spear"
					[/filter_attack]
					[frame]
						begin="-200"
						end="-150"
						image="units/dwarves/guard.png"
					[/frame]
					[frame]
						begin="-150"
						end="-100"
						image="units/dwarves/guard-defend-1.png"
					[/frame]
					[if]
						hits="yes"
						[frame]
							begin="-100"
							end="50"
							image="units/dwarves/guard-attack.png"
							sound="spear.ogg"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-100"
							end="50"
							image="units/dwarves/guard-attack.png"
							sound="spear-miss.ogg"
						[/frame]
					[/else]
					[frame]
						begin="50"
						end="75"
						image="units/dwarves/guard-defend-2.png"
					[/frame]
					[frame]
						begin="75"
						end="150"
						image="units/dwarves/guard.png"
					[/frame]
				[/attack_anim]
				[defend]
					start_time="-126"
					[frame]
						duration="1"
						image="units/dwarves/guard-defend-1.png"
					[/frame]
					[frame]
						duration="100"
						image="units/dwarves/guard-defend-2.png"
					[/frame]
					[if]
						hits="hit"
						[frame]
							duration="150"
							image="units/dwarves/guard-defend-2.png"
							sound="dwarf-hit-1.ogg,dwarf-hit-2.ogg,dwarf-hit-3.ogg,dwarf-hit-4.ogg"
						[/frame]
					[/if]
					[else]
						hits="miss,kill"
						[frame]
							duration="150"
							image="units/dwarves/guard-defend-2.png"
						[/frame]
					[/else]
					[frame]
						duration="1"
						image="units/dwarves/guard-defend-1.png"
					[/frame]
				[/defend]
				[idle_anim]
					start_time="0"
					[filter]
						[not]
							[filter_wml]
								[status]
									poisoned="yes"
								[/status]
							[/filter_wml]
						[/not]
					[/filter]
					[filter]
						[filter_adjacent]
							count="0"
							is_enemy="yes"
						[/filter_adjacent]
					[/filter]
					[frame]
						duration="100"
						image="units/dwarves/guard-idle-1.png"
					[/frame]
					[frame]
						duration="500"
						image="units/dwarves/guard-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/dwarves/guard-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/dwarves/guard-idle-4.png"
					[/frame]
					[frame]
						duration="400"
						image="units/dwarves/guard-idle-5.png"
					[/frame]
					[frame]
						duration="500"
						image="units/dwarves/guard-idle-6.png"
					[/frame]
					[frame]
						duration="100"
						image="units/dwarves/guard-idle-1.png"
					[/frame]
				[/idle_anim]
				[portrait]
					image="portraits/dwarves/transparent/guard.png"
					mirror="false"
					side="left"
					size="400"
				[/portrait]
				[portrait]
					image="portraits/dwarves/transparent/guard.png"
					mirror="true"
					side="right"
					size="400"
				[/portrait]
				[defense]
					castle="40"
					cave="50"
					deep_water="80"
					flat="70"
					forest="70"
					frozen="70"
					fungus="60"
					hills="50"
					impassable="50"
					mountains="40"
					reef="70"
					sand="70"
					shallow_water="80"
					swamp_water="80"
					unwalkable="80"
					village="50"
				[/defense]
				[movement_costs]
					castle="1"
					cave="1"
					deep_water="99"
					flat="1"
					forest="1"
					frozen="2"
					fungus="1"
					hills="1"
					impassable="99"
					mountains="1"
					reef="2"
					sand="1"
					shallow_water="3"
					swamp_water="3"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="90"
					blade="80"
					cold="90"
					fire="90"
					impact="80"
					pierce="80"
				[/resistance]
				[abilities]
					[resistance]
						active_on="defense"
						affect_self="yes"
						apply_to="blade,pierce,impact,fire,cold,arcane"
#textdomain wesnoth
						description=_ "Steadfast:
This unit's resistances are doubled, up to a maximum of 50%, when defending. Vulnerabilities are not affected."
						female_name=_ "female^steadfast"
						id="steadfast"
						max_value="50"
						multiply="2"
						name=_ "steadfast"
						[filter_base_value]
							greater_than="0"
							less_than_equal_to="50"
						[/filter_base_value]
					[/resistance]
				[/abilities]
				[variables]
				[/variables]
				[status]
					hidden="yes"
				[/status]
				[attack]
					damage="5"
#textdomain wesnoth-units
					description=_ "spear"
					icon="attacks/spear.png"
					name="spear"
					number="3"
					range="melee"
					type="pierce"
				[/attack]
				[attack]
					damage="5"
					description=_ "javelin"
					icon="attacks/javelin-human.png"
					name="javelin"
					number="1"
					range="ranged"
					type="pierce"
				[/attack]
				[modifications]
					[trait]
#textdomain wesnoth
						female_name=_ "female^quick"
						id="quick"
						male_name=_ "quick"
						name=_ "quick"
						[effect]
							apply_to="movement"
							increase="1"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="-5%"
						[/effect]
					[/trait]
					[trait]
						description=_ "Can rest while moving, takes a quarter less poison damage"
						female_name=_ "female^healthy"
						id="healthy"
						male_name=_ "healthy"
						name=_ "healthy"
						[effect]
							apply_to="hitpoints"
							increase_total="1"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="1"
							times="per level"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				advances_to="Trapper"
				alignment="chaotic"
				alpha="256"
				attacks_left="1"
				cost="14"
				die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
				ellipse="misc/ellipse"
				experience="8"
				facing="sw"
				flag_rgb="magenta"
				flying="no"
				gender="male"
				goto_x="-999"
				goto_y="-999"
				hitpoints="33"
				id="Poacher-33"
				image="units/human-outlaws/poacher.png"
#textdomain wesnoth-units
				language_name=_ "Poacher"
				level="1"
				max_attacks="1"
				max_experience="16"
				max_hitpoints="33"
				max_moves="5"
				movement="5"
				movement_type="smallfoot"
				moves="5"
				name="Rabry"
				profile="portraits/humans/trapper.png"
				race="human"
				random_gender="no"
				random_traits="no"
				resting="yes"
				side="1"
				type="Poacher"
				undead_variation="archer"
				underlying_id="33"
				unrenamable="no"
				upkeep="full"
				usage="archer"
				x="10"
				y="7"
				zoc="yes"
				[attack_anim]
					[filter_attack]
						name="bow"
					[/filter_attack]
					[missile_frame]
						begin="-150"
						end="0"
						image="projectiles/missile-n.png"
						image_diagonal="projectiles/missile-ne.png"
					[/missile_frame]
					[if]
						hits="yes"
						[frame]
							begin="-400"
							end="-250"
							image="units/human-outlaws/poacher-attack1.png"
							sound="bow.ogg"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-400"
							end="-250"
							image="units/human-outlaws/poacher-attack1.png"
							sound="bow-miss.ogg"
						[/frame]
					[/else]
					[frame]
						begin="-250"
						end="-100"
						image="units/human-outlaws/poacher-attack2.png"
					[/frame]
					[frame]
						begin="-100"
						end="0"
						image="units/human-outlaws/poacher-attack3.png"
					[/frame]
					[frame]
						begin="0"
						end="100"
						image="units/human-outlaws/poacher.png"
					[/frame]
				[/attack_anim]
				[attack_anim]
					[filter_attack]
						name="dagger"
					[/filter_attack]
					[frame]
						begin="-250"
						end="-150"
						image="units/human-outlaws/poacher-dagger.png"
					[/frame]
					[if]
						hits="yes"
						[frame]
							begin="-150"
							end="50"
							image="units/human-outlaws/poacher-attack.png"
							sound="dagger-swish.wav"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-150"
							end="50"
							image="units/human-outlaws/poacher-attack.png"
							sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
						[/frame]
					[/else]
					[frame]
						begin="50"
						end="150"
						image="units/human-outlaws/poacher-dagger.png"
					[/frame]
				[/attack_anim]
				[defend]
					start_time="-126"
					[filter_attack]
						range="melee"
					[/filter_attack]
					[frame]
						duration="1"
						image="units/human-outlaws/poacher-dagger.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/poacher-defend.png"
					[/frame]
					[if]
						hits="hit"
						[frame]
							duration="150"
							image="units/human-outlaws/poacher-defend.png"
							sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
						[/frame]
					[/if]
					[else]
						hits="miss,kill"
						[frame]
							duration="150"
							image="units/human-outlaws/poacher-defend.png"
						[/frame]
					[/else]
					[frame]
						duration="1"
						image="units/human-outlaws/poacher-dagger.png"
					[/frame]
				[/defend]
				[defend]
					start_time="-126"
					[filter_attack]
						range="ranged"
					[/filter_attack]
					[frame]
						duration="1"
						image="units/human-outlaws/poacher.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/poacher-bow-defend.png"
					[/frame]
					[if]
						hits="hit"
						[frame]
							duration="150"
							image="units/human-outlaws/poacher-bow-defend.png"
							sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
						[/frame]
					[/if]
					[else]
						hits="miss,kill"
						[frame]
							duration="150"
							image="units/human-outlaws/poacher-bow-defend.png"
						[/frame]
					[/else]
					[frame]
						duration="1"
						image="units/human-outlaws/poacher.png"
					[/frame]
				[/defend]
				[portrait]
					image="portraits/humans/transparent/trapper.png"
					mirror="false"
					side="left"
					size="400"
				[/portrait]
				[portrait]
					image="portraits/humans/transparent/trapper.png"
					mirror="true"
					side="right"
					size="400"
				[/portrait]
				[defense]
					castle="40"
					cave="60"
					deep_water="80"
					flat="60"
					forest="40"
					frozen="80"
					fungus="50"
					hills="50"
					impassable="60"
					mountains="40"
					reef="70"
					sand="70"
					shallow_water="80"
					swamp_water="50"
					unwalkable="80"
					village="40"
				[/defense]
				[movement_costs]
					castle="1"
					cave="2"
					deep_water="99"
					flat="1"
					forest="2"
					frozen="3"
					fungus="2"
					hills="2"
					impassable="99"
					mountains="3"
					reef="2"
					sand="2"
					shallow_water="3"
					swamp_water="2"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="80"
					blade="100"
					cold="100"
					fire="100"
					impact="100"
					pierce="100"
				[/resistance]
				[variables]
				[/variables]
				[status]
					hidden="yes"
				[/status]
				[attack]
					damage="4"
					description=_ "dagger"
					icon="attacks/dagger-human.png"
					name="dagger"
					number="2"
					range="melee"
					type="blade"
				[/attack]
				[attack]
					damage="4"
					description=_ "bow"
					name="bow"
					number="4"
					range="ranged"
					type="pierce"
				[/attack]
				[modifications]
					[trait]
#textdomain wesnoth
						female_name=_ "female^intelligent"
						id="intelligent"
						male_name=_ "intelligent"
						name=_ "intelligent"
						[effect]
							apply_to="max_experience"
							increase="-20%"
						[/effect]
					[/trait]
					[trait]
						female_name=_ "female^strong"
						id="strong"
						male_name=_ "strong"
						name=_ "strong"
						[effect]
							apply_to="attack"
							increase_damage="1"
							range="melee"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="1"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				advances_to="Rogue"
				alignment="chaotic"
				alpha="256"
				attacks_left="1"
				cost="13"
				die_sound="human-female-die-1.ogg,human-female-die-2.ogg,human-female-die-3.ogg"
				ellipse="misc/ellipse"
				experience="8"
				facing="ne"
				flag_rgb="magenta"
				flying="no"
				gender="female"
				goto_x="-999"
				goto_y="-999"
				hitpoints="25"
				id="Thief-34"
				image="units/human-outlaws/thief+female.png"
#textdomain wesnoth-units
				language_name=_ "female^Thief"
				level="1"
				max_attacks="1"
				max_experience="15"
				max_hitpoints="25"
				max_moves="6"
				movement="6"
				movement_type="elusivefoot"
				moves="6"
				name="Alylla"
				profile="portraits/humans/thief+female.png"
				race="human"
				random_gender="no"
				random_traits="no"
				resting="yes"
				side="1"
				type="Thief"
				underlying_id="34"
				unrenamable="no"
				upkeep="full"
				usage="fighter"
				x="28"
				y="9"
				zoc="yes"
				[attack_anim]
					[filter_attack]
						name="dagger"
					[/filter_attack]
					[frame]
						begin="-150"
						end="-100"
						image="units/human-outlaws/thief+female.png"
					[/frame]
					[if]
						hits="yes"
						[frame]
							begin="-100"
							end="100"
							image="units/human-outlaws/thief+female-attack.png"
							sound="dagger-swish.wav"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-100"
							end="100"
							image="units/human-outlaws/thief+female-attack.png"
							sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
						[/frame]
					[/else]
					[frame]
						begin="100"
						end="150"
						image="units/human-outlaws/thief+female.png"
					[/frame]
				[/attack_anim]
				[death]
					start_time="0"
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-die-1.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-die-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-die-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-die-4.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-die-5.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-die-6.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-die-7.png"
					[/frame]
				[/death]
				[defend]
					hits="miss"
					[frame]
						begin="-126"
						end="-125"
						image="units/human-outlaws/thief+female.png"
					[/frame]
					[frame]
						begin="-125"
						end="-42"
						image="units/human-outlaws/thief+female-defend-1-1.png"
					[/frame]
					[frame]
						begin="-42"
						end="41"
						image="units/human-outlaws/thief+female-defend-1-2.png"
					[/frame]
					[frame]
						begin="41"
						end="125"
						image="units/human-outlaws/thief+female-defend-1-1.png"
					[/frame]
					[frame]
						begin="125"
						end="126"
						image="units/human-outlaws/thief+female.png"
					[/frame]
				[/defend]
				[defend]
					hits="miss"
					[frame]
						begin="-126"
						end="-125"
						image="units/human-outlaws/thief+female.png"
					[/frame]
					[frame]
						begin="-125"
						end="-42"
						image="units/human-outlaws/thief+female-defend-2-1.png"
					[/frame]
					[frame]
						begin="-42"
						end="41"
						image="units/human-outlaws/thief+female-defend-2-2.png"
					[/frame]
					[frame]
						begin="41"
						end="125"
						image="units/human-outlaws/thief+female-defend-2-1.png"
					[/frame]
					[frame]
						begin="125"
						end="126"
						image="units/human-outlaws/thief+female.png"
					[/frame]
				[/defend]
				[defend]
					hits="miss"
					[frame]
						begin="-126"
						end="-125"
						image="units/human-outlaws/thief+female.png"
					[/frame]
					[frame]
						begin="-125"
						end="-42"
						image="units/human-outlaws/thief+female-defend-3-1.png"
					[/frame]
					[frame]
						begin="-42"
						end="41"
						image="units/human-outlaws/thief+female-defend-3-2.png"
					[/frame]
					[frame]
						begin="41"
						end="125"
						image="units/human-outlaws/thief+female-defend-3-1.png"
					[/frame]
					[frame]
						begin="125"
						end="126"
						image="units/human-outlaws/thief+female.png"
					[/frame]
				[/defend]
				[defend]
					hits="kill"
					[frame]
						begin="-126"
						end="-125"
						image="units/human-outlaws/thief+female.png"
					[/frame]
					[frame]
						begin="-125"
						end="125"
						image="units/human-outlaws/thief+female-defend.png"
					[/frame]
					[frame]
						begin="125"
						end="126"
						image="units/human-outlaws/thief+female.png"
					[/frame]
				[/defend]
				[defend]
					hits="hit"
					[frame]
						begin="-126"
						end="-125"
						image="units/human-outlaws/thief+female.png"
					[/frame]
					[frame]
						begin="-125"
						end="125"
						image="units/human-outlaws/thief+female-defend.png"
						sound="human-female-hit-1.ogg,human-female-hit-2.ogg,human-female-hit-3.ogg"
					[/frame]
					[frame]
						begin="125"
						end="126"
						image="units/human-outlaws/thief+female.png"
					[/frame]
				[/defend]
				[idle_anim]
					start_time="0"
					[filter]
						[not]
							[filter_wml]
								[status]
									poisoned="yes"
								[/status]
							[/filter_wml]
						[/not]
					[/filter]
					[filter]
						[filter_adjacent]
							count="0"
							is_enemy="yes"
						[/filter_adjacent]
					[/filter]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-1.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-4.png"
					[/frame]
					[frame]
						duration="200"
						image="units/human-outlaws/thief+female-idle-5.png"
					[/frame]
					[frame]
						duration="150"
						image="units/human-outlaws/thief+female-idle-6.png"
					[/frame]
					[frame]
						duration="500"
						image="units/human-outlaws/thief+female-idle-7.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-8.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-9.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-10.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-11.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-12.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-11.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-10.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-9.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-8.png"
					[/frame]
					[frame]
						duration="300"
						image="units/human-outlaws/thief+female-idle-7.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-8.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-9.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-10.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-11.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-12.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-11.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-10.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-9.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-8.png"
					[/frame]
					[frame]
						duration="500"
						image="units/human-outlaws/thief+female-idle-7.png"
					[/frame]
					[frame]
						duration="150"
						image="units/human-outlaws/thief+female-idle-6.png"
					[/frame]
					[frame]
						duration="200"
						image="units/human-outlaws/thief+female-idle-5.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-4.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-1.png"
					[/frame]
				[/idle_anim]
				[portrait]
					image="portraits/humans/transparent/thief+female.png"
					mirror="false"
					side="left"
					size="400"
				[/portrait]
				[portrait]
					image="portraits/humans/transparent/thief+female.png"
					mirror="true"
					side="right"
					size="400"
				[/portrait]
				[defense]
					castle="30"
					cave="50"
					deep_water="70"
					flat="40"
					forest="30"
					frozen="60"
					fungus="30"
					hills="30"
					impassable="50"
					mountains="30"
					reef="50"
					sand="60"
					shallow_water="60"
					swamp_water="60"
					unwalkable="80"
					village="30"
				[/defense]
				[movement_costs]
					castle="1"
					cave="2"
					deep_water="99"
					flat="1"
					forest="2"
					frozen="2"
					fungus="2"
					hills="2"
					impassable="99"
					mountains="3"
					reef="2"
					sand="2"
					shallow_water="2"
					swamp_water="2"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="80"
					blade="130"
					cold="100"
					fire="100"
					impact="120"
					pierce="120"
				[/resistance]
				[variables]
				[/variables]
				[status]
					hidden="yes"
				[/status]
				[attack]
					damage="5"
					description=_ "dagger"
					icon="attacks/dagger-human.png"
					name="dagger"
					number="3"
					range="melee"
					type="blade"
					[specials]
						[damage]
							active_on="offense"
							backstab="yes"
#textdomain wesnoth
							description=_ "Backstab:
When used offensively, this attack deals double damage if there is an enemy of the target on the opposite side of the target, and that unit is not incapacitated (turned to stone or otherwise paralyzed)."
							id="backstab"
							multiply="2"
							name=_ "backstab"
						[/damage]
					[/specials]
				[/attack]
				[modifications]
					[trait]
						female_name=_ "female^strong"
						id="strong"
						male_name=_ "strong"
						name=_ "female^strong"
						[effect]
							apply_to="attack"
							increase_damage="1"
							range="melee"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="1"
						[/effect]
					[/trait]
					[trait]
						female_name=_ "female^intelligent"
						id="intelligent"
						male_name=_ "intelligent"
						name=_ "female^intelligent"
						[effect]
							apply_to="max_experience"
							increase="-20%"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
		[/side]
		[side]
			action_bonus_count="12"
			aggression="0.5"
			allow_player="yes"
			caution="0.25"
			colour="2"
			controller="network"
			countdown_time="270000"
			current_player="Blackadder"
			disallow_observers="no"
			fog="yes"
			global_recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
			gold="3"
			hidden="no"
			id="Blackadder2"
			income="0"
			leader_value="3"
			name="Blackadder"
			no_leader="yes"
			number_of_possible_recruits_to_force_recruit="3.1"
			objectives=_ "Victory:
@Defeat enemy leader(s)"
			objectives_changed="yes"
			recruit="Dwarvish Fighter,Dwarvish Guardsman,Dwarvish Thunderer,Dwarvish Ulfserker,Footpad,Gryphon Rider,Poacher,Thief"
			recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
			save_id="Blackadder2"
			share_maps="no"
			share_view="yes"
			shroud="no"
			side="2"
			start_gold="100"
			team_name="south"
#textdomain wesnoth-multiplayer
			user_team_name=_ "teamname^South"
			village_gold="2"
			village_value="1"
			villages_per_scout="8"
			[ai]
				recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
				villages_per_scout="8"
				[team_formula]
					rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
				[/team_formula]
			[/ai]
			[ai]
				villages_per_scout="8"
			[/ai]
			[village]
				x="11"
				y="11"
			[/village]
			[village]
				x="11"
				y="19"
			[/village]
			[village]
				x="15"
				y="20"
			[/village]
			[village]
				x="16"
				y="14"
			[/village]
			[village]
				x="20"
				y="15"
			[/village]
			[village]
				x="25"
				y="17"
			[/village]
			[village]
				x="25"
				y="21"
			[/village]
			[village]
				x="26"
				y="10"
			[/village]
			[village]
				x="30"
				y="20"
			[/village]
			[village]
				x="31"
				y="6"
			[/village]
			[village]
				x="31"
				y="10"
			[/village]
			[village]
				x="31"
				y="16"
			[/village]
			[unit]
				advances_to="Dwarvish Dragonguard"
				alignment="neutral"
				allow_changes="yes"
				allow_player="yes"
				alpha="256"
				attacks_left="1"
				canrecruit="yes"
				colour="2"
				controller="network"
				cost="30"
				current_player="Blackadder"
				die_sound="dwarf-die-1.ogg,dwarf-die-2.ogg"
				experience="0"
				facing="sw"
				flag_rgb="magenta"
				flying="no"
				fog="yes"
				gender="male"
				gold="100"
				goto_x="-999"
				goto_y="-999"
				hitpoints="42"
				id="Blackadder2"
				image="units/dwarves/thunderguard.png"
				income="0"
#textdomain wesnoth-units
				language_name=_ "Dwarvish Thunderguard"
				leader="Dwarvish Steelclad,Dwarvish Thunderguard,Dwarvish Stalwart,Rogue,Trapper"
				level="2"
				max_attacks="1"
				max_experience="67"
				max_hitpoints="42"
				max_moves="5"
				movement="4"
				movement_type="dwarvishfoot"
				moves="5"
				mp_countdown="yes"
				mp_countdown_action_bonus="20"
				mp_countdown_init_time="270"
				mp_countdown_reservoir_time="270"
				mp_countdown_turn_bonus="200"
				name="Blackadder"
				profile="portraits/dwarves/thunderer.png"
				race="dwarf"
				random_leader="Dwarvish Steelclad,Dwarvish Thunderguard,Rogue,Trapper"
				random_traits="no"
				recruit="Dwarvish Guardsman,Dwarvish Fighter,Dwarvish Ulfserker,Dwarvish Thunderer,Thief,Poacher,Footpad,Gryphon Rider"
				resting="yes"
				save_id="Blackadder2"
				share_maps="no"
				share_view="yes"
				shroud="no"
				side="2"
				team_name="south"
				terrain_liked="Hh, Ha, Mm"
				type="Dwarvish Thunderguard"
				undead_variation="dwarf"
				underlying_id="2"
				unrenamable="no"
				upkeep="full"
				usage="mixed fighter"
				user_team_name="wesnoth-multiplayerteamname^South"
				village_gold="2"
				x="21"
				y="21"
				zoc="yes"
				[portrait]
					image="portraits/dwarves/transparent/thunderer.png"
					mirror="false"
					side="left"
					size="400"
				[/portrait]
				[portrait]
					image="portraits/dwarves/transparent/thunderer.png"
					mirror="true"
					side="right"
					size="400"
				[/portrait]
				[defense]
					castle="40"
					cave="50"
					deep_water="80"
					flat="70"
					forest="70"
					frozen="70"
					fungus="60"
					hills="40"
					impassable="50"
					mountains="30"
					reef="70"
					sand="70"
					shallow_water="80"
					swamp_water="80"
					unwalkable="80"
					village="50"
				[/defense]
				[movement_costs]
					castle="1"
					cave="1"
					deep_water="99"
					flat="1"
					forest="1"
					frozen="2"
					fungus="1"
					hills="1"
					impassable="99"
					mountains="1"
					reef="2"
					sand="1"
					shallow_water="3"
					swamp_water="3"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="90"
					blade="80"
					cold="90"
					fire="90"
					impact="80"
					pierce="80"
				[/resistance]
				[variables]
				[/variables]
				[status]
					hidden="yes"
				[/status]
				[attack]
					damage="6"
					description=_ "dagger"
					icon="attacks/dagger-human.png"
					name="dagger"
					number="3"
					range="melee"
					type="blade"
				[/attack]
				[attack]
					damage="28"
					description=_ "thunderstick"
					icon="attacks/thunderstick.png"
					name="thunderstick"
					number="1"
					range="ranged"
					type="pierce"
				[/attack]
				[modifications]
					[trait]
#textdomain wesnoth
						female_name=_ "female^quick"
						id="quick"
						male_name=_ "quick"
						name=_ "quick"
						[effect]
							apply_to="movement"
							increase="1"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="-5%"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				advances_to="Rogue"
				alignment="chaotic"
				alpha="256"
				attacks_left="1"
				cost="13"
				die_sound="human-female-die-1.ogg,human-female-die-2.ogg,human-female-die-3.ogg"
				ellipse="misc/ellipse"
				experience="1"
				facing="sw"
				flag_rgb="magenta"
				flying="no"
				gender="female"
				goto_x="-999"
				goto_y="-999"
				hitpoints="29"
				id="Thief-21"
				image="units/human-outlaws/thief+female.png"
#textdomain wesnoth-units
				language_name=_ "female^Thief"
				level="1"
				max_attacks="1"
				max_experience="15"
				max_hitpoints="29"
				max_moves="6"
				movement="6"
				movement_type="elusivefoot"
				moves="3"
				name="Mulonna"
				profile="portraits/humans/thief+female.png"
				race="human"
				random_gender="no"
				random_traits="no"
				resting="no"
				side="2"
				type="Thief"
				underlying_id="21"
				unrenamable="no"
				upkeep="full"
				usage="fighter"
				x="9"
				y="12"
				zoc="yes"
				[attack_anim]
					[filter_attack]
						name="dagger"
					[/filter_attack]
					[frame]
						begin="-150"
						end="-100"
						image="units/human-outlaws/thief+female.png"
					[/frame]
					[if]
						hits="yes"
						[frame]
							begin="-100"
							end="100"
							image="units/human-outlaws/thief+female-attack.png"
							sound="dagger-swish.wav"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-100"
							end="100"
							image="units/human-outlaws/thief+female-attack.png"
							sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
						[/frame]
					[/else]
					[frame]
						begin="100"
						end="150"
						image="units/human-outlaws/thief+female.png"
					[/frame]
				[/attack_anim]
				[death]
					start_time="0"
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-die-1.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-die-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-die-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-die-4.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-die-5.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-die-6.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-die-7.png"
					[/frame]
				[/death]
				[defend]
					hits="miss"
					[frame]
						begin="-126"
						end="-125"
						image="units/human-outlaws/thief+female.png"
					[/frame]
					[frame]
						begin="-125"
						end="-42"
						image="units/human-outlaws/thief+female-defend-1-1.png"
					[/frame]
					[frame]
						begin="-42"
						end="41"
						image="units/human-outlaws/thief+female-defend-1-2.png"
					[/frame]
					[frame]
						begin="41"
						end="125"
						image="units/human-outlaws/thief+female-defend-1-1.png"
					[/frame]
					[frame]
						begin="125"
						end="126"
						image="units/human-outlaws/thief+female.png"
					[/frame]
				[/defend]
				[defend]
					hits="miss"
					[frame]
						begin="-126"
						end="-125"
						image="units/human-outlaws/thief+female.png"
					[/frame]
					[frame]
						begin="-125"
						end="-42"
						image="units/human-outlaws/thief+female-defend-2-1.png"
					[/frame]
					[frame]
						begin="-42"
						end="41"
						image="units/human-outlaws/thief+female-defend-2-2.png"
					[/frame]
					[frame]
						begin="41"
						end="125"
						image="units/human-outlaws/thief+female-defend-2-1.png"
					[/frame]
					[frame]
						begin="125"
						end="126"
						image="units/human-outlaws/thief+female.png"
					[/frame]
				[/defend]
				[defend]
					hits="miss"
					[frame]
						begin="-126"
						end="-125"
						image="units/human-outlaws/thief+female.png"
					[/frame]
					[frame]
						begin="-125"
						end="-42"
						image="units/human-outlaws/thief+female-defend-3-1.png"
					[/frame]
					[frame]
						begin="-42"
						end="41"
						image="units/human-outlaws/thief+female-defend-3-2.png"
					[/frame]
					[frame]
						begin="41"
						end="125"
						image="units/human-outlaws/thief+female-defend-3-1.png"
					[/frame]
					[frame]
						begin="125"
						end="126"
						image="units/human-outlaws/thief+female.png"
					[/frame]
				[/defend]
				[defend]
					hits="kill"
					[frame]
						begin="-126"
						end="-125"
						image="units/human-outlaws/thief+female.png"
					[/frame]
					[frame]
						begin="-125"
						end="125"
						image="units/human-outlaws/thief+female-defend.png"
					[/frame]
					[frame]
						begin="125"
						end="126"
						image="units/human-outlaws/thief+female.png"
					[/frame]
				[/defend]
				[defend]
					hits="hit"
					[frame]
						begin="-126"
						end="-125"
						image="units/human-outlaws/thief+female.png"
					[/frame]
					[frame]
						begin="-125"
						end="125"
						image="units/human-outlaws/thief+female-defend.png"
						sound="human-female-hit-1.ogg,human-female-hit-2.ogg,human-female-hit-3.ogg"
					[/frame]
					[frame]
						begin="125"
						end="126"
						image="units/human-outlaws/thief+female.png"
					[/frame]
				[/defend]
				[idle_anim]
					start_time="0"
					[filter]
						[not]
							[filter_wml]
								[status]
									poisoned="yes"
								[/status]
							[/filter_wml]
						[/not]
					[/filter]
					[filter]
						[filter_adjacent]
							count="0"
							is_enemy="yes"
						[/filter_adjacent]
					[/filter]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-1.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-4.png"
					[/frame]
					[frame]
						duration="200"
						image="units/human-outlaws/thief+female-idle-5.png"
					[/frame]
					[frame]
						duration="150"
						image="units/human-outlaws/thief+female-idle-6.png"
					[/frame]
					[frame]
						duration="500"
						image="units/human-outlaws/thief+female-idle-7.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-8.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-9.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-10.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-11.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-12.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-11.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-10.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-9.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-8.png"
					[/frame]
					[frame]
						duration="300"
						image="units/human-outlaws/thief+female-idle-7.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-8.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-9.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-10.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-11.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-12.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-11.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-10.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-9.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-8.png"
					[/frame]
					[frame]
						duration="500"
						image="units/human-outlaws/thief+female-idle-7.png"
					[/frame]
					[frame]
						duration="150"
						image="units/human-outlaws/thief+female-idle-6.png"
					[/frame]
					[frame]
						duration="200"
						image="units/human-outlaws/thief+female-idle-5.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-4.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief+female-idle-1.png"
					[/frame]
				[/idle_anim]
				[portrait]
					image="portraits/humans/transparent/thief+female.png"
					mirror="false"
					side="left"
					size="400"
				[/portrait]
				[portrait]
					image="portraits/humans/transparent/thief+female.png"
					mirror="true"
					side="right"
					size="400"
				[/portrait]
				[defense]
					castle="30"
					cave="50"
					deep_water="70"
					flat="40"
					forest="30"
					frozen="60"
					fungus="30"
					hills="30"
					impassable="50"
					mountains="30"
					reef="50"
					sand="60"
					shallow_water="60"
					swamp_water="60"
					unwalkable="80"
					village="30"
				[/defense]
				[movement_costs]
					castle="1"
					cave="2"
					deep_water="99"
					flat="1"
					forest="2"
					frozen="2"
					fungus="2"
					hills="2"
					impassable="99"
					mountains="3"
					reef="2"
					sand="2"
					shallow_water="2"
					swamp_water="2"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="80"
					blade="130"
					cold="100"
					fire="100"
					impact="120"
					pierce="120"
				[/resistance]
				[variables]
				[/variables]
				[status]
					hidden="yes"
				[/status]
				[attack]
					damage="4"
					description=_ "dagger"
					icon="attacks/dagger-human.png"
					name="dagger"
					number="3"
					range="melee"
					type="blade"
					[specials]
						[damage]
							active_on="offense"
							backstab="yes"
#textdomain wesnoth
							description=_ "Backstab:
When used offensively, this attack deals double damage if there is an enemy of the target on the opposite side of the target, and that unit is not incapacitated (turned to stone or otherwise paralyzed)."
							id="backstab"
							multiply="2"
							name=_ "backstab"
						[/damage]
					[/specials]
				[/attack]
				[modifications]
					[trait]
						female_name=_ "female^intelligent"
						id="intelligent"
						male_name=_ "intelligent"
						name=_ "female^intelligent"
						[effect]
							apply_to="max_experience"
							increase="-20%"
						[/effect]
					[/trait]
					[trait]
						female_name=_ "female^resilient"
						id="resilient"
						male_name=_ "resilient"
						name=_ "female^resilient"
						[effect]
							apply_to="hitpoints"
							increase_total="4"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="1"
							times="per level"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				advances_to="Outlaw"
				alignment="chaotic"
				alpha="256"
				attacks_left="1"
				cost="14"
				die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
				ellipse="misc/ellipse"
				experience="0"
				facing="ne"
				flag_rgb="magenta"
				flying="no"
				gender="male"
				goto_x="-999"
				goto_y="-999"
				hitpoints="29"
				id="Footpad-22"
				image="units/human-outlaws/footpad.png"
#textdomain wesnoth-units
				language_name=_ "Footpad"
				level="1"
				max_attacks="1"
				max_experience="20"
				max_hitpoints="29"
				max_moves="8"
				movement="7"
				movement_type="elusivefoot"
				moves="2"
				name="Gaecyn"
				race="human"
				random_gender="no"
				random_traits="no"
				resting="no"
				side="2"
				type="Footpad"
				underlying_id="22"
				unrenamable="no"
				upkeep="full"
				usage="scout"
				x="19"
				y="9"
				zoc="yes"
				[attack_anim]
					offset="0.0"
					[filter_attack]
						name="sling"
					[/filter_attack]
					[if]
						hits="yes"
						[sling_stone_frame]
							begin="-201"
							end="-200"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="-200"
							end="0"
							halo="projectiles/stone.png"
							halo_x="5~0"
							halo_y="-6~0"
							offset="0.0~1.0"
							y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="0"
							end="1"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[frame]
							begin="-400"
							end="-150"
							image="units/human-outlaws/footpad-attack1.png"
							sound="sling.ogg"
						[/frame]
					[/if]
					[else]
						hits="no"
						[sling_stone_frame]
							begin="-201"
							end="-200"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="-200"
							end="100"
							halo="projectiles/stone.png"
							halo_x="5~0"
							halo_y="-6~0"
							offset="0.0~1.5"
							y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="100"
							end="101"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[frame]
							begin="-400"
							end="-150"
							image="units/human-outlaws/footpad-attack1.png"
							sound="sling-miss.ogg"
						[/frame]
					[/else]
					[frame]
						begin="-150"
						end="50"
						image="units/human-outlaws/footpad-attack2.png"
					[/frame]
				[/attack_anim]
				[attack_anim]
					[filter_attack]
						name="club"
					[/filter_attack]
					[frame]
						begin="-250"
						end="-200"
						image="units/human-outlaws/footpad.png"
					[/frame]
					[frame]
						begin="-200"
						end="-100"
						image="units/human-outlaws/footpad-melee-1.png"
					[/frame]
					[if]
						hits="yes"
						[frame]
							begin="-100"
							end="100"
							image="units/human-outlaws/footpad-melee-2.png"
							sound="staff.wav"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-100"
							end="100"
							image="units/human-outlaws/footpad-melee-2.png"
							sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
						[/frame]
					[/else]
					[frame]
						begin="100"
						end="200"
						image="units/human-outlaws/footpad-melee-3.png"
					[/frame]
					[frame]
						begin="200"
						end="300"
						image="units/human-outlaws/footpad-melee-4.png"
					[/frame]
				[/attack_anim]
				[defend]
					start_time="-126"
					[frame]
						duration="1"
						image="units/human-outlaws/footpad.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-defend.png"
					[/frame]
					[if]
						hits="hit"
						[frame]
							duration="150"
							image="units/human-outlaws/footpad-defend.png"
							sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
						[/frame]
					[/if]
					[else]
						hits="miss,kill"
						[frame]
							duration="150"
							image="units/human-outlaws/footpad-defend.png"
						[/frame]
					[/else]
					[frame]
						duration="1"
						image="units/human-outlaws/footpad.png"
					[/frame]
				[/defend]
				[idle_anim]
					start_time="0"
					[filter]
						[not]
							[filter_wml]
								[status]
									poisoned="yes"
								[/status]
							[/filter_wml]
						[/not]
					[/filter]
					[filter]
						[filter_adjacent]
							count="0"
							is_enemy="yes"
						[/filter_adjacent]
					[/filter]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-1.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="200"
						image="units/human-outlaws/footpad-idle-4.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="200"
						image="units/human-outlaws/footpad-idle-4.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-1.png"
					[/frame]
				[/idle_anim]
				[defense]
					castle="30"
					cave="50"
					deep_water="70"
					flat="40"
					forest="30"
					frozen="60"
					fungus="30"
					hills="30"
					impassable="50"
					mountains="30"
					reef="50"
					sand="60"
					shallow_water="60"
					swamp_water="60"
					unwalkable="80"
					village="30"
				[/defense]
				[movement_costs]
					castle="1"
					cave="2"
					deep_water="99"
					flat="1"
					forest="2"
					frozen="2"
					fungus="2"
					hills="2"
					impassable="99"
					mountains="3"
					reef="2"
					sand="2"
					shallow_water="2"
					swamp_water="2"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="80"
					blade="130"
					cold="100"
					fire="100"
					impact="120"
					pierce="120"
				[/resistance]
				[variables]
				[/variables]
				[status]
					hidden="yes"
				[/status]
				[attack]
					damage="5"
					description=_ "club"
					icon="attacks/club-small.png"
					name="club"
					number="2"
					range="melee"
					type="impact"
				[/attack]
				[attack]
					damage="5"
					description=_ "sling"
					name="sling"
					number="2"
					range="ranged"
					type="impact"
				[/attack]
				[modifications]
					[trait]
#textdomain wesnoth
						female_name=_ "female^intelligent"
						id="intelligent"
						male_name=_ "intelligent"
						name=_ "intelligent"
						[effect]
							apply_to="max_experience"
							increase="-20%"
						[/effect]
					[/trait]
					[trait]
						female_name=_ "female^quick"
						id="quick"
						male_name=_ "quick"
						name=_ "quick"
						[effect]
							apply_to="movement"
							increase="1"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="-5%"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				advances_to="Trapper"
				alignment="chaotic"
				alpha="256"
				attacks_left="1"
				cost="14"
				die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
				ellipse="misc/ellipse"
				experience="2"
				facing="se"
				flag_rgb="magenta"
				flying="no"
				gender="male"
				goto_x="-999"
				goto_y="-999"
				hitpoints="23"
				id="Poacher-23"
				image="units/human-outlaws/poacher.png"
#textdomain wesnoth-units
				language_name=_ "Poacher"
				level="1"
				max_attacks="1"
				max_experience="16"
				max_hitpoints="33"
				max_moves="5"
				movement="5"
				movement_type="smallfoot"
				moves="3"
				name="Veoddryn"
				profile="portraits/humans/trapper.png"
				race="human"
				random_gender="no"
				random_traits="no"
				resting="no"
				side="2"
				type="Poacher"
				undead_variation="archer"
				underlying_id="23"
				unrenamable="no"
				upkeep="full"
				usage="archer"
				x="11"
				y="11"
				zoc="yes"
				[attack_anim]
					[filter_attack]
						name="bow"
					[/filter_attack]
					[missile_frame]
						begin="-150"
						end="0"
						image="projectiles/missile-n.png"
						image_diagonal="projectiles/missile-ne.png"
					[/missile_frame]
					[if]
						hits="yes"
						[frame]
							begin="-400"
							end="-250"
							image="units/human-outlaws/poacher-attack1.png"
							sound="bow.ogg"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-400"
							end="-250"
							image="units/human-outlaws/poacher-attack1.png"
							sound="bow-miss.ogg"
						[/frame]
					[/else]
					[frame]
						begin="-250"
						end="-100"
						image="units/human-outlaws/poacher-attack2.png"
					[/frame]
					[frame]
						begin="-100"
						end="0"
						image="units/human-outlaws/poacher-attack3.png"
					[/frame]
					[frame]
						begin="0"
						end="100"
						image="units/human-outlaws/poacher.png"
					[/frame]
				[/attack_anim]
				[attack_anim]
					[filter_attack]
						name="dagger"
					[/filter_attack]
					[frame]
						begin="-250"
						end="-150"
						image="units/human-outlaws/poacher-dagger.png"
					[/frame]
					[if]
						hits="yes"
						[frame]
							begin="-150"
							end="50"
							image="units/human-outlaws/poacher-attack.png"
							sound="dagger-swish.wav"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-150"
							end="50"
							image="units/human-outlaws/poacher-attack.png"
							sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
						[/frame]
					[/else]
					[frame]
						begin="50"
						end="150"
						image="units/human-outlaws/poacher-dagger.png"
					[/frame]
				[/attack_anim]
				[defend]
					start_time="-126"
					[filter_attack]
						range="melee"
					[/filter_attack]
					[frame]
						duration="1"
						image="units/human-outlaws/poacher-dagger.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/poacher-defend.png"
					[/frame]
					[if]
						hits="hit"
						[frame]
							duration="150"
							image="units/human-outlaws/poacher-defend.png"
							sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
						[/frame]
					[/if]
					[else]
						hits="miss,kill"
						[frame]
							duration="150"
							image="units/human-outlaws/poacher-defend.png"
						[/frame]
					[/else]
					[frame]
						duration="1"
						image="units/human-outlaws/poacher-dagger.png"
					[/frame]
				[/defend]
				[defend]
					start_time="-126"
					[filter_attack]
						range="ranged"
					[/filter_attack]
					[frame]
						duration="1"
						image="units/human-outlaws/poacher.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/poacher-bow-defend.png"
					[/frame]
					[if]
						hits="hit"
						[frame]
							duration="150"
							image="units/human-outlaws/poacher-bow-defend.png"
							sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
						[/frame]
					[/if]
					[else]
						hits="miss,kill"
						[frame]
							duration="150"
							image="units/human-outlaws/poacher-bow-defend.png"
						[/frame]
					[/else]
					[frame]
						duration="1"
						image="units/human-outlaws/poacher.png"
					[/frame]
				[/defend]
				[portrait]
					image="portraits/humans/transparent/trapper.png"
					mirror="false"
					side="left"
					size="400"
				[/portrait]
				[portrait]
					image="portraits/humans/transparent/trapper.png"
					mirror="true"
					side="right"
					size="400"
				[/portrait]
				[defense]
					castle="40"
					cave="60"
					deep_water="80"
					flat="60"
					forest="40"
					frozen="80"
					fungus="50"
					hills="50"
					impassable="60"
					mountains="40"
					reef="70"
					sand="70"
					shallow_water="80"
					swamp_water="50"
					unwalkable="80"
					village="40"
				[/defense]
				[movement_costs]
					castle="1"
					cave="2"
					deep_water="99"
					flat="1"
					forest="2"
					frozen="3"
					fungus="2"
					hills="2"
					impassable="99"
					mountains="3"
					reef="2"
					sand="2"
					shallow_water="3"
					swamp_water="2"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="80"
					blade="100"
					cold="100"
					fire="100"
					impact="100"
					pierce="100"
				[/resistance]
				[variables]
				[/variables]
				[status]
					hidden="yes"
				[/status]
				[attack]
					damage="4"
					description=_ "dagger"
					icon="attacks/dagger-human.png"
					name="dagger"
					number="2"
					range="melee"
					type="blade"
				[/attack]
				[attack]
					damage="4"
					description=_ "bow"
					name="bow"
					number="4"
					range="ranged"
					type="pierce"
				[/attack]
				[modifications]
					[trait]
#textdomain wesnoth
						female_name=_ "female^intelligent"
						id="intelligent"
						male_name=_ "intelligent"
						name=_ "intelligent"
						[effect]
							apply_to="max_experience"
							increase="-20%"
						[/effect]
					[/trait]
					[trait]
						female_name=_ "female^strong"
						id="strong"
						male_name=_ "strong"
						name=_ "strong"
						[effect]
							apply_to="attack"
							increase_damage="1"
							range="melee"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="1"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				advances_to="Outlaw"
				alignment="chaotic"
				alpha="256"
				attacks_left="1"
				cost="14"
				die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
				ellipse="misc/ellipse"
				experience="0"
				facing="se"
				flag_rgb="magenta"
				flying="no"
				gender="male"
				goto_x="-999"
				goto_y="-999"
				hitpoints="31"
				id="Footpad-24"
				image="units/human-outlaws/footpad.png"
#textdomain wesnoth-units
				language_name=_ "Footpad"
				level="1"
				max_attacks="1"
				max_experience="20"
				max_hitpoints="31"
				max_moves="7"
				movement="7"
				movement_type="elusivefoot"
				moves="7"
				name="Blenyn"
				race="human"
				random_gender="no"
				random_traits="no"
				resting="yes"
				side="2"
				type="Footpad"
				underlying_id="24"
				unrenamable="no"
				upkeep="full"
				usage="scout"
				x="31"
				y="6"
				zoc="yes"
				[attack_anim]
					offset="0.0"
					[filter_attack]
						name="sling"
					[/filter_attack]
					[if]
						hits="yes"
						[sling_stone_frame]
							begin="-201"
							end="-200"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="-200"
							end="0"
							halo="projectiles/stone.png"
							halo_x="5~0"
							halo_y="-6~0"
							offset="0.0~1.0"
							y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="0"
							end="1"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[frame]
							begin="-400"
							end="-150"
							image="units/human-outlaws/footpad-attack1.png"
							sound="sling.ogg"
						[/frame]
					[/if]
					[else]
						hits="no"
						[sling_stone_frame]
							begin="-201"
							end="-200"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="-200"
							end="100"
							halo="projectiles/stone.png"
							halo_x="5~0"
							halo_y="-6~0"
							offset="0.0~1.5"
							y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="100"
							end="101"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[frame]
							begin="-400"
							end="-150"
							image="units/human-outlaws/footpad-attack1.png"
							sound="sling-miss.ogg"
						[/frame]
					[/else]
					[frame]
						begin="-150"
						end="50"
						image="units/human-outlaws/footpad-attack2.png"
					[/frame]
				[/attack_anim]
				[attack_anim]
					[filter_attack]
						name="club"
					[/filter_attack]
					[frame]
						begin="-250"
						end="-200"
						image="units/human-outlaws/footpad.png"
					[/frame]
					[frame]
						begin="-200"
						end="-100"
						image="units/human-outlaws/footpad-melee-1.png"
					[/frame]
					[if]
						hits="yes"
						[frame]
							begin="-100"
							end="100"
							image="units/human-outlaws/footpad-melee-2.png"
							sound="staff.wav"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-100"
							end="100"
							image="units/human-outlaws/footpad-melee-2.png"
							sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
						[/frame]
					[/else]
					[frame]
						begin="100"
						end="200"
						image="units/human-outlaws/footpad-melee-3.png"
					[/frame]
					[frame]
						begin="200"
						end="300"
						image="units/human-outlaws/footpad-melee-4.png"
					[/frame]
				[/attack_anim]
				[defend]
					start_time="-126"
					[frame]
						duration="1"
						image="units/human-outlaws/footpad.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-defend.png"
					[/frame]
					[if]
						hits="hit"
						[frame]
							duration="150"
							image="units/human-outlaws/footpad-defend.png"
							sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
						[/frame]
					[/if]
					[else]
						hits="miss,kill"
						[frame]
							duration="150"
							image="units/human-outlaws/footpad-defend.png"
						[/frame]
					[/else]
					[frame]
						duration="1"
						image="units/human-outlaws/footpad.png"
					[/frame]
				[/defend]
				[idle_anim]
					start_time="0"
					[filter]
						[not]
							[filter_wml]
								[status]
									poisoned="yes"
								[/status]
							[/filter_wml]
						[/not]
					[/filter]
					[filter]
						[filter_adjacent]
							count="0"
							is_enemy="yes"
						[/filter_adjacent]
					[/filter]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-1.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="200"
						image="units/human-outlaws/footpad-idle-4.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="200"
						image="units/human-outlaws/footpad-idle-4.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-1.png"
					[/frame]
				[/idle_anim]
				[defense]
					castle="30"
					cave="50"
					deep_water="70"
					flat="40"
					forest="30"
					frozen="60"
					fungus="30"
					hills="30"
					impassable="50"
					mountains="30"
					reef="50"
					sand="60"
					shallow_water="60"
					swamp_water="60"
					unwalkable="80"
					village="30"
				[/defense]
				[movement_costs]
					castle="1"
					cave="2"
					deep_water="99"
					flat="1"
					forest="2"
					frozen="2"
					fungus="2"
					hills="2"
					impassable="99"
					mountains="3"
					reef="2"
					sand="2"
					shallow_water="2"
					swamp_water="2"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="80"
					blade="130"
					cold="100"
					fire="100"
					impact="120"
					pierce="120"
				[/resistance]
				[variables]
				[/variables]
				[status]
					hidden="yes"
				[/status]
				[attack]
					damage="6"
					description=_ "club"
					icon="attacks/club-small.png"
					name="club"
					number="2"
					range="melee"
					type="impact"
				[/attack]
				[attack]
					damage="5"
					description=_ "sling"
					name="sling"
					number="2"
					range="ranged"
					type="impact"
				[/attack]
				[modifications]
					[trait]
#textdomain wesnoth
						female_name=_ "female^strong"
						id="strong"
						male_name=_ "strong"
						name=_ "strong"
						[effect]
							apply_to="attack"
							increase_damage="1"
							range="melee"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="1"
						[/effect]
					[/trait]
					[trait]
						female_name=_ "female^intelligent"
						id="intelligent"
						male_name=_ "intelligent"
						name=_ "intelligent"
						[effect]
							apply_to="max_experience"
							increase="-20%"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				advances_to="Trapper"
				alignment="chaotic"
				alpha="256"
				attacks_left="0"
				cost="14"
				die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
				ellipse="misc/ellipse"
				experience="1"
				facing="se"
				flag_rgb="magenta"
				flying="no"
				gender="male"
				goto_x="-999"
				goto_y="-999"
				hitpoints="25"
				id="Poacher-26"
				image="units/human-outlaws/poacher.png"
#textdomain wesnoth-units
				language_name=_ "Poacher"
				level="1"
				max_attacks="1"
				max_experience="16"
				max_hitpoints="30"
				max_moves="6"
				movement="5"
				movement_type="smallfoot"
				moves="0"
				name="Cent"
				profile="portraits/humans/trapper.png"
				race="human"
				random_gender="no"
				random_traits="no"
				resting="no"
				side="2"
				type="Poacher"
				undead_variation="archer"
				underlying_id="26"
				unrenamable="no"
				upkeep="full"
				usage="archer"
				x="26"
				y="10"
				zoc="yes"
				[attack_anim]
					[filter_attack]
						name="bow"
					[/filter_attack]
					[missile_frame]
						begin="-150"
						end="0"
						image="projectiles/missile-n.png"
						image_diagonal="projectiles/missile-ne.png"
					[/missile_frame]
					[if]
						hits="yes"
						[frame]
							begin="-400"
							end="-250"
							image="units/human-outlaws/poacher-attack1.png"
							sound="bow.ogg"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-400"
							end="-250"
							image="units/human-outlaws/poacher-attack1.png"
							sound="bow-miss.ogg"
						[/frame]
					[/else]
					[frame]
						begin="-250"
						end="-100"
						image="units/human-outlaws/poacher-attack2.png"
					[/frame]
					[frame]
						begin="-100"
						end="0"
						image="units/human-outlaws/poacher-attack3.png"
					[/frame]
					[frame]
						begin="0"
						end="100"
						image="units/human-outlaws/poacher.png"
					[/frame]
				[/attack_anim]
				[attack_anim]
					[filter_attack]
						name="dagger"
					[/filter_attack]
					[frame]
						begin="-250"
						end="-150"
						image="units/human-outlaws/poacher-dagger.png"
					[/frame]
					[if]
						hits="yes"
						[frame]
							begin="-150"
							end="50"
							image="units/human-outlaws/poacher-attack.png"
							sound="dagger-swish.wav"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-150"
							end="50"
							image="units/human-outlaws/poacher-attack.png"
							sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
						[/frame]
					[/else]
					[frame]
						begin="50"
						end="150"
						image="units/human-outlaws/poacher-dagger.png"
					[/frame]
				[/attack_anim]
				[defend]
					start_time="-126"
					[filter_attack]
						range="melee"
					[/filter_attack]
					[frame]
						duration="1"
						image="units/human-outlaws/poacher-dagger.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/poacher-defend.png"
					[/frame]
					[if]
						hits="hit"
						[frame]
							duration="150"
							image="units/human-outlaws/poacher-defend.png"
							sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
						[/frame]
					[/if]
					[else]
						hits="miss,kill"
						[frame]
							duration="150"
							image="units/human-outlaws/poacher-defend.png"
						[/frame]
					[/else]
					[frame]
						duration="1"
						image="units/human-outlaws/poacher-dagger.png"
					[/frame]
				[/defend]
				[defend]
					start_time="-126"
					[filter_attack]
						range="ranged"
					[/filter_attack]
					[frame]
						duration="1"
						image="units/human-outlaws/poacher.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/poacher-bow-defend.png"
					[/frame]
					[if]
						hits="hit"
						[frame]
							duration="150"
							image="units/human-outlaws/poacher-bow-defend.png"
							sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
						[/frame]
					[/if]
					[else]
						hits="miss,kill"
						[frame]
							duration="150"
							image="units/human-outlaws/poacher-bow-defend.png"
						[/frame]
					[/else]
					[frame]
						duration="1"
						image="units/human-outlaws/poacher.png"
					[/frame]
				[/defend]
				[portrait]
					image="portraits/humans/transparent/trapper.png"
					mirror="false"
					side="left"
					size="400"
				[/portrait]
				[portrait]
					image="portraits/humans/transparent/trapper.png"
					mirror="true"
					side="right"
					size="400"
				[/portrait]
				[defense]
					castle="40"
					cave="60"
					deep_water="80"
					flat="60"
					forest="40"
					frozen="80"
					fungus="50"
					hills="50"
					impassable="60"
					mountains="40"
					reef="70"
					sand="70"
					shallow_water="80"
					swamp_water="50"
					unwalkable="80"
					village="40"
				[/defense]
				[movement_costs]
					castle="1"
					cave="2"
					deep_water="99"
					flat="1"
					forest="2"
					frozen="3"
					fungus="2"
					hills="2"
					impassable="99"
					mountains="3"
					reef="2"
					sand="2"
					shallow_water="3"
					swamp_water="2"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="80"
					blade="100"
					cold="100"
					fire="100"
					impact="100"
					pierce="100"
				[/resistance]
				[variables]
				[/variables]
				[status]
				[/status]
				[attack]
					damage="3"
					description=_ "dagger"
					icon="attacks/dagger-human.png"
					name="dagger"
					number="2"
					range="melee"
					type="blade"
				[/attack]
				[attack]
					damage="4"
					description=_ "bow"
					name="bow"
					number="4"
					range="ranged"
					type="pierce"
				[/attack]
				[modifications]
					[trait]
#textdomain wesnoth
						female_name=_ "female^quick"
						id="quick"
						male_name=_ "quick"
						name=_ "quick"
						[effect]
							apply_to="movement"
							increase="1"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="-5%"
						[/effect]
					[/trait]
					[trait]
						female_name=_ "female^intelligent"
						id="intelligent"
						male_name=_ "intelligent"
						name=_ "intelligent"
						[effect]
							apply_to="max_experience"
							increase="-20%"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				advances_to="Outlaw"
				alignment="chaotic"
				alpha="256"
				attacks_left="1"
				cost="14"
				die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
				ellipse="misc/ellipse"
				experience="0"
				facing="ne"
				flag_rgb="magenta"
				flying="no"
				gender="male"
				goto_x="-999"
				goto_y="-999"
				hitpoints="36"
				id="Footpad-35"
				image="units/human-outlaws/footpad.png"
#textdomain wesnoth-units
				language_name=_ "Footpad"
				level="1"
				max_attacks="1"
				max_experience="25"
				max_hitpoints="36"
				max_moves="7"
				movement="7"
				movement_type="elusivefoot"
				moves="0"
				name="Meodd"
				race="human"
				random_gender="no"
				random_traits="no"
				resting="no"
				side="2"
				type="Footpad"
				underlying_id="35"
				unrenamable="no"
				upkeep="full"
				usage="scout"
				x="31"
				y="10"
				zoc="yes"
				[attack_anim]
					offset="0.0"
					[filter_attack]
						name="sling"
					[/filter_attack]
					[if]
						hits="yes"
						[sling_stone_frame]
							begin="-201"
							end="-200"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="-200"
							end="0"
							halo="projectiles/stone.png"
							halo_x="5~0"
							halo_y="-6~0"
							offset="0.0~1.0"
							y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="0"
							end="1"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[frame]
							begin="-400"
							end="-150"
							image="units/human-outlaws/footpad-attack1.png"
							sound="sling.ogg"
						[/frame]
					[/if]
					[else]
						hits="no"
						[sling_stone_frame]
							begin="-201"
							end="-200"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="-200"
							end="100"
							halo="projectiles/stone.png"
							halo_x="5~0"
							halo_y="-6~0"
							offset="0.0~1.5"
							y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="100"
							end="101"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[frame]
							begin="-400"
							end="-150"
							image="units/human-outlaws/footpad-attack1.png"
							sound="sling-miss.ogg"
						[/frame]
					[/else]
					[frame]
						begin="-150"
						end="50"
						image="units/human-outlaws/footpad-attack2.png"
					[/frame]
				[/attack_anim]
				[attack_anim]
					[filter_attack]
						name="club"
					[/filter_attack]
					[frame]
						begin="-250"
						end="-200"
						image="units/human-outlaws/footpad.png"
					[/frame]
					[frame]
						begin="-200"
						end="-100"
						image="units/human-outlaws/footpad-melee-1.png"
					[/frame]
					[if]
						hits="yes"
						[frame]
							begin="-100"
							end="100"
							image="units/human-outlaws/footpad-melee-2.png"
							sound="staff.wav"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-100"
							end="100"
							image="units/human-outlaws/footpad-melee-2.png"
							sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
						[/frame]
					[/else]
					[frame]
						begin="100"
						end="200"
						image="units/human-outlaws/footpad-melee-3.png"
					[/frame]
					[frame]
						begin="200"
						end="300"
						image="units/human-outlaws/footpad-melee-4.png"
					[/frame]
				[/attack_anim]
				[defend]
					start_time="-126"
					[frame]
						duration="1"
						image="units/human-outlaws/footpad.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-defend.png"
					[/frame]
					[if]
						hits="hit"
						[frame]
							duration="150"
							image="units/human-outlaws/footpad-defend.png"
							sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
						[/frame]
					[/if]
					[else]
						hits="miss,kill"
						[frame]
							duration="150"
							image="units/human-outlaws/footpad-defend.png"
						[/frame]
					[/else]
					[frame]
						duration="1"
						image="units/human-outlaws/footpad.png"
					[/frame]
				[/defend]
				[idle_anim]
					start_time="0"
					[filter]
						[not]
							[filter_wml]
								[status]
									poisoned="yes"
								[/status]
							[/filter_wml]
						[/not]
					[/filter]
					[filter]
						[filter_adjacent]
							count="0"
							is_enemy="yes"
						[/filter_adjacent]
					[/filter]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-1.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="200"
						image="units/human-outlaws/footpad-idle-4.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="200"
						image="units/human-outlaws/footpad-idle-4.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-1.png"
					[/frame]
				[/idle_anim]
				[defense]
					castle="30"
					cave="50"
					deep_water="70"
					flat="40"
					forest="30"
					frozen="60"
					fungus="30"
					hills="30"
					impassable="50"
					mountains="30"
					reef="50"
					sand="60"
					shallow_water="60"
					swamp_water="60"
					unwalkable="80"
					village="30"
				[/defense]
				[movement_costs]
					castle="1"
					cave="2"
					deep_water="99"
					flat="1"
					forest="2"
					frozen="2"
					fungus="2"
					hills="2"
					impassable="99"
					mountains="3"
					reef="2"
					sand="2"
					shallow_water="2"
					swamp_water="2"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="80"
					blade="130"
					cold="100"
					fire="100"
					impact="120"
					pierce="120"
				[/resistance]
				[variables]
				[/variables]
				[status]
					hidden="yes"
				[/status]
				[attack]
					damage="6"
					description=_ "club"
					icon="attacks/club-small.png"
					name="club"
					number="2"
					range="melee"
					type="impact"
				[/attack]
				[attack]
					damage="5"
					description=_ "sling"
					name="sling"
					number="2"
					range="ranged"
					type="impact"
				[/attack]
				[modifications]
					[trait]
#textdomain wesnoth
						female_name=_ "female^resilient"
						id="resilient"
						male_name=_ "resilient"
						name=_ "resilient"
						[effect]
							apply_to="hitpoints"
							increase_total="4"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="1"
							times="per level"
						[/effect]
					[/trait]
					[trait]
						female_name=_ "female^strong"
						id="strong"
						male_name=_ "strong"
						name=_ "strong"
						[effect]
							apply_to="attack"
							increase_damage="1"
							range="melee"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="1"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				advances_to="Outlaw"
				alignment="chaotic"
				alpha="256"
				attacks_left="1"
				cost="14"
				die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
				ellipse="misc/ellipse"
				experience="0"
				facing="nw"
				flag_rgb="magenta"
				flying="no"
				gender="male"
				goto_x="-999"
				goto_y="-999"
				hitpoints="31"
				id="Footpad-36"
				image="units/human-outlaws/footpad.png"
#textdomain wesnoth-units
				language_name=_ "Footpad"
				level="1"
				max_attacks="1"
				max_experience="20"
				max_hitpoints="31"
				max_moves="7"
				movement="7"
				movement_type="elusivefoot"
				moves="2"
				name="Owodd"
				race="human"
				random_gender="no"
				random_traits="no"
				resting="no"
				side="2"
				type="Footpad"
				underlying_id="36"
				unrenamable="no"
				upkeep="full"
				usage="scout"
				x="12"
				y="10"
				zoc="yes"
				[attack_anim]
					offset="0.0"
					[filter_attack]
						name="sling"
					[/filter_attack]
					[if]
						hits="yes"
						[sling_stone_frame]
							begin="-201"
							end="-200"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="-200"
							end="0"
							halo="projectiles/stone.png"
							halo_x="5~0"
							halo_y="-6~0"
							offset="0.0~1.0"
							y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="0"
							end="1"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[frame]
							begin="-400"
							end="-150"
							image="units/human-outlaws/footpad-attack1.png"
							sound="sling.ogg"
						[/frame]
					[/if]
					[else]
						hits="no"
						[sling_stone_frame]
							begin="-201"
							end="-200"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="-200"
							end="100"
							halo="projectiles/stone.png"
							halo_x="5~0"
							halo_y="-6~0"
							offset="0.0~1.5"
							y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="100"
							end="101"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[frame]
							begin="-400"
							end="-150"
							image="units/human-outlaws/footpad-attack1.png"
							sound="sling-miss.ogg"
						[/frame]
					[/else]
					[frame]
						begin="-150"
						end="50"
						image="units/human-outlaws/footpad-attack2.png"
					[/frame]
				[/attack_anim]
				[attack_anim]
					[filter_attack]
						name="club"
					[/filter_attack]
					[frame]
						begin="-250"
						end="-200"
						image="units/human-outlaws/footpad.png"
					[/frame]
					[frame]
						begin="-200"
						end="-100"
						image="units/human-outlaws/footpad-melee-1.png"
					[/frame]
					[if]
						hits="yes"
						[frame]
							begin="-100"
							end="100"
							image="units/human-outlaws/footpad-melee-2.png"
							sound="staff.wav"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-100"
							end="100"
							image="units/human-outlaws/footpad-melee-2.png"
							sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
						[/frame]
					[/else]
					[frame]
						begin="100"
						end="200"
						image="units/human-outlaws/footpad-melee-3.png"
					[/frame]
					[frame]
						begin="200"
						end="300"
						image="units/human-outlaws/footpad-melee-4.png"
					[/frame]
				[/attack_anim]
				[defend]
					start_time="-126"
					[frame]
						duration="1"
						image="units/human-outlaws/footpad.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-defend.png"
					[/frame]
					[if]
						hits="hit"
						[frame]
							duration="150"
							image="units/human-outlaws/footpad-defend.png"
							sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
						[/frame]
					[/if]
					[else]
						hits="miss,kill"
						[frame]
							duration="150"
							image="units/human-outlaws/footpad-defend.png"
						[/frame]
					[/else]
					[frame]
						duration="1"
						image="units/human-outlaws/footpad.png"
					[/frame]
				[/defend]
				[idle_anim]
					start_time="0"
					[filter]
						[not]
							[filter_wml]
								[status]
									poisoned="yes"
								[/status]
							[/filter_wml]
						[/not]
					[/filter]
					[filter]
						[filter_adjacent]
							count="0"
							is_enemy="yes"
						[/filter_adjacent]
					[/filter]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-1.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="200"
						image="units/human-outlaws/footpad-idle-4.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="200"
						image="units/human-outlaws/footpad-idle-4.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-1.png"
					[/frame]
				[/idle_anim]
				[defense]
					castle="30"
					cave="50"
					deep_water="70"
					flat="40"
					forest="30"
					frozen="60"
					fungus="30"
					hills="30"
					impassable="50"
					mountains="30"
					reef="50"
					sand="60"
					shallow_water="60"
					swamp_water="60"
					unwalkable="80"
					village="30"
				[/defense]
				[movement_costs]
					castle="1"
					cave="2"
					deep_water="99"
					flat="1"
					forest="2"
					frozen="2"
					fungus="2"
					hills="2"
					impassable="99"
					mountains="3"
					reef="2"
					sand="2"
					shallow_water="2"
					swamp_water="2"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="80"
					blade="130"
					cold="100"
					fire="100"
					impact="120"
					pierce="120"
				[/resistance]
				[variables]
				[/variables]
				[status]
					hidden="yes"
				[/status]
				[attack]
					damage="6"
					description=_ "club"
					icon="attacks/club-small.png"
					name="club"
					number="2"
					range="melee"
					type="impact"
				[/attack]
				[attack]
					damage="5"
					description=_ "sling"
					name="sling"
					number="2"
					range="ranged"
					type="impact"
				[/attack]
				[modifications]
					[trait]
#textdomain wesnoth
						female_name=_ "female^intelligent"
						id="intelligent"
						male_name=_ "intelligent"
						name=_ "intelligent"
						[effect]
							apply_to="max_experience"
							increase="-20%"
						[/effect]
					[/trait]
					[trait]
						female_name=_ "female^strong"
						id="strong"
						male_name=_ "strong"
						name=_ "strong"
						[effect]
							apply_to="attack"
							increase_damage="1"
							range="melee"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="1"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				advances_to="Rogue"
				alignment="chaotic"
				alpha="256"
				attacks_left="1"
				cost="13"
				die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
				ellipse="misc/ellipse"
				experience="0"
				facing="n"
				flag_rgb="magenta"
				flying="no"
				gender="male"
				goto_x="-999"
				goto_y="-999"
				hitpoints="23"
				id="Thief-37"
				image="units/human-outlaws/thief.png"
#textdomain wesnoth-units
				language_name=_ "Thief"
				level="1"
				max_attacks="1"
				max_experience="15"
				max_hitpoints="23"
				max_moves="7"
				movement="6"
				movement_type="elusivefoot"
				moves="0"
				name="Gegwyn"
				profile="portraits/humans/thief.png"
				race="human"
				random_gender="no"
				random_traits="no"
				resting="no"
				side="2"
				type="Thief"
				underlying_id="37"
				unrenamable="no"
				upkeep="full"
				usage="fighter"
				x="30"
				y="15"
				zoc="yes"
				[attack_anim]
					[filter_attack]
						name="dagger"
					[/filter_attack]
					[frame]
						begin="-150"
						end="-100"
						image="units/human-outlaws/thief.png"
					[/frame]
					[if]
						hits="yes"
						[frame]
							begin="-100"
							end="100"
							image="units/human-outlaws/thief-attack.png"
							sound="dagger-swish.wav"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-100"
							end="100"
							image="units/human-outlaws/thief-attack.png"
							sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
						[/frame]
					[/else]
					[frame]
						begin="100"
						end="150"
						image="units/human-outlaws/thief.png"
					[/frame]
				[/attack_anim]
				[death]
					start_time="0"
					[frame]
						duration="100"
						image="units/human-outlaws/thief-die-1.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-die-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-die-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-die-4.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-die-5.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-die-6.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-die-7.png"
					[/frame]
				[/death]
				[defend]
					hits="miss"
					[frame]
						begin="-126"
						end="-125"
						image="units/human-outlaws/thief.png"
					[/frame]
					[frame]
						begin="-125"
						end="-42"
						image="units/human-outlaws/thief-defend-1-1.png"
					[/frame]
					[frame]
						begin="-42"
						end="41"
						image="units/human-outlaws/thief-defend-1-2.png"
					[/frame]
					[frame]
						begin="41"
						end="125"
						image="units/human-outlaws/thief-defend-1-1.png"
					[/frame]
					[frame]
						begin="125"
						end="126"
						image="units/human-outlaws/thief.png"
					[/frame]
				[/defend]
				[defend]
					hits="miss"
					[frame]
						begin="-126"
						end="-125"
						image="units/human-outlaws/thief.png"
					[/frame]
					[frame]
						begin="-125"
						end="-42"
						image="units/human-outlaws/thief-defend-2-1.png"
					[/frame]
					[frame]
						begin="-42"
						end="41"
						image="units/human-outlaws/thief-defend-2-2.png"
					[/frame]
					[frame]
						begin="41"
						end="125"
						image="units/human-outlaws/thief-defend-2-1.png"
					[/frame]
					[frame]
						begin="125"
						end="126"
						image="units/human-outlaws/thief.png"
					[/frame]
				[/defend]
				[defend]
					hits="miss"
					[frame]
						begin="-126"
						end="-125"
						image="units/human-outlaws/thief.png"
					[/frame]
					[frame]
						begin="-125"
						end="-42"
						image="units/human-outlaws/thief-defend-3-1.png"
					[/frame]
					[frame]
						begin="-42"
						end="41"
						image="units/human-outlaws/thief-defend-3-2.png"
					[/frame]
					[frame]
						begin="41"
						end="125"
						image="units/human-outlaws/thief-defend-3-1.png"
					[/frame]
					[frame]
						begin="125"
						end="126"
						image="units/human-outlaws/thief.png"
					[/frame]
				[/defend]
				[defend]
					hits="kill"
					[frame]
						begin="-126"
						end="-125"
						image="units/human-outlaws/thief.png"
					[/frame]
					[frame]
						begin="-125"
						end="125"
						image="units/human-outlaws/thief-defend.png"
					[/frame]
					[frame]
						begin="125"
						end="126"
						image="units/human-outlaws/thief.png"
					[/frame]
				[/defend]
				[defend]
					hits="hit"
					[frame]
						begin="-126"
						end="-125"
						image="units/human-outlaws/thief.png"
					[/frame]
					[frame]
						begin="-125"
						end="125"
						image="units/human-outlaws/thief-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
					[/frame]
					[frame]
						begin="125"
						end="126"
						image="units/human-outlaws/thief.png"
					[/frame]
				[/defend]
				[idle_anim]
					start_time="0"
					[filter]
						[not]
							[filter_wml]
								[status]
									poisoned="yes"
								[/status]
							[/filter_wml]
						[/not]
					[/filter]
					[filter]
						[filter_adjacent]
							count="0"
							is_enemy="yes"
						[/filter_adjacent]
					[/filter]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-1.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-4.png"
					[/frame]
					[frame]
						duration="200"
						image="units/human-outlaws/thief-idle-5.png"
					[/frame]
					[frame]
						duration="150"
						image="units/human-outlaws/thief-idle-6.png"
					[/frame]
					[frame]
						duration="500"
						image="units/human-outlaws/thief-idle-7.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-8.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-9.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-10.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-11.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-12.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-11.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-10.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-9.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-8.png"
					[/frame]
					[frame]
						duration="300"
						image="units/human-outlaws/thief-idle-7.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-8.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-9.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-10.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-11.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-12.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-11.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-10.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-9.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-8.png"
					[/frame]
					[frame]
						duration="500"
						image="units/human-outlaws/thief-idle-7.png"
					[/frame]
					[frame]
						duration="150"
						image="units/human-outlaws/thief-idle-6.png"
					[/frame]
					[frame]
						duration="200"
						image="units/human-outlaws/thief-idle-5.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-4.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-1.png"
					[/frame]
				[/idle_anim]
				[portrait]
					image="portraits/humans/transparent/thief.png"
					mirror="false"
					side="left"
					size="400"
				[/portrait]
				[portrait]
					image="portraits/humans/transparent/thief.png"
					mirror="true"
					side="right"
					size="400"
				[/portrait]
				[defense]
					castle="30"
					cave="50"
					deep_water="70"
					flat="40"
					forest="30"
					frozen="60"
					fungus="30"
					hills="30"
					impassable="50"
					mountains="30"
					reef="50"
					sand="60"
					shallow_water="60"
					swamp_water="60"
					unwalkable="80"
					village="30"
				[/defense]
				[movement_costs]
					castle="1"
					cave="2"
					deep_water="99"
					flat="1"
					forest="2"
					frozen="2"
					fungus="2"
					hills="2"
					impassable="99"
					mountains="3"
					reef="2"
					sand="2"
					shallow_water="2"
					swamp_water="2"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="80"
					blade="130"
					cold="100"
					fire="100"
					impact="120"
					pierce="120"
				[/resistance]
				[variables]
				[/variables]
				[status]
					hidden="yes"
				[/status]
				[attack]
					damage="4"
					description=_ "dagger"
					icon="attacks/dagger-human.png"
					name="dagger"
					number="3"
					range="melee"
					type="blade"
					[specials]
						[damage]
							active_on="offense"
							backstab="yes"
#textdomain wesnoth
							description=_ "Backstab:
When used offensively, this attack deals double damage if there is an enemy of the target on the opposite side of the target, and that unit is not incapacitated (turned to stone or otherwise paralyzed)."
							id="backstab"
							multiply="2"
							name=_ "backstab"
						[/damage]
					[/specials]
				[/attack]
				[modifications]
					[trait]
						female_name=_ "female^quick"
						id="quick"
						male_name=_ "quick"
						name=_ "quick"
						[effect]
							apply_to="movement"
							increase="1"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="-5%"
						[/effect]
					[/trait]
					[trait]
						female_name=_ "female^intelligent"
						id="intelligent"
						male_name=_ "intelligent"
						name=_ "intelligent"
						[effect]
							apply_to="max_experience"
							increase="-20%"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				advances_to="Rogue"
				alignment="chaotic"
				alpha="256"
				attacks_left="0"
				cost="13"
				die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
				ellipse="misc/ellipse"
				experience="0"
				facing="se"
				flag_rgb="magenta"
				flying="no"
				gender="male"
				goto_x="-999"
				goto_y="-999"
				hitpoints="24"
				id="Thief-38"
				image="units/human-outlaws/thief.png"
#textdomain wesnoth-units
				language_name=_ "Thief"
				level="1"
				max_attacks="1"
				max_experience="20"
				max_hitpoints="24"
				max_moves="7"
				movement="6"
				movement_type="elusivefoot"
				moves="0"
				name="Tin"
				profile="portraits/humans/thief.png"
				race="human"
				random_gender="no"
				random_traits="no"
				resting="no"
				side="2"
				type="Thief"
				underlying_id="38"
				unrenamable="no"
				upkeep="full"
				usage="fighter"
				x="24"
				y="19"
				zoc="yes"
				[attack_anim]
					[filter_attack]
						name="dagger"
					[/filter_attack]
					[frame]
						begin="-150"
						end="-100"
						image="units/human-outlaws/thief.png"
					[/frame]
					[if]
						hits="yes"
						[frame]
							begin="-100"
							end="100"
							image="units/human-outlaws/thief-attack.png"
							sound="dagger-swish.wav"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-100"
							end="100"
							image="units/human-outlaws/thief-attack.png"
							sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
						[/frame]
					[/else]
					[frame]
						begin="100"
						end="150"
						image="units/human-outlaws/thief.png"
					[/frame]
				[/attack_anim]
				[death]
					start_time="0"
					[frame]
						duration="100"
						image="units/human-outlaws/thief-die-1.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-die-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-die-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-die-4.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-die-5.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-die-6.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-die-7.png"
					[/frame]
				[/death]
				[defend]
					hits="miss"
					[frame]
						begin="-126"
						end="-125"
						image="units/human-outlaws/thief.png"
					[/frame]
					[frame]
						begin="-125"
						end="-42"
						image="units/human-outlaws/thief-defend-1-1.png"
					[/frame]
					[frame]
						begin="-42"
						end="41"
						image="units/human-outlaws/thief-defend-1-2.png"
					[/frame]
					[frame]
						begin="41"
						end="125"
						image="units/human-outlaws/thief-defend-1-1.png"
					[/frame]
					[frame]
						begin="125"
						end="126"
						image="units/human-outlaws/thief.png"
					[/frame]
				[/defend]
				[defend]
					hits="miss"
					[frame]
						begin="-126"
						end="-125"
						image="units/human-outlaws/thief.png"
					[/frame]
					[frame]
						begin="-125"
						end="-42"
						image="units/human-outlaws/thief-defend-2-1.png"
					[/frame]
					[frame]
						begin="-42"
						end="41"
						image="units/human-outlaws/thief-defend-2-2.png"
					[/frame]
					[frame]
						begin="41"
						end="125"
						image="units/human-outlaws/thief-defend-2-1.png"
					[/frame]
					[frame]
						begin="125"
						end="126"
						image="units/human-outlaws/thief.png"
					[/frame]
				[/defend]
				[defend]
					hits="miss"
					[frame]
						begin="-126"
						end="-125"
						image="units/human-outlaws/thief.png"
					[/frame]
					[frame]
						begin="-125"
						end="-42"
						image="units/human-outlaws/thief-defend-3-1.png"
					[/frame]
					[frame]
						begin="-42"
						end="41"
						image="units/human-outlaws/thief-defend-3-2.png"
					[/frame]
					[frame]
						begin="41"
						end="125"
						image="units/human-outlaws/thief-defend-3-1.png"
					[/frame]
					[frame]
						begin="125"
						end="126"
						image="units/human-outlaws/thief.png"
					[/frame]
				[/defend]
				[defend]
					hits="kill"
					[frame]
						begin="-126"
						end="-125"
						image="units/human-outlaws/thief.png"
					[/frame]
					[frame]
						begin="-125"
						end="125"
						image="units/human-outlaws/thief-defend.png"
					[/frame]
					[frame]
						begin="125"
						end="126"
						image="units/human-outlaws/thief.png"
					[/frame]
				[/defend]
				[defend]
					hits="hit"
					[frame]
						begin="-126"
						end="-125"
						image="units/human-outlaws/thief.png"
					[/frame]
					[frame]
						begin="-125"
						end="125"
						image="units/human-outlaws/thief-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
					[/frame]
					[frame]
						begin="125"
						end="126"
						image="units/human-outlaws/thief.png"
					[/frame]
				[/defend]
				[idle_anim]
					start_time="0"
					[filter]
						[not]
							[filter_wml]
								[status]
									poisoned="yes"
								[/status]
							[/filter_wml]
						[/not]
					[/filter]
					[filter]
						[filter_adjacent]
							count="0"
							is_enemy="yes"
						[/filter_adjacent]
					[/filter]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-1.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-4.png"
					[/frame]
					[frame]
						duration="200"
						image="units/human-outlaws/thief-idle-5.png"
					[/frame]
					[frame]
						duration="150"
						image="units/human-outlaws/thief-idle-6.png"
					[/frame]
					[frame]
						duration="500"
						image="units/human-outlaws/thief-idle-7.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-8.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-9.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-10.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-11.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-12.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-11.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-10.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-9.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-8.png"
					[/frame]
					[frame]
						duration="300"
						image="units/human-outlaws/thief-idle-7.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-8.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-9.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-10.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-11.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-12.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-11.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-10.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-9.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-8.png"
					[/frame]
					[frame]
						duration="500"
						image="units/human-outlaws/thief-idle-7.png"
					[/frame]
					[frame]
						duration="150"
						image="units/human-outlaws/thief-idle-6.png"
					[/frame]
					[frame]
						duration="200"
						image="units/human-outlaws/thief-idle-5.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-4.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/thief-idle-1.png"
					[/frame]
				[/idle_anim]
				[portrait]
					image="portraits/humans/transparent/thief.png"
					mirror="false"
					side="left"
					size="400"
				[/portrait]
				[portrait]
					image="portraits/humans/transparent/thief.png"
					mirror="true"
					side="right"
					size="400"
				[/portrait]
				[defense]
					castle="30"
					cave="50"
					deep_water="70"
					flat="40"
					forest="30"
					frozen="60"
					fungus="30"
					hills="30"
					impassable="50"
					mountains="30"
					reef="50"
					sand="60"
					shallow_water="60"
					swamp_water="60"
					unwalkable="80"
					village="30"
				[/defense]
				[movement_costs]
					castle="1"
					cave="2"
					deep_water="99"
					flat="1"
					forest="2"
					frozen="2"
					fungus="2"
					hills="2"
					impassable="99"
					mountains="3"
					reef="2"
					sand="2"
					shallow_water="2"
					swamp_water="2"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="80"
					blade="130"
					cold="100"
					fire="100"
					impact="120"
					pierce="120"
				[/resistance]
				[variables]
				[/variables]
				[status]
				[/status]
				[attack]
					damage="5"
					description=_ "dagger"
					icon="attacks/dagger-human.png"
					name="dagger"
					number="3"
					range="melee"
					type="blade"
					[specials]
						[damage]
							active_on="offense"
							backstab="yes"
#textdomain wesnoth
							description=_ "Backstab:
When used offensively, this attack deals double damage if there is an enemy of the target on the opposite side of the target, and that unit is not incapacitated (turned to stone or otherwise paralyzed)."
							id="backstab"
							multiply="2"
							name=_ "backstab"
						[/damage]
					[/specials]
				[/attack]
				[modifications]
					[trait]
						female_name=_ "female^strong"
						id="strong"
						male_name=_ "strong"
						name=_ "strong"
						[effect]
							apply_to="attack"
							increase_damage="1"
							range="melee"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="1"
						[/effect]
					[/trait]
					[trait]
						female_name=_ "female^quick"
						id="quick"
						male_name=_ "quick"
						name=_ "quick"
						[effect]
							apply_to="movement"
							increase="1"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="-5%"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				advances_to="Outlaw"
				alignment="chaotic"
				alpha="256"
				attacks_left="0"
				cost="14"
				die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
				ellipse="misc/ellipse"
				experience="0"
				facing="se"
				flag_rgb="magenta"
				flying="no"
				gender="male"
				goto_x="-999"
				goto_y="-999"
				hitpoints="30"
				id="Footpad-39"
				image="units/human-outlaws/footpad.png"
#textdomain wesnoth-units
				language_name=_ "Footpad"
				level="1"
				max_attacks="1"
				max_experience="25"
				max_hitpoints="30"
				max_moves="8"
				movement="7"
				movement_type="elusivefoot"
				moves="0"
				name="Geollyn"
				race="human"
				random_gender="no"
				random_traits="no"
				resting="no"
				side="2"
				type="Footpad"
				underlying_id="39"
				unrenamable="no"
				upkeep="full"
				usage="scout"
				x="23"
				y="20"
				zoc="yes"
				[attack_anim]
					offset="0.0"
					[filter_attack]
						name="sling"
					[/filter_attack]
					[if]
						hits="yes"
						[sling_stone_frame]
							begin="-201"
							end="-200"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="-200"
							end="0"
							halo="projectiles/stone.png"
							halo_x="5~0"
							halo_y="-6~0"
							offset="0.0~1.0"
							y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="0"
							end="1"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[frame]
							begin="-400"
							end="-150"
							image="units/human-outlaws/footpad-attack1.png"
							sound="sling.ogg"
						[/frame]
					[/if]
					[else]
						hits="no"
						[sling_stone_frame]
							begin="-201"
							end="-200"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="-200"
							end="100"
							halo="projectiles/stone.png"
							halo_x="5~0"
							halo_y="-6~0"
							offset="0.0~1.5"
							y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
						[/sling_stone_frame]
						[sling_stone_frame]
							begin="100"
							end="101"
							image="misc/blank-hex.png"
						[/sling_stone_frame]
						[frame]
							begin="-400"
							end="-150"
							image="units/human-outlaws/footpad-attack1.png"
							sound="sling-miss.ogg"
						[/frame]
					[/else]
					[frame]
						begin="-150"
						end="50"
						image="units/human-outlaws/footpad-attack2.png"
					[/frame]
				[/attack_anim]
				[attack_anim]
					[filter_attack]
						name="club"
					[/filter_attack]
					[frame]
						begin="-250"
						end="-200"
						image="units/human-outlaws/footpad.png"
					[/frame]
					[frame]
						begin="-200"
						end="-100"
						image="units/human-outlaws/footpad-melee-1.png"
					[/frame]
					[if]
						hits="yes"
						[frame]
							begin="-100"
							end="100"
							image="units/human-outlaws/footpad-melee-2.png"
							sound="staff.wav"
						[/frame]
					[/if]
					[else]
						hits="no"
						[frame]
							begin="-100"
							end="100"
							image="units/human-outlaws/footpad-melee-2.png"
							sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
						[/frame]
					[/else]
					[frame]
						begin="100"
						end="200"
						image="units/human-outlaws/footpad-melee-3.png"
					[/frame]
					[frame]
						begin="200"
						end="300"
						image="units/human-outlaws/footpad-melee-4.png"
					[/frame]
				[/attack_anim]
				[defend]
					start_time="-126"
					[frame]
						duration="1"
						image="units/human-outlaws/footpad.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-defend.png"
					[/frame]
					[if]
						hits="hit"
						[frame]
							duration="150"
							image="units/human-outlaws/footpad-defend.png"
							sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
						[/frame]
					[/if]
					[else]
						hits="miss,kill"
						[frame]
							duration="150"
							image="units/human-outlaws/footpad-defend.png"
						[/frame]
					[/else]
					[frame]
						duration="1"
						image="units/human-outlaws/footpad.png"
					[/frame]
				[/defend]
				[idle_anim]
					start_time="0"
					[filter]
						[not]
							[filter_wml]
								[status]
									poisoned="yes"
								[/status]
							[/filter_wml]
						[/not]
					[/filter]
					[filter]
						[filter_adjacent]
							count="0"
							is_enemy="yes"
						[/filter_adjacent]
					[/filter]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-1.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="200"
						image="units/human-outlaws/footpad-idle-4.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="200"
						image="units/human-outlaws/footpad-idle-4.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-3.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-2.png"
					[/frame]
					[frame]
						duration="100"
						image="units/human-outlaws/footpad-idle-1.png"
					[/frame]
				[/idle_anim]
				[defense]
					castle="30"
					cave="50"
					deep_water="70"
					flat="40"
					forest="30"
					frozen="60"
					fungus="30"
					hills="30"
					impassable="50"
					mountains="30"
					reef="50"
					sand="60"
					shallow_water="60"
					swamp_water="60"
					unwalkable="80"
					village="30"
				[/defense]
				[movement_costs]
					castle="1"
					cave="2"
					deep_water="99"
					flat="1"
					forest="2"
					frozen="2"
					fungus="2"
					hills="2"
					impassable="99"
					mountains="3"
					reef="2"
					sand="2"
					shallow_water="2"
					swamp_water="2"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="80"
					blade="130"
					cold="100"
					fire="100"
					impact="120"
					pierce="120"
				[/resistance]
				[variables]
				[/variables]
				[status]
				[/status]
				[attack]
					damage="6"
					description=_ "club"
					icon="attacks/club-small.png"
					name="club"
					number="2"
					range="melee"
					type="impact"
				[/attack]
				[attack]
					damage="5"
					description=_ "sling"
					name="sling"
					number="2"
					range="ranged"
					type="impact"
				[/attack]
				[modifications]
					[trait]
#textdomain wesnoth
						female_name=_ "female^quick"
						id="quick"
						male_name=_ "quick"
						name=_ "quick"
						[effect]
							apply_to="movement"
							increase="1"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="-5%"
						[/effect]
					[/trait]
					[trait]
						female_name=_ "female^strong"
						id="strong"
						male_name=_ "strong"
						name=_ "strong"
						[effect]
							apply_to="attack"
							increase_damage="1"
							range="melee"
						[/effect]
						[effect]
							apply_to="hitpoints"
							increase_total="1"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
		[/side]
		[side]
			action_bonus_count="0"
			aggression="0.5"
			allow_player="no"
			caution="0.25"
			colour="5"
			controller="ai"
			countdown_time="270000"
			current_player="ai3"
			disallow_observers="no"
			fog="yes"
			global_recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
			gold="-110"
			hidden="yes"
			id="ai3"
			income="0"
			leader_value="3"
			name="Computer player"
			no_leader="yes"
			number_of_possible_recruits_to_force_recruit="3.1"
			objectives=_ "Victory:
@Defeat enemy leader(s)"
			objectives_changed="yes"
			recruit="Dwarvish Fighter,Dwarvish Guardsman,Dwarvish Thunderer,Dwarvish Ulfserker,Footpad,Gryphon Rider,Poacher,Thief"
			recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
			save_id="ai3"
			share_maps="no"
			share_view="yes"
			shroud="no"
			side="3"
			start_gold="100"
			team_name="statues"
			user_team_name="statues"
			village_gold="2"
			village_value="1"
			villages_per_scout="4"
			[ai]
				recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
				[team_formula]
					rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
				[/team_formula]
			[/ai]
			[unit]
				advances_to="Hurricane Drake"
				alignment="lawful"
				alpha="256"
				attacks_left="1"
				cost="30"
				description="The winds of the dark sky blew so cold,
The moon was high, the night was old,
Brave was the drake that dared forsake
His home to steal the Basilisk's gold.

On that dark night, the skies so churned,
He disregarded what he had learned,
Foolish but brave, to the Basilisk's cave,
He flew, and the fire within him burned.

Alas, that fire burns no more,
For the Basilisk, with one mighty roar,
Chilled him to the bone, and he turned to stone,
And so he stays forevermore.

The winds of the sky blow so cold,
The years pass by, the days are old,
Here stands that drake, who dared forsake
His home to steal the Basilisk's gold.
(inscribed by Flametrooper)"
				die_sound="drake-die.ogg"
				experience="0"
				facing="se"
				flies="false"
				flying="no"
				gender="male"
				goto_x="0"
				goto_y="0"
				hitpoints="1"
				id="Sky Drake-3"
				image="units/drakes/sky.png"
#textdomain wesnoth-units
				language_name=_ "Sky Drake"
				level="2"
				max_attacks="1"
				max_experience="56"
				max_hitpoints="1"
				max_moves="0"
				movement="9"
				movement_type="fly"
				moves="0"
				profile="portraits/drakes/glider.png"
				race="drake"
				random_gender="no"
				random_traits="no"
				resting="yes"
				side="3"
				type="Sky Drake"
				undead_variation="drake"
				underlying_id="3"
				unrenamable="yes"
				upkeep="full"
				usage="scout"
				x="27"
				y="14"
				zoc="yes"
				[defense]
					castle="50"
					cave="70"
					deep_water="50"
					flat="50"
					forest="50"
					frozen="50"
					fungus="60"
					hills="50"
					impassable="80"
					mountains="50"
					reef="50"
					sand="50"
					shallow_water="50"
					swamp_water="50"
					unwalkable="50"
					village="50"
				[/defense]
				[movement_costs]
					castle="1"
					cave="3"
					deep_water="1"
					flat="1"
					forest="1"
					frozen="1"
					fungus="2"
					hills="1"
					impassable="99"
					mountains="1"
					reef="1"
					sand="1"
					shallow_water="1"
					swamp_water="1"
					unwalkable="1"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="130"
					blade="90"
					cold="150"
					fire="50"
					impact="80"
					pierce="110"
				[/resistance]
				[variables]
				[/variables]
				[status]
					hidden="yes"
					stoned="on"
				[/status]
				[attack]
					damage="6"
					description=_ "slam"
					icon="attacks/slam-drake.png"
					name="slam"
					number="3"
					range="melee"
					type="impact"
				[/attack]
				[attack]
					damage="5"
					description=_ "fire breath"
					icon="attacks/fire-breath-drake.png"
					name="fire breath"
					number="3"
					range="ranged"
					type="fire"
					[specials]
						[chance_to_hit]
							active_on="offense"
							cumulative="yes"
#textdomain wesnoth
							description=_ "Marksman:
When used offensively, this attack always has at least a 60% chance to hit."
							id="marksman"
							name=_ "marksman"
							value="60"
						[/chance_to_hit]
					[/specials]
				[/attack]
				[modifications]
					[trait]
						id="remove_hp"
						[effect]
							apply_to="hitpoints"
							increase_total="-100%"
						[/effect]
						[effect]
							apply_to="movement"
							set="0"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				alignment="chaotic"
				alpha="256"
				attacks_left="1"
				cost="46"
				description="Xikkrisx of Syrsszk was a powerful Saurian warrior, sent to this region by the Elders of the Rysssrylosszkk Clan (translation: ''The Hunts-Foes-In-Boiling-Rivers Clan''). The Elders were preparing to make war on a human outpost, and were in great need of the powerful magics of Oxsrrsk, a Saurian Mystic who had last been seen heading in the direction of Ruaskkolin Lake. Xikkrisx found the petrified body of Oxsrrsk, along with a carefully bound scroll that had apparently been dropped into a small crevice in the cave floor. He opened the scroll and read a brief passage from the middle of the text: ''After he was bound and cast from the Upper World, Chak'kso's enraged spirit sought release, and was able to exert a corrupting influence on certain regions of the Upper World, channeled through ''pathways of stone'' that extend from the surface into the depths of the Under Reaches. This rage altered the eggs of great lizards, shaping their bodies and spirits into implements of Chak'kso's hatred.'' Confused, Xikkrisx fixed his attention on the task at hand. Thinking that perhaps the Elders could find some way to restore Oxsrrsk, he began the long and strenuous task of hauling the statue back to the domain of the Rysssrylosszkk Clan. Exhausted, and not having traveled far from the lake, Xikkrisx set the statue down inside of a small cave, and lay down to rest. He was awoken by a bone-chilling roar."
				die_sound="hiss-die.wav"
				experience="0"
				facing="sw"
				flag_rgb="magenta"
				flies="false"
				flying="no"
				gender="male"
				goto_x="0"
				goto_y="0"
				hitpoints="1"
				id="Saurian Flanker-4"
				image="units/saurians/flanker.png"
#textdomain wesnoth-units
				language_name=_ "Saurian Flanker"
				level="3"
				max_attacks="1"
				max_experience="105"
				max_hitpoints="1"
				max_moves="0"
				movement="7"
				movement_type="lizard"
				moves="0"
				name="Xikkrisx"
				profile="portraits/saurians/skirmisher.png"
				race="lizard"
				random_gender="no"
				random_traits="no"
				resting="yes"
				side="3"
				type="Saurian Flanker"
				undead_variation="saurian"
				underlying_id="4"
				unrenamable="yes"
				upkeep="full"
				usage="scout"
				x="40"
				y="8"
				zoc="yes"
				[defense]
					castle="40"
					cave="40"
					deep_water="80"
					flat="60"
					forest="40"
					frozen="70"
					fungus="40"
					hills="40"
					impassable="40"
					mountains="40"
					reef="60"
					sand="40"
					shallow_water="60"
					swamp_water="40"
					unwalkable="80"
					village="50"
				[/defense]
				[movement_costs]
					castle="1"
					cave="1"
					deep_water="99"
					flat="1"
					forest="2"
					frozen="4"
					fungus="1"
					hills="1"
					impassable="99"
					mountains="2"
					reef="2"
					sand="1"
					shallow_water="3"
					swamp_water="1"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="80"
					blade="110"
					cold="120"
					fire="120"
					impact="110"
					pierce="80"
				[/resistance]
				[abilities]
					[skirmisher]
						affect_self="yes"
#textdomain wesnoth
						description=_ "Skirmisher:
This unit is skilled in moving past enemies quickly, and ignores all enemy Zones of Control."
						female_name=_ "female^skirmisher"
						id="skirmisher"
						name=_ "skirmisher"
					[/skirmisher]
				[/abilities]
				[advancement]
					description=_ "Max HP bonus +3, Max XP +20%"
					id="amla_default"
					image="misc/icon-amla-tough.png"
					max_times="100"
					strict_amla="yes"
					[effect]
						apply_to="hitpoints"
						heal_full="yes"
						increase_total="3"
					[/effect]
					[effect]
						apply_to="max_experience"
						increase="20%"
					[/effect]
					[effect]
						apply_to="status"
						remove="poisoned"
					[/effect]
					[effect]
						apply_to="status"
						remove="slowed"
					[/effect]
				[/advancement]
				[portrait]
					image="portraits/saurians/transparent/skirmisher.png"
					mirror="false"
					side="left"
					size="400"
				[/portrait]
				[portrait]
					image="portraits/saurians/transparent/skirmisher.png"
					mirror="true"
					side="right"
					size="400"
				[/portrait]
				[variables]
				[/variables]
				[status]
					hidden="yes"
					stoned="on"
				[/status]
				[attack]
					damage="8"
#textdomain wesnoth-units
					description=_ "spear"
					icon="attacks/spear.png"
					name="spear"
					number="4"
					range="melee"
					type="pierce"
				[/attack]
				[attack]
					damage="7"
					description=_ "spear"
					icon="attacks/spear.png"
					name="spear"
					number="2"
					range="ranged"
					type="pierce"
				[/attack]
				[modifications]
					[trait]
						id="remove_hp"
						[effect]
							apply_to="hitpoints"
							increase_total="-100%"
						[/effect]
						[effect]
							apply_to="movement"
							set="0"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				alignment="chaotic"
				alpha="256"
				attacks_left="1"
				cost="27"
				description="Oxsrrsk was a powerful Saurian Oracle, who had, in a raid against the rival Xraxss Clan, acquired (from the vaults of the now-dead Oracle Hesx-Rzzak) a most fascinating scroll. The scroll was entitled ''Ney'yks of the Granite Gaze,'' and told of a creature known as the ''Chak'kso Ney'yks,'' a name which, in an ancient saurian tongue, meant ''Eldest Child of Chak'kso.'' Chak'kso was believed to have been a powerful demigod of the Under Reaches, described as a ''great demon of the earth'' in the Elvish Histories. According to these histories, Chak'kso had once sought to transform all life on the planet to stone; so great was his hatred for creatures of flesh. He was ultimately defeated and bound by powerful magics, but in the centuries following his banishment (to a realm far below the surface of the world) a new breed of creature began appearing in the Histories, a breed with the ability to turn any being of flesh into stone. There was a period when these Basilisks (as they came to be known) wreaked havoc on the world of the living, turning thousands to stone. One by one, and at great cost, the Basilisks were defeated. All, it would seem, but one; the Basilisk known as ''The Ney'yks,'' or ''The Eldest Child,'' in the modern tongue. Supremely convinced of his ability to locate and bind this powerful creature into his service, Oxsrrsk set out on his journey..."
				die_sound="hiss-die.wav"
				experience="0"
				facing="sw"
				flag_rgb="magenta"
				flies="false"
				flying="no"
				gender="male"
				goto_x="0"
				goto_y="0"
				hitpoints="1"
				id="Saurian Oracle-5"
				image="units/saurians/oracle.png"
				language_name=_ "Saurian Oracle"
				level="2"
				max_attacks="1"
				max_experience="105"
				max_hitpoints="1"
				max_moves="0"
				movement="6"
				movement_type="lizard"
				moves="0"
				name="Oxsrrsk"
				profile="portraits/saurians/augur.png"
				race="lizard"
				random_gender="no"
				random_traits="no"
				resting="yes"
				side="3"
				type="Saurian Oracle"
				undead_variation="saurian"
				underlying_id="5"
				unrenamable="yes"
				upkeep="full"
				usage="archer"
				x="39"
				y="8"
				zoc="yes"
				[defense]
					castle="40"
					cave="40"
					deep_water="80"
					flat="60"
					forest="40"
					frozen="70"
					fungus="40"
					hills="40"
					impassable="40"
					mountains="40"
					reef="60"
					sand="40"
					shallow_water="60"
					swamp_water="40"
					unwalkable="80"
					village="50"
				[/defense]
				[movement_costs]
					castle="1"
					cave="1"
					deep_water="99"
					flat="1"
					forest="2"
					frozen="4"
					fungus="1"
					hills="1"
					impassable="99"
					mountains="2"
					reef="2"
					sand="1"
					shallow_water="3"
					swamp_water="1"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="80"
					blade="110"
					cold="120"
					fire="120"
					impact="110"
					pierce="80"
				[/resistance]
				[abilities]
					[heals]
						affect_allies="yes"
						affect_self="no"
#textdomain wesnoth
						description=_ "Heals +4:
Allows the unit to heal adjacent allied units at the beginning of our turn.

A unit cared for by this healer may heal up to 4 HP per turn, or stop poison from taking effect for that turn.
A poisoned unit cannot be cured of its poison by a healer, and must seek the care of a village or a unit that can cure."
						female_name=_ "female^heals +4"
						id="healing"
						name=_ "heals +4"
						poison="slowed"
						value="4"
						[affect_adjacent]
							adjacent="n,ne,se,s,sw,nw"
						[/affect_adjacent]
					[/heals]
				[/abilities]
				[advancement]
					description=_ "Max HP bonus +3, Max XP +20%"
					id="amla_default"
					image="misc/icon-amla-tough.png"
					max_times="100"
					strict_amla="yes"
					[effect]
						apply_to="hitpoints"
						heal_full="yes"
						increase_total="3"
					[/effect]
					[effect]
						apply_to="max_experience"
						increase="20%"
					[/effect]
					[effect]
						apply_to="status"
						remove="poisoned"
					[/effect]
					[effect]
						apply_to="status"
						remove="slowed"
					[/effect]
				[/advancement]
				[portrait]
					image="portraits/saurians/transparent/augur.png"
					mirror="false"
					side="left"
					size="400"
				[/portrait]
				[portrait]
					image="portraits/saurians/transparent/augur.png"
					mirror="true"
					side="right"
					size="400"
				[/portrait]
				[variables]
				[/variables]
				[status]
					hidden="yes"
					stoned="on"
				[/status]
				[attack]
					damage="4"
#textdomain wesnoth-units
					description=_ "staff"
					icon="attacks/staff-magic.png"
					name="staff"
					number="3"
					range="melee"
					type="impact"
				[/attack]
				[attack]
					damage="8"
					description=_ "curse"
					icon="attacks/curse.png"
					name="curse"
					number="3"
					range="ranged"
					type="cold"
					[specials]
						[chance_to_hit]
							cumulative="no"
#textdomain wesnoth
							description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
							id="magical"
							name=_ "magical"
							value="70"
						[/chance_to_hit]
					[/specials]
				[/attack]
				[modifications]
					[trait]
						id="remove_hp"
						[effect]
							apply_to="hitpoints"
							increase_total="-100%"
						[/effect]
						[effect]
							apply_to="movement"
							set="0"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				advances_to="Elvish Sharpshooter"
				alignment="neutral"
				alpha="256"
				attacks_left="1"
				cost="41"
				description="Slim of Stature, dexterous Hands
- - Seven Stones and Eleven
Left his Foes so slim a Chance
- - Seven Stones and Eleven
Marksman known as Dragonbane
'mongst the Statues here was slain
- - Seven Stones - and the Elven
(inscribed by Gauteamus)"
				die_sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
				experience="0"
				facing="se"
				flag_rgb="magenta"
				flying="no"
				gender="male"
				goto_x="0"
				goto_y="0"
				hitpoints="1"
				id="Elvish Marksman-6"
				image="units/elves-wood/marksman.png"
#textdomain wesnoth-units
				language_name=_ "Elvish Marksman"
				level="2"
				max_attacks="1"
				max_experience="56"
				max_hitpoints="1"
				max_moves="0"
				movement="6"
				movement_type="woodland"
				moves="0"
				profile="portraits/elves/marksman.png"
				race="elf"
				random_gender="no"
				random_traits="no"
				resting="yes"
				side="3"
				type="Elvish Marksman"
				undead_variation="archer"
				underlying_id="6"
				unrenamable="yes"
				upkeep="full"
				usage="archer"
				x="2"
				y="11"
				zoc="yes"
				[defense]
					castle="40"
					cave="70"
					deep_water="80"
					flat="60"
					forest="30"
					frozen="70"
					fungus="50"
					hills="50"
					impassable="70"
					mountains="40"
					reef="70"
					sand="70"
					shallow_water="80"
					swamp_water="70"
					unwalkable="80"
					village="40"
				[/defense]
				[movement_costs]
					castle="1"
					cave="3"
					deep_water="99"
					flat="1"
					forest="1"
					frozen="2"
					fungus="2"
					hills="2"
					impassable="99"
					mountains="3"
					reef="2"
					sand="2"
					shallow_water="3"
					swamp_water="2"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="110"
					blade="100"
					cold="100"
					fire="100"
					impact="100"
					pierce="100"
				[/resistance]
				[portrait]
					image="portraits/elves/transparent/marksman.png"
					mirror="true"
					side="left"
					size="400"
				[/portrait]
				[portrait]
					image="portraits/elves/transparent/marksman.png"
					mirror="false"
					side="right"
					size="400"
				[/portrait]
				[variables]
				[/variables]
				[status]
					hidden="yes"
					stoned="on"
				[/status]
				[attack]
					damage="6"
					description=_ "sword"
					icon="attacks/sword-elven.png"
					name="sword"
					number="2"
					range="melee"
					type="blade"
				[/attack]
				[attack]
					damage="9"
					description=_ "longbow"
					icon="attacks/bow-elven-magic.png"
					name="longbow"
					number="4"
					range="ranged"
					type="pierce"
					[specials]
						[chance_to_hit]
							active_on="offense"
							cumulative="yes"
#textdomain wesnoth
							description=_ "Marksman:
When used offensively, this attack always has at least a 60% chance to hit."
							id="marksman"
							name=_ "marksman"
							value="60"
						[/chance_to_hit]
					[/specials]
				[/attack]
				[modifications]
					[trait]
						id="remove_hp"
						[effect]
							apply_to="hitpoints"
							increase_total="-100%"
						[/effect]
						[effect]
							apply_to="movement"
							set="0"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				alignment="chaotic"
				alpha="256"
				attacks_left="1"
				cost="41"
				description="Blum Duk was renowned among his goblin clan for having tamed one of the Dire Wolves of the mountains, and he had the courage to match. His leadership and skills alone were what kept the area's goblins alive despite human and elvish menaces. Rumour had it that his wolf had slain fifty men and a hundred Elves.
Thus, when he heard of the awful monster that was inhabiting the area, it was only natural that he ride out alone to face it. All the other goblins expected him to slay the creature easily and drag back its carcass to feast on.
He was in for quite a shock. As soon as he saw the Basilisk, Blum Duk cowered in fright. He tried to wheel his wolf around to run away, but it wouldn't move. As the creature stalked towards him, he screamed his last words: Good Gog, dog, are yer legs made of stone?!?
(inscribed by Elvish Pillager)"
				die_sound="wolf-die.wav"
				experience="0"
				facing="se"
				flag_rgb="magenta"
				flying="no"
				gender="male"
				goto_x="0"
				goto_y="0"
				hitpoints="1"
				id="Direwolf Rider-7"
				image="units/goblins/direwolver.png"
#textdomain wesnoth-units
				language_name=_ "Direwolf Rider"
				level="3"
				max_attacks="1"
				max_experience="105"
				max_hitpoints="1"
				max_moves="0"
				movement="10"
				movement_type="orcishfoot"
				moves="0"
				name="Blum Duk"
				race="wolf"
				random_gender="no"
				random_traits="no"
				resting="yes"
				side="3"
				type="Direwolf Rider"
				undead_variation="mounted"
				underlying_id="7"
				unrenamable="yes"
				upkeep="full"
				usage="scout"
				x="10"
				y="17"
				zoc="yes"
				[defense]
					castle="40"
					cave="60"
					deep_water="80"
					flat="60"
					forest="50"
					frozen="80"
					fungus="60"
					hills="50"
					impassable="60"
					mountains="40"
					reef="70"
					sand="70"
					shallow_water="80"
					swamp_water="70"
					unwalkable="80"
					village="40"
				[/defense]
				[movement_costs]
					castle="1"
					cave="2"
					deep_water="99"
					flat="1"
					forest="2"
					frozen="2"
					fungus="3"
					hills="1"
					impassable="99"
					mountains="2"
					reef="2"
					sand="2"
					shallow_water="3"
					swamp_water="3"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="100"
					blade="100"
					cold="100"
					fire="100"
					impact="100"
					pierce="100"
				[/resistance]
				[advancement]
#textdomain wesnoth
					description=_ "Max HP bonus +3, Max XP +20%"
					id="amla_default"
					image="misc/icon-amla-tough.png"
					max_times="100"
					strict_amla="yes"
					[effect]
						apply_to="hitpoints"
						heal_full="yes"
						increase_total="3"
					[/effect]
					[effect]
						apply_to="max_experience"
						increase="20%"
					[/effect]
					[effect]
						apply_to="status"
						remove="poisoned"
					[/effect]
					[effect]
						apply_to="status"
						remove="slowed"
					[/effect]
				[/advancement]
				[variables]
				[/variables]
				[status]
					hidden="yes"
					stoned="on"
				[/status]
				[attack]
					damage="9"
#textdomain wesnoth-units
					description=_ "fangs"
					icon="attacks/fangs-animal.png"
					name="fangs"
					number="4"
					range="melee"
					type="blade"
				[/attack]
				[attack]
					damage="4"
					description=_ "claws"
					icon="attacks/claws-animal.png"
					name="claws"
					number="4"
					range="melee"
					type="blade"
					[specials]
						[poison]
#textdomain wesnoth
							description=_ "Poison:
This attack poisons living targets. Poisoned units lose 8 HP every turn until they are cured or are reduced to 1 HP. Poison can not, of itself, kill a unit."
							id="poison"
							name=_ "poison"
						[/poison]
					[/specials]
				[/attack]
				[modifications]
					[trait]
						id="remove_hp"
						[effect]
							apply_to="hitpoints"
							increase_total="-100%"
						[/effect]
						[effect]
							apply_to="movement"
							set="0"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				alignment="lawful"
				alpha="256"
				attacks_left="1"
				cost="100"
				description="Rah Ihn Mar, Champion of the Burning Hills, made his way to the Ruaskkolin Lake region in pursuit of the Elvish Hero Terowydlithrol, known among Elves as ''The Dragonbane.'' It was said that Terowydlithrol had killed a Dragon of Fire that threatened an Elvish village, and initiated a ''counterattack'' in which some 37 Drakes, camping in a nearby ravine and believed to be in allegiance with the Dragon, were slaughtered. Knowing that these Drakes were innocent, Rah Ihn Mar came to Ruaskkolin Lake to hunt down and slay Terowydlithrol, who had been seen entering the region but a day ago. Burning for vengeance, Rah Ihn Mar began the hunt....."
				die_sound="drake-die.ogg"
				ellipse="misc/ellipse"
				experience="0"
				facing="se"
				flying="no"
				gender="male"
				goto_x="0"
				goto_y="0"
				hitpoints="1"
				id="Armageddon Drake-8"
				image="units/drakes/armageddon.png"
#textdomain wesnoth-units
				language_name=_ "Armageddon Drake"
				level="4"
				max_attacks="1"
				max_experience="105"
				max_hitpoints="1"
				max_moves="0"
				movement="5"
				movement_type="drakefly"
				moves="0"
				name="Rah Ihn Mar"
				profile="portraits/drakes/burner.png"
				race="drake"
				random_gender="no"
				random_traits="no"
				resting="yes"
				side="3"
				type="Armageddon Drake"
				undead_variation="drake"
				underlying_id="8"
				unrenamable="yes"
				upkeep="full"
				usage="archer"
				x="11"
				y="14"
				zoc="yes"
				[defense]
					castle="60"
					cave="70"
					deep_water="80"
					flat="70"
					forest="60"
					frozen="80"
					fungus="60"
					hills="60"
					impassable="70"
					mountains="60"
					reef="70"
					sand="60"
					shallow_water="80"
					swamp_water="70"
					unwalkable="60"
					village="60"
				[/defense]
				[movement_costs]
					castle="1"
					cave="3"
					deep_water="2"
					flat="1"
					forest="1"
					frozen="2"
					fungus="2"
					hills="1"
					impassable="99"
					mountains="1"
					reef="1"
					sand="1"
					shallow_water="1"
					swamp_water="1"
					unwalkable="1"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="130"
					blade="90"
					cold="150"
					fire="0"
					impact="80"
					pierce="110"
				[/resistance]
				[advancement]
#textdomain wesnoth
					description=_ "Max HP bonus +3, Max XP +20%"
					id="amla_default"
					image="misc/icon-amla-tough.png"
					max_times="100"
					strict_amla="yes"
					[effect]
						apply_to="hitpoints"
						heal_full="yes"
						increase_total="3"
					[/effect]
					[effect]
						apply_to="max_experience"
						increase="20%"
					[/effect]
					[effect]
						apply_to="status"
						remove="poisoned"
					[/effect]
					[effect]
						apply_to="status"
						remove="slowed"
					[/effect]
				[/advancement]
				[variables]
				[/variables]
				[status]
					hidden="yes"
					stoned="on"
				[/status]
				[attack]
					damage="15"
#textdomain wesnoth-units
					description=_ "claws"
					icon="attacks/claws-drake.png"
					name="claws"
					number="2"
					range="melee"
					type="blade"
				[/attack]
				[attack]
					damage="12"
					description=_ "fire breath"
					icon="attacks/fire-breath-drake.png"
					name="fire breath"
					number="6"
					range="ranged"
					type="fire"
				[/attack]
				[modifications]
					[trait]
						id="remove_hp"
						[effect]
							apply_to="hitpoints"
							increase_total="-100%"
						[/effect]
						[effect]
							apply_to="movement"
							set="0"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				alignment="chaotic"
				alpha="256"
				attacks_left="1"
				cost="40"
				description="He had lived there for ages upon ages, in the depths of the water, preying upon the various fish and frogs and merfolk that entered his domain. It was his lake, no other's, and though it was not large, he was its master. Then, the Basilisk came, and looked into the Serpent's eyes. And the Serpent had not died, but it was no longer alive. Thus the new lord of the lake had arrived.
(inscribed by Turin)"
				die_sound="water-blast.wav"
				experience="0"
				facing="sw"
				flying="no"
				gender="male"
				goto_x="0"
				goto_y="0"
				hitpoints="1"
				id="Sea Serpent-9"
				image="units/monsters/seaserpent.png"
				language_name=_ "Sea Serpent"
				level="3"
				max_attacks="1"
				max_experience="105"
				max_hitpoints="1"
				max_moves="0"
				movement="8"
				movement_type="deepsea"
				moves="0"
				profile="portraits/monsters/sea-serpent.png"
				race="monster"
				random_gender="no"
				random_traits="no"
				resting="yes"
				side="3"
				type="Sea Serpent"
				undead_variation="swimmer"
				underlying_id="9"
				unrenamable="yes"
				upkeep="full"
				usage="fighter"
				x="22"
				y="12"
				zoc="yes"
				[defense]
					castle="70"
					cave="80"
					deep_water="40"
					flat="70"
					forest="70"
					frozen="70"
					fungus="80"
					hills="70"
					impassable="80"
					mountains="80"
					reef="50"
					sand="70"
					shallow_water="50"
					swamp_water="40"
					unwalkable="80"
					village="70"
				[/defense]
				[movement_costs]
					castle="1"
					cave="3"
					deep_water="1"
					flat="4"
					forest="5"
					frozen="2"
					fungus="3"
					hills="5"
					impassable="99"
					mountains="99"
					reef="2"
					sand="4"
					shallow_water="2"
					swamp_water="2"
					unwalkable="99"
					village="2"
				[/movement_costs]
				[resistance]
					arcane="100"
					blade="80"
					cold="40"
					fire="100"
					impact="70"
					pierce="100"
				[/resistance]
				[advancement]
#textdomain wesnoth
					description=_ "Max HP bonus +3, Max XP +20%"
					id="amla_default"
					image="misc/icon-amla-tough.png"
					max_times="100"
					strict_amla="yes"
					[effect]
						apply_to="hitpoints"
						heal_full="yes"
						increase_total="3"
					[/effect]
					[effect]
						apply_to="max_experience"
						increase="20%"
					[/effect]
					[effect]
						apply_to="status"
						remove="poisoned"
					[/effect]
					[effect]
						apply_to="status"
						remove="slowed"
					[/effect]
				[/advancement]
				[variables]
				[/variables]
				[status]
					hidden="yes"
					stoned="on"
				[/status]
				[attack]
					damage="18"
#textdomain wesnoth-units
					description=_ "fangs"
					icon="attacks/fangs-animal.png"
					name="fangs"
					number="2"
					range="melee"
					type="pierce"
				[/attack]
				[modifications]
					[trait]
						id="remove_hp"
						[effect]
							apply_to="hitpoints"
							increase_total="-100%"
						[/effect]
						[effect]
							apply_to="movement"
							set="0"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				alignment="lawful"
				alpha="256"
				attacks_left="1"
				cost="58"
				description="A brave hero of Wesnoth's Golden Age, this great rider and commander of men came to this evil place while on a raid against the orcs. Caught unaware by the foul creatures, many of his fellows were killed, but he fought valiantly, slaying many a foe. But alas! The foul Basilisk turned him to stone even as he slew the last orc. Now all that is left is a stark reminder of his once great bearing and strength.
(inscribed by Fynmiir)"
				die_sound="horse-die.ogg"
				experience="0"
				facing="sw"
				flag_rgb="magenta"
				flying="no"
				gender="male"
				goto_x="0"
				goto_y="0"
				hitpoints="1"
				id="Grand Knight-10"
				image="units/human-loyalists/grand-knight.png"
				language_name=_ "Grand Knight"
				level="3"
				max_attacks="1"
				max_experience="105"
				max_hitpoints="1"
				max_moves="0"
				movement="7"
				movement_type="mounted"
				moves="0"
				profile="portraits/humans/grand-knight.png"
				race="human"
				random_gender="no"
				random_traits="no"
				resting="yes"
				side="3"
				type="Grand Knight"
				undead_variation="mounted"
				underlying_id="10"
				unrenamable="yes"
				upkeep="full"
				usage="fighter"
				x="25"
				y="14"
				zoc="yes"
				[defense]
					castle="60"
					cave="80"
					deep_water="80"
					flat="60"
					forest="70"
					frozen="70"
					fungus="80"
					hills="60"
					impassable="80"
					mountains="80"
					reef="70"
					sand="70"
					shallow_water="80"
					swamp_water="80"
					unwalkable="80"
					village="60"
				[/defense]
				[movement_costs]
					castle="1"
					cave="4"
					deep_water="99"
					flat="1"
					forest="3"
					frozen="2"
					fungus="4"
					hills="2"
					impassable="99"
					mountains="99"
					reef="3"
					sand="2"
					shallow_water="4"
					swamp_water="4"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="80"
					blade="80"
					cold="100"
					fire="100"
					impact="70"
					pierce="120"
				[/resistance]
				[advancement]
#textdomain wesnoth
					description=_ "Max HP bonus +3, Max XP +20%"
					id="amla_default"
					image="misc/icon-amla-tough.png"
					max_times="100"
					strict_amla="yes"
					[effect]
						apply_to="hitpoints"
						heal_full="yes"
						increase_total="3"
					[/effect]
					[effect]
						apply_to="max_experience"
						increase="20%"
					[/effect]
					[effect]
						apply_to="status"
						remove="poisoned"
					[/effect]
					[effect]
						apply_to="status"
						remove="slowed"
					[/effect]
				[/advancement]
				[variables]
				[/variables]
				[status]
					hidden="yes"
					stoned="on"
				[/status]
				[attack]
					damage="12"
#textdomain wesnoth-units
					description=_ "sword"
					icon="attacks/greatsword-human.png"
					name="sword"
					number="4"
					range="melee"
					type="blade"
				[/attack]
				[attack]
					damage="17"
					description=_ "lance"
					name="lance"
					number="2"
					range="melee"
					type="pierce"
					[specials]
						[damage]
							active_on="offense"
							apply_to="both"
#textdomain wesnoth
							description=_ "Charge:
When used offensively, this attack deals double damage to the target. It also causes this unit to take double damage from the target's counterattack."
							id="charge"
							multiply="2"
							name=_ "charge"
						[/damage]
					[/specials]
				[/attack]
				[modifications]
					[trait]
						id="remove_hp"
						[effect]
							apply_to="hitpoints"
							increase_total="-100%"
						[/effect]
						[effect]
							apply_to="movement"
							set="0"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				advances_to="Ancient Wose"
				alignment="lawful"
				alpha="256"
				attacks_left="1"
				cost="31"
				description="Bramwythl the Wose was always considered a slow, taciturn fellow, even by other Woses. More than any other Wose, he enjoyed simply standing alone in the sun, arms upraised, admiring the beauty of the empty sky. Once, even, he confided in a fellow that his greatest wish was to be able to bask forever in the sun's glory.
However, not long after, the local wose community heard of the approach of a horrible monster, powerful enough to easily destroy the few woses that lived in the area. They quickly moved off (quickly for Woses, anyway), but Bramwythl was left behind - in their haste, no one had remembered to find him and tell him of the danger.
He was taken quite unawares by the Basilisk, and turned to stone before he even recognised the beast. His petrified form still stands there today, warmed by the sun's rays, under an open sky. His greatest wish has been granted.
(inscribed by Elvish Pillager)"
				die_sound="wose-die.ogg"
				experience="0"
				facing="se"
				flag_rgb="magenta"
				flying="no"
				gender="male"
				goto_x="0"
				goto_y="0"
				hitpoints="1"
				id="Elder Wose-11"
				image="units/woses/wose-elder.png"
#textdomain wesnoth-units
				language_name=_ "Elder Wose"
				level="2"
				max_attacks="1"
				max_experience="70"
				max_hitpoints="1"
				max_moves="0"
				movement="4"
				movement_type="treefolk"
				moves="0"
				name="Bramwythl"
				race="wose"
				random_gender="no"
				random_traits="no"
				resting="yes"
				side="3"
				type="Elder Wose"
				undead_variation="wose"
				underlying_id="11"
				unrenamable="yes"
				upkeep="full"
				usage="fighter"
				x="32"
				y="6"
				zoc="yes"
				[defense]
					castle="80"
					cave="80"
					deep_water="90"
					flat="80"
					forest="60"
					frozen="80"
					fungus="70"
					hills="70"
					impassable="80"
					mountains="70"
					reef="80"
					sand="80"
					shallow_water="80"
					swamp_water="70"
					unwalkable="80"
					village="80"
				[/defense]
				[movement_costs]
					castle="1"
					cave="3"
					deep_water="99"
					flat="1"
					forest="1"
					frozen="2"
					fungus="2"
					hills="2"
					impassable="99"
					mountains="3"
					reef="2"
					sand="2"
					shallow_water="2"
					swamp_water="2"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="130"
					blade="100"
					cold="90"
					fire="150"
					impact="60"
					pierce="40"
				[/resistance]
				[abilities]
					[hides]
						affect_self="yes"
#textdomain wesnoth
						description=_ "Ambush:
This unit can hide in forest, and remain undetected by its enemies.

Enemy units cannot see this unit while it is in forest, except if they have units next to it. Any enemy unit that first discovers this unit immediately loses all its remaining movement."
						description_inactive=_ "Ambush:
This unit can hide in forest, and remain undetected by its enemies.

Enemy units cannot see this unit while it is in forest, except if they have units next to it. Any enemy unit that first discovers this unit immediately loses all its remaining movement."
						female_name=_ "female^ambush"
						female_name_inactive=_ "female^ambush"
						id="ambush"
						name=_ "ambush"
						name_inactive=_ "ambush"
						[filter_self]
							[filter_location]
								terrain="*^Fp,*^Fet,*^Ft,*^Fpa,*^Fd*,*^Fm*"
							[/filter_location]
						[/filter_self]
					[/hides]
					[regenerate]
						affect_self="yes"
						description=_ "Regenerates:
The unit will heal itself 8 HP per turn. If it is poisoned, it will remove the poison instead of healing."
						female_name=_ "female^regenerates"
						id="regenerates"
						name=_ "regenerates"
						poison="cured"
						value="8"
					[/regenerate]
				[/abilities]
				[variables]
				[/variables]
				[status]
					hidden="yes"
					stoned="on"
				[/status]
				[attack]
					damage="19"
#textdomain wesnoth-units
					description=_ "crush"
					icon="attacks/crush-wose.png"
					name="crush"
					number="2"
					range="melee"
					type="impact"
				[/attack]
				[modifications]
					[trait]
						id="remove_hp"
						[effect]
							apply_to="hitpoints"
							increase_total="-100%"
						[/effect]
						[effect]
							apply_to="movement"
							set="0"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				alignment="lawful"
				alpha="256"
				attacks_left="1"
				cost="50"
				description="General Talael Ryndoc came to this place to fight a duel with the Grand Marshal Aethec Corryn, but the two men never found one another. "
				die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
				experience="0"
				facing="sw"
				flag_rgb="magenta"
				flying="no"
				gender="male"
				goto_x="0"
				goto_y="0"
				hitpoints="1"
				id="Iron Mauler-12"
				image="units/human-loyalists/siegetrooper.png"
				language_name=_ "Iron Mauler"
				level="3"
				max_attacks="1"
				max_experience="105"
				max_hitpoints="1"
				max_moves="0"
				movement="4"
				movement_type="armoredfoot"
				moves="0"
				name="Talael Ryndoc"
				profile="portraits/humans/iron-mauler.png~RIGHT()"
				race="human"
				random_gender="no"
				random_traits="no"
				resting="yes"
				side="3"
				type="Iron Mauler"
				underlying_id="12"
				unrenamable="yes"
				upkeep="full"
				usage="fighter"
				x="34"
				y="11"
				zoc="yes"
				[defense]
					castle="50"
					cave="60"
					deep_water="80"
					flat="70"
					forest="60"
					frozen="80"
					fungus="60"
					hills="60"
					impassable="60"
					mountains="80"
					reef="80"
					sand="80"
					shallow_water="90"
					swamp_water="90"
					unwalkable="80"
					village="60"
				[/defense]
				[movement_costs]
					castle="1"
					cave="2"
					deep_water="99"
					flat="1"
					forest="2"
					frozen="4"
					fungus="2"
					hills="3"
					impassable="99"
					mountains="99"
					reef="3"
					sand="2"
					shallow_water="4"
					swamp_water="4"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="80"
					blade="50"
					cold="110"
					fire="110"
					impact="90"
					pierce="60"
				[/resistance]
				[advancement]
#textdomain wesnoth
					description=_ "Max HP bonus +3, Max XP +20%"
					id="amla_default"
					image="misc/icon-amla-tough.png"
					max_times="100"
					strict_amla="yes"
					[effect]
						apply_to="hitpoints"
						heal_full="yes"
						increase_total="3"
					[/effect]
					[effect]
						apply_to="max_experience"
						increase="20%"
					[/effect]
					[effect]
						apply_to="status"
						remove="poisoned"
					[/effect]
					[effect]
						apply_to="status"
						remove="slowed"
					[/effect]
				[/advancement]
				[portrait]
					image="portraits/humans/transparent/iron-mauler.png"
					mirror="false"
					side="right"
					size="400"
				[/portrait]
				[trait]
					description=_ "Fights normally during unfavorable times of day/night"
					female_name=_ "female^fearless"
					id="fearless"
					male_name=_ "fearless"
				[/trait]
				[variables]
				[/variables]
				[status]
					hidden="yes"
					stoned="on"
				[/status]
				[attack]
					damage="25"
#textdomain wesnoth-units
					description=_ "mace"
					name="mace"
					number="2"
					range="melee"
					type="impact"
				[/attack]
				[modifications]
					[trait]
						id="remove_hp"
						[effect]
							apply_to="hitpoints"
							increase_total="-100%"
						[/effect]
						[effect]
							apply_to="movement"
							set="0"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				alignment="lawful"
				alpha="256"
				attacks_left="1"
				cost="66"
				description="The last words spoken by Grand Marshal Aethec Corryn: ''Talael Ryndoc! I am through searching for you! I shall make my way back to Haldric's Hall, and inform the court that you were too much of a coward to attend our duel! Your disgrace shall be more agonizing than the death I'd have given you!''

Perhaps he should not have shouted quite so loudly.... "
				die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
				experience="0"
				facing="sw"
				flag_rgb="magenta"
				flying="no"
				gender="male"
				goto_x="0"
				goto_y="0"
				hitpoints="1"
				id="Grand Marshal-13"
				image="units/human-loyalists/marshal.png"
				language_name=_ "Grand Marshal"
				level="4"
				max_attacks="1"
				max_experience="105"
				max_hitpoints="1"
				max_moves="0"
				movement="6"
				movement_type="smallfoot"
				moves="0"
				name="Aethec Corryn"
				profile="portraits/humans/marshal.png"
				race="human"
				random_gender="no"
				random_traits="no"
				resting="yes"
				side="3"
				type="Grand Marshal"
				underlying_id="13"
				unrenamable="yes"
				upkeep="full"
				usage="fighter"
				x="15"
				y="11"
				zoc="yes"
				[defense]
					castle="40"
					cave="60"
					deep_water="80"
					flat="60"
					forest="50"
					frozen="80"
					fungus="50"
					hills="50"
					impassable="60"
					mountains="40"
					reef="70"
					sand="70"
					shallow_water="80"
					swamp_water="80"
					unwalkable="80"
					village="40"
				[/defense]
				[movement_costs]
					castle="1"
					cave="2"
					deep_water="99"
					flat="1"
					forest="2"
					frozen="3"
					fungus="2"
					hills="2"
					impassable="99"
					mountains="3"
					reef="2"
					sand="2"
					shallow_water="3"
					swamp_water="3"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="80"
					blade="80"
					cold="100"
					fire="100"
					impact="80"
					pierce="80"
				[/resistance]
				[abilities]
					[leadership]
						affect_self="no"
						cumulative="no"
#textdomain wesnoth
						description=_ "Leadership:
This unit can lead our own units that are next to it, making them fight better.

Adjacent own units of lower level will do more damage in battle. When a unit adjacent to, of a lower level than, and on the same side as a unit with Leadership engages in combat, its attacks do 25% more damage times the difference in their levels."
						female_name=_ "female^leadership"
						id="leadership"
						name=_ "leadership"
						value="100"
						[affect_adjacent]
							adjacent="n,ne,se,s,sw,nw"
							[filter]
								level="0"
							[/filter]
						[/affect_adjacent]
					[/leadership]
					[leadership]
						affect_self="no"
						cumulative="no"
						id="leadership"
						value="75"
						[affect_adjacent]
							adjacent="n,ne,se,s,sw,nw"
							[filter]
								level="1"
							[/filter]
						[/affect_adjacent]
					[/leadership]
					[leadership]
						affect_self="no"
						cumulative="no"
						id="leadership"
						value="50"
						[affect_adjacent]
							adjacent="n,ne,se,s,sw,nw"
							[filter]
								level="2"
							[/filter]
						[/affect_adjacent]
					[/leadership]
					[leadership]
						affect_self="no"
						cumulative="no"
						id="leadership"
						value="25"
						[affect_adjacent]
							adjacent="n,ne,se,s,sw,nw"
							[filter]
								level="3"
							[/filter]
						[/affect_adjacent]
					[/leadership]
				[/abilities]
				[advancement]
					description=_ "Max HP bonus +3, Max XP +20%"
					id="amla_default"
					image="misc/icon-amla-tough.png"
					max_times="100"
					strict_amla="yes"
					[effect]
						apply_to="hitpoints"
						heal_full="yes"
						increase_total="3"
					[/effect]
					[effect]
						apply_to="max_experience"
						increase="20%"
					[/effect]
					[effect]
						apply_to="status"
						remove="poisoned"
					[/effect]
					[effect]
						apply_to="status"
						remove="slowed"
					[/effect]
				[/advancement]
				[portrait]
					image="portraits/humans/transparent/marshal.png"
					mirror="false"
					side="left"
					size="400"
				[/portrait]
				[portrait]
					image="portraits/humans/transparent/marshal.png"
					mirror="true"
					side="right"
					size="400"
				[/portrait]
				[variables]
				[/variables]
				[status]
					hidden="yes"
					stoned="on"
				[/status]
				[attack]
					damage="10"
#textdomain wesnoth-units
					description=_ "sword"
					icon="attacks/greatsword-human.png"
					name="sword"
					number="4"
					range="melee"
					type="blade"
				[/attack]
				[attack]
					damage="8"
					description=_ "crossbow"
					icon="attacks/crossbow-human.png"
					name="crossbow"
					number="3"
					range="ranged"
					type="pierce"
				[/attack]
				[modifications]
					[trait]
						id="remove_hp"
						[effect]
							apply_to="hitpoints"
							increase_total="-100%"
						[/effect]
						[effect]
							apply_to="movement"
							set="0"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				alignment="neutral"
				alpha="256"
				attacks_left="1"
				cost="48"
				description="This brave warrior, known as Rilhon among the Naga, heard tell of a fabulous treasure that had been lost in these watery caves- a spear whose head was said to have been fashioned from the tooth of Chak'kso Ney'yks, an Elder Basilisk slain long ago by the Elvish hero, Eloralduil. According to the legend, the weapon rested somewhere on the bottom of this very lake (Ruaskkolin Lake, named for a well-known Sea Serpent who made it his home). Having prepared himself for battle with the Serpent, Rilhon met with two rather large surprises. The first was the petrified form of Ruaskkolin the Serpent. The second was the very-much-alive Chak'kso Ney'yks, who was, oddly enough, in possession of all of his teeth.
(inscribed by Paterson)"
				die_sound="naga-die.ogg"
				experience="0"
				facing="se"
				flag_rgb="magenta"
				flying="no"
				gender="male"
				goto_x="0"
				goto_y="0"
				hitpoints="1"
				id="Naga Myrmidon-14"
				image="units/nagas/myrmidon.png"
				language_name=_ "Naga Myrmidon"
				level="3"
				max_attacks="1"
				max_experience="105"
				max_hitpoints="1"
				max_moves="0"
				movement="7"
				movement_type="naga"
				moves="0"
				name="Rilhon"
				profile="portraits/nagas/fighter.png"
				race="naga"
				random_gender="no"
				random_traits="no"
				resting="yes"
				side="3"
				type="Naga Myrmidon"
				undead_variation="swimmer"
				underlying_id="14"
				unrenamable="yes"
				upkeep="full"
				usage="fighter"
				x="20"
				y="12"
				zoc="yes"
				[defense]
					castle="50"
					cave="60"
					deep_water="50"
					flat="50"
					forest="60"
					frozen="80"
					fungus="60"
					hills="60"
					impassable="60"
					mountains="60"
					reef="30"
					sand="40"
					shallow_water="40"
					swamp_water="40"
					unwalkable="80"
					village="60"
				[/defense]
				[movement_costs]
					castle="2"
					cave="2"
					deep_water="1"
					flat="2"
					forest="3"
					frozen="2"
					fungus="2"
					hills="3"
					impassable="99"
					mountains="5"
					reef="2"
					sand="1"
					shallow_water="1"
					swamp_water="1"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="100"
					blade="100"
					cold="120"
					fire="100"
					impact="100"
					pierce="100"
				[/resistance]
				[advancement]
#textdomain wesnoth
					description=_ "Max HP bonus +3, Max XP +20%"
					id="amla_default"
					image="misc/icon-amla-tough.png"
					max_times="100"
					strict_amla="yes"
					[effect]
						apply_to="hitpoints"
						heal_full="yes"
						increase_total="3"
					[/effect]
					[effect]
						apply_to="max_experience"
						increase="20%"
					[/effect]
					[effect]
						apply_to="status"
						remove="poisoned"
					[/effect]
					[effect]
						apply_to="status"
						remove="slowed"
					[/effect]
				[/advancement]
				[variables]
				[/variables]
				[status]
					hidden="yes"
					stoned="on"
				[/status]
				[attack]
					damage="9"
#textdomain wesnoth-units
					description=_ "sword"
					icon="attacks/sword-orcish.png"
					name="sword"
					number="5"
					range="melee"
					type="blade"
				[/attack]
				[modifications]
					[trait]
						id="remove_hp"
						[effect]
							apply_to="hitpoints"
							increase_total="-100%"
						[/effect]
						[effect]
							apply_to="movement"
							set="0"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
			[unit]
				alignment="lawful"
				alpha="256"
				attacks_left="1"
				cost="52"
				description="Through waves and rocky channels
blue and white
she pulled and pushed the tides
and taught the fishes how to speak to planets
silver green
with magic
running from her spirit into skins of kelp and shells of snails
a twisting of her tail and hands
she sent her songs to run on pin-tipped legs about the sands
and now
and now the strangest pause
for years and years
she hasn't moved her eyes

(inscribed by MJQ)"
				die_sound="mermaid-die.ogg"
				experience="0"
				facing="sw"
				flag_rgb="magenta"
				flying="no"
				gender="female"
				goto_x="0"
				goto_y="0"
				hitpoints="1"
				id="Mermaid Siren-15"
				image="units/merfolk/siren.png"
				language_name=_ "Mermaid Siren"
				level="3"
				max_attacks="1"
				max_experience="105"
				max_hitpoints="1"
				max_moves="0"
				movement="7"
				movement_type="swimmer"
				moves="0"
				profile="portraits/merfolk/initiate.png"
				race="merman"
				random_gender="no"
				random_traits="no"
				resting="yes"
				side="3"
				type="Mermaid Siren"
				undead_variation="swimmer"
				underlying_id="15"
				unrenamable="yes"
				upkeep="full"
				usage="mixed fighter"
				x="17"
				y="11"
				zoc="yes"
				[defense]
					castle="60"
					cave="80"
					deep_water="50"
					flat="70"
					forest="70"
					frozen="70"
					fungus="80"
					hills="70"
					impassable="80"
					mountains="80"
					reef="30"
					sand="70"
					shallow_water="40"
					swamp_water="40"
					unwalkable="80"
					village="60"
				[/defense]
				[movement_costs]
					castle="1"
					cave="3"
					deep_water="1"
					flat="2"
					forest="5"
					frozen="2"
					fungus="3"
					hills="5"
					impassable="99"
					mountains="99"
					reef="2"
					sand="2"
					shallow_water="1"
					swamp_water="1"
					unwalkable="99"
					village="1"
				[/movement_costs]
				[resistance]
					arcane="100"
					blade="100"
					cold="80"
					fire="100"
					impact="100"
					pierce="100"
				[/resistance]
				[advancement]
#textdomain wesnoth
					description=_ "Max HP bonus +3, Max XP +20%"
					id="amla_default"
					image="misc/icon-amla-tough.png"
					max_times="100"
					strict_amla="yes"
					[effect]
						apply_to="hitpoints"
						heal_full="yes"
						increase_total="3"
					[/effect]
					[effect]
						apply_to="max_experience"
						increase="20%"
					[/effect]
					[effect]
						apply_to="status"
						remove="poisoned"
					[/effect]
					[effect]
						apply_to="status"
						remove="slowed"
					[/effect]
				[/advancement]
				[portrait]
					image="portraits/merfolk/transparent/initiate.png"
					mirror="false"
					side="left"
					size="400"
				[/portrait]
				[portrait]
					image="portraits/merfolk/transparent/initiate.png"
					mirror="true"
					side="right"
					size="400"
				[/portrait]
				[variables]
				[/variables]
				[status]
					hidden="yes"
					stoned="on"
				[/status]
				[attack]
					damage="12"
#textdomain wesnoth-units
					description=_ "naia touch"
					icon="attacks/touch-faerie.png"
					name="naia touch"
					number="1"
					range="melee"
					type="impact"
					[specials]
						[chance_to_hit]
							cumulative="no"
#textdomain wesnoth
							description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
							id="magical"
							name=_ "magical"
							value="70"
						[/chance_to_hit]
					[/specials]
				[/attack]
				[attack]
					damage="15"
#textdomain wesnoth-units
					description=_ "water spray"
					icon="attacks/waterspray.png"
					name="water spray"
					number="3"
					range="ranged"
					type="impact"
					[specials]
						[chance_to_hit]
							cumulative="no"
#textdomain wesnoth
							description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
							id="magical"
							name=_ "magical"
							value="70"
						[/chance_to_hit]
					[/specials]
				[/attack]
				[modifications]
					[trait]
						id="remove_hp"
						[effect]
							apply_to="hitpoints"
							increase_total="-100%"
						[/effect]
						[effect]
							apply_to="movement"
							set="0"
						[/effect]
					[/trait]
				[/modifications]
			[/unit]
		[/side]
		[time]
			blue="0"
			green="-20"
			id="dawn"
			image="misc/schedule-dawn.png"
			lawful_bonus="0"
			name=_ "Dawn"
			red="-20"
		[/time]
		[time]
			blue="0"
			green="0"
			id="morning"
			image="misc/schedule-morning.png"
			lawful_bonus="25"
			name=_ "Morning"
			red="0"
		[/time]
		[time]
			blue="0"
			green="0"
			id="afternoon"
			image="misc/schedule-afternoon.png"
			lawful_bonus="25"
			name=_ "Afternoon"
			red="0"
		[/time]
		[time]
			blue="-20"
			green="-20"
			id="dusk"
			image="misc/schedule-dusk.png"
			lawful_bonus="0"
			name=_ "Dusk"
			red="0"
		[/time]
		[time]
			blue="-10"
			green="-40"
			id="first_watch"
			image="misc/schedule-firstwatch.png"
			lawful_bonus="-25"
			name=_ "First Watch"
			red="-40"
		[/time]
		[time]
			blue="-10"
			green="-40"
			id="second_watch"
			image="misc/schedule-secondwatch.png"
			lawful_bonus="-25"
			name=_ "Second Watch"
			red="-40"
		[/time]
		[music]
			ms_after="0"
			ms_before="12000"
			name="knolls.ogg"
		[/music]
		[music]
			append="yes"
			ms_after="0"
			ms_before="12000"
			name="wanderer.ogg"
		[/music]
		[music]
			append="yes"
			ms_after="0"
			ms_before="12000"
			name="battle.ogg"
		[/music]
		[music]
			append="yes"
			ms_after="0"
			ms_before="12000"
			name="transience.ogg"
		[/music]
		[music]
			append="yes"
			ms_after="0"
			ms_before="12000"
			name="revelation.ogg"
		[/music]
		[music]
			append="yes"
			ms_after="0"
			ms_before="12000"
			name="loyalists.ogg"
		[/music]
		[music]
			append="yes"
			ms_after="0"
			ms_before="12000"
			name="the_king_is_dead.ogg"
		[/music]
		[music]
			append="yes"
			ms_after="0"
			ms_before="12000"
			name="knalgan_theme.ogg"
		[/music]
		[music]
			append="yes"
			ms_after="0"
			ms_before="12000"
			name="the_city_falls.ogg"
		[/music]
		[music]
			append="yes"
			ms_after="0"
			ms_before="12000"
			name="nunc_dimittis.ogg"
		[/music]
		[music]
			append="yes"
			ms_after="0"
			ms_before="12000"
			name="breaking_the_chains.ogg"
		[/music]
		[music]
			append="yes"
			ms_after="0"
			ms_before="12000"
			name="elvish-theme.ogg"
		[/music]
		[music]
			append="yes"
			ms_after="0"
			ms_before="12000"
			name="legends_of_the_north.ogg"
		[/music]
		[music]
			append="yes"
			ms_after="0"
			ms_before="12000"
			name="traveling_minstrels.ogg"
		[/music]
		[music]
			append="yes"
			ms_after="0"
			ms_before="12000"
			name="underground.ogg"
		[/music]
		[music]
			append="yes"
			ms_after="0"
			ms_before="12000"
			name="vengeful.ogg"
		[/music]
		[music]
			append="yes"
			ms_after="0"
			ms_before="12000"
			name="frantic.ogg"
		[/music]
		[music]
			append="yes"
			ms_after="0"
			ms_before="12000"
			name="the_dangerous_symphony.ogg"
		[/music]
		[music]
			append="yes"
			ms_after="0"
			ms_before="12000"
			name="heroes_rite.ogg"
		[/music]
		[music]
			append="yes"
			ms_after="0"
			ms_before="12000"
			name="suspense.ogg"
		[/music]
		[music]
			append="yes"
			ms_after="0"
			ms_before="12000"
			name="the_deep_path.ogg"
		[/music]
		[music]
			append="yes"
			ms_after="0"
			ms_before="12000"
			name="siege_of_laurelmor.ogg"
		[/music]
		[variables]
			damage_inflicted="2"
			side_number="1"
			turn_number="8"
		[/variables]
		[player]
			can_recruit="Dwarvish Fighter,Dwarvish Guardsman,Dwarvish Thunderer,Dwarvish Ulfserker,Footpad,Gryphon Rider,Poacher,Thief"
			gold="-1"
			gold_add="no"
			save_id="Blackadder2"
		[/player]
		[player]
			can_recruit="Dwarvish Fighter,Dwarvish Guardsman,Dwarvish Thunderer,Dwarvish Ulfserker,Footpad,Gryphon Rider,Poacher,Thief"
			gold="-1"
			gold_add="no"
			save_id="Orange_Dude1"
		[/player]
		[era]
			id="era_default"
#textdomain wesnoth-multiplayer
			name=_ "Default"
			[multiplayer_side]
				flag_rgb="magenta"
				id="Random"
				image="units/random-dice.png"
				name=_ "Random"
				random_faction="yes"
			[/multiplayer_side]
			[multiplayer_side]
				flag_rgb="magenta"
				id="Loyalists"
				image="units/human-loyalists/lieutenant.png"
				leader="Lieutenant,Swordsman,Pikeman,Javelineer,Shock Trooper,Longbowman,White Mage,Red Mage"
				name=_ "Loyalists"
				random_leader="Lieutenant,Swordsman,Pikeman,Javelineer,Longbowman,Red Mage"
				recruit="Cavalryman,Horseman,Spearman,Fencer,Heavy Infantryman,Bowman,Mage,Merman Fighter"
				terrain_liked="Gg, Ww, Wo"
				type="Lieutenant"
				[ai]
					recruitment_pattern="fighter,fighter,fighter,archer,mixed fighter,scout"
					[team_formula]
						rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
					[/team_formula]
				[/ai]
			[/multiplayer_side]
			[multiplayer_side]
				flag_rgb="magenta"
				id="Rebels"
				image="units/elves-wood/captain.png"
				leader="Elvish Captain,Elvish Hero,Elvish Ranger,Elvish Marksman,Elvish Druid,Elvish Sorceress,White Mage,Red Mage,Elder Wose"
				name=_ "Rebels"
				random_leader="Elvish Captain,Elvish Hero,Elvish Ranger,Elvish Marksman,Elvish Druid,Elvish Sorceress,Red Mage"
				recruit="Elvish Fighter,Elvish Archer,Mage,Elvish Shaman,Elvish Scout,Wose,Merman Hunter"
				terrain_liked="Ff, Fa, Ss, Ww"
				type="Elvish Captain"
				[ai]
					recruitment_pattern="fighter,fighter,archer,archer,mixed fighter,healer,scout"
					[team_formula]
						rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
					[/team_formula]
				[/ai]
			[/multiplayer_side]
			[multiplayer_side]
				flag_rgb="magenta"
				id="Northerners"
				image="units/orcs/warrior.png"
				leader="Orcish Warrior,Troll,Troll Rocklobber,Orcish Crossbowman,Orcish Slayer"
				name=_ "Northerners"
				recruit="Orcish Grunt,Troll Whelp,Wolf Rider,Orcish Archer,Orcish Assassin,Naga Fighter,Goblin Spearman"
				terrain_liked="Hh, Ha, Mm, Ss"
				type="Orcish Warrior"
				[ai]
					recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
					[team_formula]
						rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
					[/team_formula]
				[/ai]
			[/multiplayer_side]
			[multiplayer_side]
				flag_rgb="magenta"
				id="Undead"
				image="units/undead-necromancers/dark-sorcerer.png"
				leader="Dark Sorcerer,Revenant,Deathblade,Bone Shooter,Necrophage"
				name=_ "Undead"
				random_leader="Dark Sorcerer,Revenant,Deathblade,Bone Shooter"
				recruit="Skeleton,Skeleton Archer,Walking Corpse,Ghost,Vampire Bat,Dark Adept,Ghoul"
				terrain_liked="Ss, Hh, Ha, Ww"
				type="Dark Sorcerer"
				[ai]
					recruitment_pattern="fighter,fighter,archer,fighter,scout,archer"
					[team_formula]
						rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
					[/team_formula]
				[/ai]
			[/multiplayer_side]
			[multiplayer_side]
				flag_rgb="magenta"
				id="Knalgan Alliance"
				image="units/dwarves/steelclad.png"
				leader="Dwarvish Steelclad,Dwarvish Thunderguard,Dwarvish Stalwart,Rogue,Trapper"
				name=_ "Knalgan Alliance"
				random_leader="Dwarvish Steelclad,Dwarvish Thunderguard,Rogue,Trapper"
				recruit="Dwarvish Guardsman,Dwarvish Fighter,Dwarvish Ulfserker,Dwarvish Thunderer,Thief,Poacher,Footpad,Gryphon Rider"
				terrain_liked="Hh, Ha, Mm"
				type="Dwarvish Steelclad"
				[ai]
					recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
					[team_formula]
						rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
					[/team_formula]
				[/ai]
			[/multiplayer_side]
			[multiplayer_side]
				flag_rgb="magenta"
				id="Drakes"
				image="units/drakes/flare.png"
				leader="Drake Flare,Fire Drake,Drake Slasher,Drake Gladiator,Drake Warrior,Saurian Oracle,Saurian Soothsayer"
				name=_ "Drakes"
				random_leader="Drake Flare,Fire Drake,Drake Slasher,Drake Gladiator,Drake Warrior"
				recruit="Drake Burner,Drake Clasher,Drake Glider,Drake Fighter,Saurian Skirmisher,Saurian Augur"
				terrain_liked="Hh, Ha, Ds, Ss"
				type="Drake Flare"
				[ai]
					recruitment_pattern="fighter,fighter,archer,healer,scout,scout"
					[team_formula]
						rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
					[/team_formula]
				[/ai]
			[/multiplayer_side]
			[event]
				name="prestart"
				[store_unit]
					kill="yes"
					variable="leaders_to_make_quick"
					[filter]
						canrecruit="yes"
						[filter_wml]
							max_moves="4"
						[/filter_wml]
					[/filter]
				[/store_unit]
				[set_variable]
					name="i"
					value="0"
				[/set_variable]
				[while]
					[variable]
						less_than="$leaders_to_make_quick.length"
						name="i"
					[/variable]
					[do]
						[set_variables]
							mode="merge"
							name="leaders_to_make_quick[$i].modifications"
							[literal]
								[trait]
#textdomain wesnoth
									female_name=_ "female^quick"
									id="quick"
									male_name=_ "quick"
									[effect]
										apply_to="movement"
										increase="1"
									[/effect]
									[effect]
										apply_to="hitpoints"
										increase_total="-5%"
									[/effect]
								[/trait]
							[/literal]
						[/set_variables]
						[clear_variable]
							name="leaders_to_make_quick[$i].max_moves,leaders_to_make_quick[$i].moves,leaders_to_make_quick[$i].max_hitpoints,leaders_to_make_quick[$i].hitpoints"
						[/clear_variable]
						[unstore_unit]
							variable="leaders_to_make_quick[$i]"
						[/unstore_unit]
						[set_variable]
							add="1"
							name="i"
						[/set_variable]
					[/do]
				[/while]
				[clear_variable]
					name="i"
				[/clear_variable]
				[clear_variable]
					name="leaders_to_make_quick"
				[/clear_variable]
			[/event]
		[/era]
	[/snapshot]
	[replay]
		[command]
			[start]
			[/start]
		[/command]
		[command]
			[recruit]
				value="4"
				x="24"
				y="5"
			[/recruit]
			[random]
				value="27084"
			[/random]
			[random]
				value="9567"
			[/random]
			[random]
				value="15739"
			[/random]
			[random]
				value="9053"
			[/random]
			[random]
				value="31496"
			[/random]
			[random]
				value="23613"
			[/random]
			[random]
				value="13164"
			[/random]
			[random]
				value="25384"
			[/random]
			[random]
				value="783"
			[/random]
			[random]
				value="26937"
			[/random]
			[random]
				value="11149"
			[/random]
			[random]
				value="29382"
			[/random]
			[random]
				value="27754"
			[/random]
			[random]
				value="25539"
			[/random]
			[random]
				value="6750"
				[results]
					checksum="FTxBwyUzhyBkwVHKQOq5AMPytSNtRJzMRsDuHBtnQvBFyQAVsL8qJTmQQNRqrWuTuTxCUFLDPxfDLuyOdqNHp2JuaZMrXGikJwc0bkdib+c.P93obZj,mcoe3b,IXl32"
				[/results]
			[/random]
		[/command]
		[command]
			[recruit]
				value="4"
				x="18"
				y="5"
			[/recruit]
			[random]
				value="21126"
			[/random]
			[random]
				value="8240"
			[/random]
			[random]
				value="22420"
			[/random]
			[random]
				value="14576"
			[/random]
			[random]
				value="1075"
			[/random]
			[random]
				value="663"
			[/random]
			[random]
				value="7248"
			[/random]
			[random]
				value="12328"
			[/random]
			[random]
				value="12933"
			[/random]
			[random]
				value="3822"
			[/random]
			[random]
				value="14245"
			[/random]
			[random]
				value="2651"
			[/random]
			[random]
				value="22425"
			[/random]
			[random]
				value="23531"
			[/random]
			[random]
				value="5697"
				[results]
					checksum="FTxBwyUzhyBkwVHKQOq5AMPytSNtRJzMRsDuHBtnQvBFyQAVsL8qJTmQQNRqrWuTuTxCUFLDPxfDLuyOdqNHp2JuaZMrXGikJwc0bkdib+c.P93obZj,mcoe3b,IXl32"
				[/results]
			[/random]
		[/command]
		[command]
			[recruit]
				value="7"
				x="19"
				y="5"
			[/recruit]
			[random]
				value="23055"
			[/random]
			[random]
				value="26445"
			[/random]
			[random]
				value="14707"
			[/random]
			[random]
				value="31889"
			[/random]
			[random]
				value="20728"
			[/random]
			[random]
				value="23345"
			[/random]
			[random]
				value="17449"
			[/random]
			[random]
				value="22661"
			[/random]
			[random]
				value="15125"
			[/random]
			[random]
				value="19502"
			[/random]
			[random]
				value="26487"
			[/random]
			[random]
				value="32527"
			[/random]
			[random]
				value="15447"
			[/random]
			[random]
				value="30464"
			[/random]
			[random]
				value="13173"
				[results]
					checksum="c4jbeoBjPXdN9277b82>Vg,h+ld6d5,0c<W-1<71YYc5-d+8873Gj8ibkh8k-+v7e7e8fh18<i8Sem73jI-oaGeRO,h>ybO20xxhh6<5,n30KE4<Yfd6-cbePq5.ql>p"
				[/results]
			[/random]
		[/command]
		[command]
			[recruit]
				value="6"
				x="23"
				y="5"
			[/recruit]
			[random]
				value="5477"
			[/random]
			[random]
				value="8956"
			[/random]
			[random]
				value="26742"
			[/random]
			[random]
				value="18426"
			[/random]
			[random]
				value="27013"
			[/random]
			[random]
				value="5328"
			[/random]
			[random]
				value="12953"
			[/random]
			[random]
				value="19444"
			[/random]
			[random]
				value="29360"
			[/random]
			[random]
				value="1346"
			[/random]
			[random]
				value="23466"
			[/random]
			[random]
				value="1736"
			[/random]
			[random]
				value="12385"
			[/random]
			[random]
				value="20720"
			[/random]
			[random]
				value="31905"
				[results]
					checksum="GIrTMzMz9ES2DQOJBEKJhELDntFKRtrHUBCMyPNLLqFJRxvqM3FDTGMqHwEVMDODuIOJsNEsPcOusOKDwebPsxOruODoP.K+zDJqnpswJI0PpQ,UvAQ3huxn4mf5Lj19"
				[/results]
			[/random]
		[/command]
		[command]
			[recruit]
				value="1"
				x="22"
				y="4"
			[/recruit]
			[random]
				value="86"
			[/random]
			[random]
				value="21846"
			[/random]
			[random]
				value="14267"
			[/random]
			[random]
				value="26510"
			[/random]
			[random]
				value="8579"
			[/random]
			[random]
				value="27659"
			[/random]
			[random]
				value="25899"
			[/random]
			[random]
				value="27089"
			[/random]
			[random]
				value="23869"
			[/random]
			[random]
				value="19085"
			[/random]
			[random]
				value="2261"
			[/random]
			[random]
				value="25732"
			[/random]
			[random]
				value="21076"
			[/random]
			[random]
				value="30972"
			[/random]
			[random]
				value="7336"
				[results]
					checksum="MjpsyKA8tq1H+rohkH2DZ9>b7j1h.rkiw1-Fek9X9FajMic5Q3Y959Xncn>g+J0<5+3mY8je7a461,hkGw7d1pgHD0ytJwg>n6zuefoWmmRC,xvlCbQ1htCesyckpNss"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Lighting has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="icanseeyou has logged into the lobby"
			[/speak]
		[/command]
		[command]
			[move]
				x="21,20,19,18,17"
				y="4,4,4,3,3"
			[/move]
		[/command]
		[command]
			[countdown_update]
				team="1"
				value="270000"
			[/countdown_update]
		[/command]
		[command]
			[end_turn]
			[/end_turn]
		[/command]
		[command]
			undo="no"
			[speak]
				id="Orange_Dude"
				message="gl & hf"
				side="1"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[recruit]
				value="7"
				x="18"
				y="19"
			[/recruit]
			[random]
				value="23727"
			[/random]
			[random]
				value="23895"
			[/random]
			[random]
				value="15490"
			[/random]
			[random]
				value="26373"
			[/random]
			[random]
				value="3362"
			[/random]
			[random]
				value="28877"
			[/random]
			[random]
				value="12024"
			[/random]
			[random]
				value="14177"
			[/random]
			[random]
				value="6683"
			[/random]
			[random]
				value="28673"
			[/random]
			[random]
				value="24127"
			[/random]
			[random]
				value="17698"
			[/random]
			[random]
				value="14168"
			[/random]
			[random]
				value="30986"
			[/random]
			[random]
				value="1061"
				[results]
					checksum="c4ibeoBjPXdN9277b82>Vg,h+ld6d5,0c<W-1<71YYc5-d+8873Gj8ibkh8k-+v7e7e8fh1l<i8Sem73jI-oaGeRO,h0ybO20xxhh6<5-i30KE4<Yfd6-cbeCq5.ql>p"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[recruit]
				value="4"
				x="19"
				y="20"
			[/recruit]
			[random]
				value="24666"
			[/random]
			[random]
				value="23840"
			[/random]
			[random]
				value="26312"
			[/random]
			[random]
				value="3411"
			[/random]
			[random]
				value="17630"
			[/random]
			[random]
				value="31658"
			[/random]
			[random]
				value="25129"
			[/random]
			[random]
				value="25718"
			[/random]
			[random]
				value="30952"
			[/random]
			[random]
				value="29556"
			[/random]
			[random]
				value="32343"
			[/random]
			[random]
				value="18313"
			[/random]
			[random]
				value="25111"
			[/random]
			[random]
				value="21742"
			[/random]
			[random]
				value="1555"
				[results]
					checksum="FIxBwyUzhyBkwVHKQOq5AMPytSNtRJzMRsDuHBtnQvBFyQAVsL8qJTmQQNRqrWuTuTxCUEQDPxfDLuyOdqNHp2JuaZJrXGikJwc0bkdie+c.P93obZj,mcpd3b,IXl32"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[recruit]
				value="6"
				x="20"
				y="20"
			[/recruit]
			[random]
				value="23221"
			[/random]
			[random]
				value="2281"
			[/random]
			[random]
				value="26111"
			[/random]
			[random]
				value="3740"
			[/random]
			[random]
				value="12382"
			[/random]
			[random]
				value="9917"
			[/random]
			[random]
				value="25950"
			[/random]
			[random]
				value="26156"
			[/random]
			[random]
				value="2016"
			[/random]
			[random]
				value="26587"
			[/random]
			[random]
				value="9301"
			[/random]
			[random]
				value="5783"
			[/random]
			[random]
				value="20976"
			[/random]
			[random]
				value="3578"
			[/random]
			[random]
				value="25164"
				[results]
					checksum="GIsTMzMz9ES2DQOJBEKJhELDntFKRtrHUBCMyPNLLqFJRxvqM3FDTGMqHwEVMDODuIOJsNEqPcOusOKDwebPsxOruODoP.K+zDJqnpswGK0PpQ,UvAQ3huxn2mf5Lj19"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[recruit]
				value="4"
				x="24"
				y="19"
			[/recruit]
			[random]
				value="9180"
			[/random]
			[random]
				value="22345"
			[/random]
			[random]
				value="9766"
			[/random]
			[random]
				value="21011"
			[/random]
			[random]
				value="18674"
			[/random]
			[random]
				value="26577"
			[/random]
			[random]
				value="26219"
			[/random]
			[random]
				value="26601"
			[/random]
			[random]
				value="32447"
			[/random]
			[random]
				value="28351"
			[/random]
			[random]
				value="11749"
			[/random]
			[random]
				value="31984"
			[/random]
			[random]
				value="31875"
			[/random]
			[random]
				value="16672"
			[/random]
			[random]
				value="19705"
				[results]
					checksum="FTxBwyUzhyBkwVHKQOq5AMPytSNtRJzMRsDuHBtnQvBFyQAVsL8qJTmQQNRqrWuTuTxCUFIDPxfDLuyOdqNHp2JuaZMrXGikJwc0bkdie+c.P93obZj,mcol3b,IXl32"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="jacki has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[recruit]
				value="4"
				x="23"
				y="20"
			[/recruit]
			[random]
				value="24835"
			[/random]
			[random]
				value="1254"
			[/random]
			[random]
				value="16522"
			[/random]
			[random]
				value="25064"
			[/random]
			[random]
				value="25185"
			[/random]
			[random]
				value="20203"
			[/random]
			[random]
				value="11355"
			[/random]
			[random]
				value="9236"
			[/random]
			[random]
				value="24890"
			[/random]
			[random]
				value="32647"
			[/random]
			[random]
				value="7000"
			[/random]
			[random]
				value="15338"
			[/random]
			[random]
				value="13711"
			[/random]
			[random]
				value="20544"
			[/random]
			[random]
				value="23614"
				[results]
					checksum="uyqOVzDO<ExdHrVAAKrGB6qDQPwqLuEDUSNIMADRBGxxpOFSryqC1rOBpDQNRqrWuTuTxCUFIDPxfDLuyOdqNHp2JuaZMrXGikJwc0bkdie+c.P93obZj,mcol3b,IXl"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[recruit]
				value="6"
				x="22"
				y="20"
			[/recruit]
			[random]
				value="19381"
			[/random]
			[random]
				value="4296"
			[/random]
			[random]
				value="19126"
			[/random]
			[random]
				value="1192"
			[/random]
			[random]
				value="22033"
			[/random]
			[random]
				value="199"
			[/random]
			[random]
				value="3520"
			[/random]
			[random]
				value="16822"
			[/random]
			[random]
				value="20134"
			[/random]
			[random]
				value="16659"
			[/random]
			[random]
				value="8966"
			[/random]
			[random]
				value="684"
			[/random]
			[random]
				value="32680"
			[/random]
			[random]
				value="28569"
			[/random]
			[random]
				value="31501"
				[results]
					checksum="GIrTMzMz9ES2DQOJBEKJhELDntFKRtrHUBCMyPNLLqFJRxvqM3FDTGMqHwEVMDODuIOJsNEtPcOusOKDwebPsxOruODoP.K+zDJqnpswGK0PpQ,qvAQ3huxn5mf5Lj19"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[move]
				x="21,22,23,24,25"
				y="21,20,20,20,21"
			[/move]
		[/command]
		[command]
			sent="yes"
			[countdown_update]
				team="2"
				value="270000"
			[/countdown_update]
		[/command]
		[command]
			sent="yes"
			[end_turn]
			[/end_turn]
		[/command]
		[command]
			[end_turn]
			[/end_turn]
		[/command]
		[command]
			[move]
				x="22,23,24,24,25"
				y="4,5,5,6,7"
			[/move]
		[/command]
		[command]
			[move]
				x="24,25,26,27,28,29,30,31"
				y="5,6,6,6,5,5,5,6"
			[/move]
		[/command]
		[command]
			[move]
				x="23,23,22,22,22,22"
				y="5,6,6,7,8,9"
			[/move]
		[/command]
		[command]
			[move]
				x="17,17,17,17,17,17"
				y="3,4,5,6,7,8"
			[/move]
		[/command]
		[command]
			[move]
				x="18,17,16,15,14,13,12"
				y="5,5,5,5,5,5,4"
			[/move]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="WIF_Gadenz has logged into the lobby"
			[/speak]
		[/command]
		[command]
			[move]
				x="19,18,17,16,15,14,13,12"
				y="5,5,6,6,7,7,8,8"
			[/move]
		[/command]
		[command]
			[countdown_update]
				team="1"
				value="270000"
			[/countdown_update]
		[/command]
		[command]
			[end_turn]
			[/end_turn]
		[/command]
		[command]
			sent="yes"
			[move]
				x="18,18,18,18,17,16,16"
				y="19,18,17,16,16,15,14"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="19,18,17,16,15,14,13,12,11"
				y="20,19,19,19,20,19,19,19,19"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="20,19,18,17,16,15"
				y="20,20,19,19,19,20"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="24,25,26,27,28,29,30,31"
				y="19,19,18,18,17,17,16,16"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="23,24,25,26,27,28,29,30"
				y="20,19,20,20,20,19,20,20"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="22,23,24,24,25,25"
				y="20,20,19,18,18,17"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="25,24,23,22,21"
				y="21,20,20,20,21"
			[/move]
		[/command]
		[command]
			sent="yes"
			[recruit]
				value="7"
				x="24"
				y="19"
			[/recruit]
			[random]
				value="14110"
			[/random]
			[random]
				value="20395"
			[/random]
			[random]
				value="22073"
			[/random]
			[random]
				value="10020"
			[/random]
			[random]
				value="18194"
			[/random]
			[random]
				value="11751"
			[/random]
			[random]
				value="26999"
			[/random]
			[random]
				value="23243"
			[/random]
			[random]
				value="32313"
			[/random]
			[random]
				value="17248"
			[/random]
			[random]
				value="25732"
			[/random]
			[random]
				value="29314"
			[/random]
			[random]
				value="27319"
			[/random]
			[random]
				value="30777"
			[/random]
			[random]
				value="5950"
				[results]
					checksum="86Wmq3.,tb9Th9Xh+8Om3eb898egWbi26k39>2dlaZge0f-9iPif8c7h8k-+v7e7e8fh1b<i8Sem73jI-oaGeRO,h0ybO20xxhh6<5-i30KE4<Yfd6-cbeMq5.ql>pFA"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[countdown_update]
				team="2"
				value="270000"
			[/countdown_update]
		[/command]
		[command]
			sent="yes"
			[end_turn]
			[/end_turn]
		[/command]
		[command]
			[end_turn]
			[/end_turn]
		[/command]
		[command]
			[move]
				x="17,17,17,18"
				y="8,7,6,5"
			[/move]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Warrior has logged into the lobby"
			[/speak]
		[/command]
		[command]
			[move]
				x="12,12,12,12,11,11,11,11"
				y="4,5,6,7,8,9,10,11"
			[/move]
		[/command]
		[command]
			[move]
				x="12,11,10,9,8"
				y="8,9,9,10,10"
			[/move]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Pavlin has logged into the lobby"
			[/speak]
		[/command]
		[command]
			[move]
				x="8,8"
				y="10,11"
			[/move]
		[/command]
		[command]
			[move]
				x="8,7"
				y="11,12"
			[/move]
		[/command]
		[command]
			[move]
				x="22,23,24,25,26,26"
				y="9,9,8,9,9,10"
			[/move]
		[/command]
		[command]
			[move]
				x="25,26,26,27,28"
				y="7,7,8,9,9"
			[/move]
		[/command]
		[command]
			[move]
				x="31,31,31,31,31"
				y="6,7,8,9,10"
			[/move]
		[/command]
		[command]
			[countdown_update]
				team="1"
				value="270000"
			[/countdown_update]
		[/command]
		[command]
			[end_turn]
			[/end_turn]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="qrcze has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[move]
				x="11,11"
				y="19,18"
			[/move]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="icanseeyou has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Darius has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[move]
				x="31,32,33,33,34,35,35"
				y="16,15,15,14,13,13,12"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="30,30,30,30,30"
				y="20,19,18,17,16"
			[/move]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="MrHanky has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[move]
				x="30,31"
				y="16,16"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="25,25,26,27,28,29,30"
				y="17,18,18,18,17,17,16"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="11,12,12,13,14,15"
				y="18,17,16,16,15,15"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="16,16,17,18,19,20"
				y="14,15,16,16,16,15"
			[/move]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Bierbrauer has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[recruit]
				value="7"
				x="18"
				y="19"
			[/recruit]
			[random]
				value="29501"
			[/random]
			[random]
				value="1499"
			[/random]
			[random]
				value="15235"
			[/random]
			[random]
				value="2351"
			[/random]
			[random]
				value="28338"
			[/random]
			[random]
				value="17227"
			[/random]
			[random]
				value="9222"
			[/random]
			[random]
				value="23661"
			[/random]
			[random]
				value="223"
			[/random]
			[random]
				value="21064"
			[/random]
			[random]
				value="27330"
			[/random]
			[random]
				value="24669"
			[/random]
			[random]
				value="21216"
			[/random]
			[random]
				value="4108"
			[/random]
			[random]
				value="11868"
				[results]
					checksum="c4jbeoBjPXdN9277b82>Vg,h+ld6d5,0c<W-1<71YYc5-d+8873Gj8ibkh8k-+v7e7e8fh18<i8Sem73jI-oaGeRO,h>ybO20xxhh6<5,n30KE4<Yfd6-cbePq5.ql>p"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[move]
				x="15,14,13,12,11"
				y="20,19,19,19,19"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="24,25,26,27,28,29,30,30"
				y="19,19,18,18,17,17,16,15"
			[/move]
		[/command]
		[command]
			sent="yes"
			[countdown_update]
				team="2"
				value="270000"
			[/countdown_update]
		[/command]
		[command]
			sent="yes"
			[end_turn]
			[/end_turn]
		[/command]
		[command]
			[end_turn]
			[/end_turn]
		[/command]
		[command]
			[move]
				x="18,19,20,21"
				y="5,5,4,4"
			[/move]
		[/command]
		[command]
			[move]
				x="31,31,31,31,31"
				y="10,9,8,7,6"
			[/move]
		[/command]
		[command]
			[move]
				x="28,29,30,31"
				y="9,10,10,10"
			[/move]
		[/command]
		[command]
			[move]
				x="26,27"
				y="10,11"
			[/move]
		[/command]
		[command]
			[move]
				x="27,28"
				y="11,11"
			[/move]
		[/command]
		[command]
			[move]
				x="28,29"
				y="11,12"
			[/move]
		[/command]
		[command]
			[move]
				x="29,28,27,26"
				y="12,11,11,10"
			[/move]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="CramNiap has logged into the lobby"
			[/speak]
		[/command]
		[command]
			[recruit]
				value="6"
				x="24"
				y="5"
			[/recruit]
			[random]
				value="25939"
			[/random]
			[random]
				value="28501"
			[/random]
			[random]
				value="912"
			[/random]
			[random]
				value="6288"
			[/random]
			[random]
				value="27432"
			[/random]
			[random]
				value="27266"
			[/random]
			[random]
				value="17217"
			[/random]
			[random]
				value="16399"
			[/random]
			[random]
				value="21041"
			[/random]
			[random]
				value="26901"
			[/random]
			[random]
				value="18367"
			[/random]
			[random]
				value="24627"
			[/random]
			[random]
				value="24114"
			[/random]
			[random]
				value="8210"
			[/random]
			[random]
				value="12555"
				[results]
					checksum="GIsTMzMz9ES2DQOJBEKJhELDntFKRtrHUBCMyPNLLqFJRxvqM3FDTGMqHwEVMDODuIOJsNEqPcOusOKDwebPsxOruODoP.K+zDJqnpswGK0PpQ,UvAQ3huxn2mf5Lj19"
				[/results]
			[/random]
		[/command]
		[command]
			[recruit]
				value="4"
				x="23"
				y="5"
			[/recruit]
			[random]
				value="8219"
			[/random]
			[random]
				value="20481"
			[/random]
			[random]
				value="22659"
			[/random]
			[random]
				value="14029"
			[/random]
			[random]
				value="13103"
			[/random]
			[random]
				value="15416"
			[/random]
			[random]
				value="6849"
			[/random]
			[random]
				value="30128"
			[/random]
			[random]
				value="5877"
			[/random]
			[random]
				value="7131"
			[/random]
			[random]
				value="5685"
			[/random]
			[random]
				value="631"
			[/random]
			[random]
				value="2163"
			[/random]
			[random]
				value="16426"
			[/random]
			[random]
				value="32308"
				[results]
					checksum="uyqNVzDO<ExdHrVAAKrGB6qDQPwqLuEDUSNIMADRBGxxpOFSryqC1rOBpDQNRqrWuTuTxCUEQDPxfDLuyOdqNHp2JuaZJrXGikJwc0bkdie+c.P93obZj,mcpd3b,IXl"
				[/results]
			[/random]
		[/command]
		[command]
			[recruit]
				value="1"
				x="22"
				y="4"
			[/recruit]
			[random]
				value="25277"
			[/random]
			[random]
				value="26726"
			[/random]
			[random]
				value="27184"
			[/random]
			[random]
				value="32242"
			[/random]
			[random]
				value="17149"
			[/random]
			[random]
				value="20437"
			[/random]
			[random]
				value="16018"
			[/random]
			[random]
				value="30457"
			[/random]
			[random]
				value="12958"
			[/random]
			[random]
				value="14610"
			[/random]
			[random]
				value="442"
			[/random]
			[random]
				value="15144"
			[/random]
			[random]
				value="7772"
			[/random]
			[random]
				value="10556"
			[/random]
			[random]
				value="599"
				[results]
					checksum="MipsyKA8tq1G+rohkH2DZ9>b7j1h.rkiw1-Fek9X9FajMic5Q3Y959Xncn>g+J0<5+3mY8je7a461,hkHw7d1pgHD0ytJwg>n6zuefoWmmRC,xvlCaM1htCesyhkpNss"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="WIF_Xalzar has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Mique has logged into the lobby"
			[/speak]
		[/command]
		[command]
			[move]
				x="11,12"
				y="11,11"
			[/move]
		[/command]
		[command]
			[move]
				x="12,13"
				y="11,12"
			[/move]
		[/command]
		[command]
			[move]
				x="13,13"
				y="12,13"
			[/move]
		[/command]
		[command]
			[move]
				x="13,13,12,11"
				y="13,12,11,11"
			[/move]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="binchu has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Roten has logged into the lobby"
			[/speak]
		[/command]
		[command]
			[move]
				x="7,8,9,10,11,12,12,13"
				y="12,11,11,10,10,9,8,8"
			[/move]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="zedahu has logged into the lobby"
			[/speak]
		[/command]
		[command]
			[countdown_update]
				team="1"
				value="270000"
			[/countdown_update]
		[/command]
		[command]
			[end_turn]
			[/end_turn]
		[/command]
		[command]
			sent="yes"
			[move]
				x="15,14,13,12,11,10,10"
				y="15,14,14,14,15,14,13"
			[/move]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="jogador has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Burger has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Azaghal has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[move]
				x="20,19,18,17,16,15,14"
				y="15,16,16,16,15,15,14"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="18,17,16,16,16,15,14,13"
				y="19,19,18,17,16,16,15,15"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="11,11,11,11,11"
				y="19,18,17,16,15"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="35,35,35,34,34,33"
				y="12,11,10,9,8,8"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="31,31,31,31,31"
				y="16,15,14,13,12"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="30,30,30,30"
				y="15,14,13,12"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="30,31,31,31,31"
				y="16,16,15,14,13"
			[/move]
		[/command]
		[command]
			sent="yes"
			[recruit]
				value="7"
				x="24"
				y="19"
			[/recruit]
			[random]
				value="29623"
			[/random]
			[random]
				value="16823"
			[/random]
			[random]
				value="24051"
			[/random]
			[random]
				value="30267"
			[/random]
			[random]
				value="10079"
			[/random]
			[random]
				value="9002"
			[/random]
			[random]
				value="19092"
			[/random]
			[random]
				value="27303"
			[/random]
			[random]
				value="21353"
			[/random]
			[random]
				value="23143"
			[/random]
			[random]
				value="27920"
			[/random]
			[random]
				value="15323"
			[/random]
			[random]
				value="538"
			[/random]
			[random]
				value="681"
			[/random]
			[random]
				value="1414"
				[results]
					checksum="c4jbeoBjPXdN9277b82>Vg,h+ld6d5,0c<W-1<71YYc5-d+8873Gj8ibkh8k-+v7e7e8fh1b<i8Sem73jI-oaGeRO,h0ybO20xxhh6<5-i30KE4<Yfd6-cbeMq5.ql>p"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[countdown_update]
				team="2"
				value="270000"
			[/countdown_update]
		[/command]
		[command]
			sent="yes"
			[end_turn]
			[/end_turn]
		[/command]
		[command]
			[end_turn]
			[/end_turn]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="TEMPOTEMPO has logged into the lobby"
			[/speak]
		[/command]
		[command]
			[recruit]
				value="6"
				x="18"
				y="5"
			[/recruit]
			[random]
				value="30806"
			[/random]
			[random]
				value="9622"
			[/random]
			[random]
				value="17732"
			[/random]
			[random]
				value="20256"
			[/random]
			[random]
				value="6474"
			[/random]
			[random]
				value="23616"
			[/random]
			[random]
				value="25838"
			[/random]
			[random]
				value="29792"
			[/random]
			[random]
				value="12042"
			[/random]
			[random]
				value="21435"
			[/random]
			[random]
				value="30857"
			[/random]
			[random]
				value="24236"
			[/random]
			[random]
				value="18194"
			[/random]
			[random]
				value="13350"
			[/random]
			[random]
				value="22023"
				[results]
					checksum="GIsTMzMz9ES2DQOJBEKJhELDntFKRtrHUBCMyPNLLqFJRxvqM3FDTGMqHwEVMDODuIOJsNEqPcOusOKDwebPsxOruODoP.K+zDJqnpswGK0PpQ,UvAQ3huxn2mf5Lj19"
				[/results]
			[/random]
		[/command]
		[command]
			[recruit]
				value="7"
				x="19"
				y="5"
			[/recruit]
			[random]
				value="21443"
			[/random]
			[random]
				value="20487"
			[/random]
			[random]
				value="25983"
			[/random]
			[random]
				value="3708"
			[/random]
			[random]
				value="32460"
			[/random]
			[random]
				value="13752"
			[/random]
			[random]
				value="23631"
			[/random]
			[random]
				value="7589"
			[/random]
			[random]
				value="13505"
			[/random]
			[random]
				value="11975"
			[/random]
			[random]
				value="20629"
			[/random]
			[random]
				value="4540"
			[/random]
			[random]
				value="6149"
			[/random]
			[random]
				value="12192"
			[/random]
			[random]
				value="4702"
				[results]
					checksum="c4ibeoBjPXdN9277b82>Vg,h+ld6d5,0c<W-1<71YYc5-d+8873Gj8ibkh8k-+v7e7e8fh19<i8Sem73jI-oaGeRO,h>ybO20xxhh6<5-i30KE4<Yfd6-cbeOq5.ql>p"
				[/results]
			[/random]
		[/command]
		[command]
			[move]
				x="23,22,21,20,19,18,17,16,15"
				y="5,4,4,4,5,5,6,6,7"
			[/move]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Confessor has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Bohemmoth has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Minotharus has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="uio has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Roten has logged into the lobby"
			[/speak]
		[/command]
		[command]
			[move]
				x="22,21,20,19,18,17"
				y="4,4,4,5,5,6"
			[/move]
		[/command]
		[command]
			[move]
				x="24,23,22,21,20,19"
				y="5,5,5,6,6,7"
			[/move]
		[/command]
		[command]
			[move]
				x="11,11,11,10"
				y="11,10,9,8"
			[/move]
		[/command]
		[command]
			[move]
				x="13,12,11"
				y="8,7,7"
			[/move]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="aeris_Hu has logged into the lobby"
			[/speak]
		[/command]
		[command]
			[move]
				x="21,22,23,24,25,26"
				y="4,4,5,5,6,6"
			[/move]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Glamdring has logged into the lobby"
			[/speak]
		[/command]
		[command]
			[countdown_update]
				team="1"
				value="270000"
			[/countdown_update]
		[/command]
		[command]
			[end_turn]
			[/end_turn]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Kain has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[move]
				x="10,11,11,11"
				y="13,13,12,11"
			[/move]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Hi has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="ka_o_3991 has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[move]
				x="11,12,13,13,13,13"
				y="15,14,14,13,12,11"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="13,13,13,12,11,10,9"
				y="15,14,13,12,12,11,11"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="14,13,13,13,12,11,10"
				y="14,14,13,12,11,11,10"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="31,30,29,29,29,29"
				y="12,11,11,10,9,8"
			[/move]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Glouk has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="gamelle has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Lighting has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Vex121 has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[move]
				x="24,25,26,27,28,29,30,30"
				y="19,19,18,18,17,17,16,15"
			[/move]
		[/command]
		[command]
			sent="yes"
			[recruit]
				value="4"
				x="24"
				y="19"
			[/recruit]
			[random]
				value="15948"
			[/random]
			[random]
				value="32274"
			[/random]
			[random]
				value="16891"
			[/random]
			[random]
				value="30339"
			[/random]
			[random]
				value="31313"
			[/random]
			[random]
				value="25633"
			[/random]
			[random]
				value="31414"
			[/random]
			[random]
				value="24538"
			[/random]
			[random]
				value="1782"
			[/random]
			[random]
				value="23160"
			[/random]
			[random]
				value="24607"
			[/random]
			[random]
				value="32407"
			[/random]
			[random]
				value="17685"
			[/random]
			[random]
				value="15195"
			[/random]
			[random]
				value="11511"
				[results]
					checksum="FTxBwyUzhyBkwVHKQOq5AMPytSNtRJzMRsDuHBtnQvBFyQAVsL8qJTmQQNRqrWuTuTxCUFLDPxfDLuyOdqNHp2JuaZMrXGikJwc0bkdib+c.P93obZj,mcoe3b,IXl32"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[recruit]
				value="4"
				x="18"
				y="19"
			[/recruit]
			[random]
				value="24622"
			[/random]
			[random]
				value="14675"
			[/random]
			[random]
				value="26502"
			[/random]
			[random]
				value="20988"
			[/random]
			[random]
				value="3480"
			[/random]
			[random]
				value="6972"
			[/random]
			[random]
				value="23705"
			[/random]
			[random]
				value="5780"
			[/random]
			[random]
				value="30624"
			[/random]
			[random]
				value="19442"
			[/random]
			[random]
				value="15181"
			[/random]
			[random]
				value="28728"
			[/random]
			[random]
				value="12466"
			[/random]
			[random]
				value="22786"
			[/random]
			[random]
				value="19590"
				[results]
					checksum="FTxBwyUzhyBkwVHKQOq5AMPytSNtRJzMRsDuHBtnQvBFyQAVsL8qJTmQQNRqrWuTuTxCUFIDPxfDLuyOdqNHp2JuaZMrXGikJwc0bkdie+c.P93obZj,mcol3b,IXl32"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Girgistian has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Kelen has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="goku94 has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="DZh-Kenshin has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="eastprince has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[move]
				x="33,32,31,30,29,29"
				y="8,7,8,7,7,6"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="29,29"
				y="8,9"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="30,30,29,29,29,29"
				y="12,11,11,10,9,8"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="31,30,29,28,27"
				y="13,13,13,12,12"
			[/move]
		[/command]
		[command]
			sent="yes"
			[countdown_update]
				team="2"
				value="270000"
			[/countdown_update]
		[/command]
		[command]
			sent="yes"
			[end_turn]
			[/end_turn]
		[/command]
		[command]
			[end_turn]
			[/end_turn]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Thrantar has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="DZh-AlphaRune has logged into the lobby"
			[/speak]
		[/command]
		[command]
			[move]
				x="26,26,26,27,28"
				y="6,7,8,9,9"
			[/move]
		[/command]
		[command]
			[attack]
				defender_weapon="1"
				weapon="1"
				[source]
					x="28"
					y="9"
				[/source]
				[destination]
					x="29"
					y="9"
				[/destination]
			[/attack]
			[random]
				value="13853"
				[results]
					chance="40"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="13163"
				[results]
					chance="60"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="25013"
				[results]
					chance="40"
					damage="9"
					dies="no"
					hits="yes"
				[/results]
			[/random]
			[random]
				value="21789"
				[results]
					chance="60"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="16868"
				[results]
					chance="40"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="9353"
				[results]
					chance="40"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
		[/command]
		[command]
			[move]
				x="26,27,28,29,30,30"
				y="10,10,10,11,10,9"
			[/move]
		[/command]
		[command]
			[attack]
				defender_weapon="1"
				weapon="1"
				[source]
					x="30"
					y="9"
				[/source]
				[destination]
					x="29"
					y="9"
				[/destination]
			[/attack]
			[random]
				value="11830"
				[results]
					chance="40"
					damage="6"
					dies="no"
					hits="yes"
				[/results]
			[/random]
			[random]
				value="10739"
				[results]
					chance="40"
					damage="6"
					dies="no"
					hits="yes"
				[/results]
			[/random]
			[random]
				value="132"
				[results]
					chance="40"
					damage="6"
					dies="no"
					hits="yes"
				[/results]
			[/random]
			[random]
				value="18524"
				[results]
					chance="40"
					damage="6"
					dies="no"
					hits="yes"
				[/results]
			[/random]
			[random]
				value="17776"
				[results]
					chance="40"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="17322"
				[results]
					chance="40"
					damage="6"
					dies="no"
					hits="yes"
				[/results]
			[/random]
		[/command]
		[command]
			[move]
				x="31,30,29"
				y="10,10,10"
			[/move]
		[/command]
		[command]
			[attack]
				defender_weapon="0"
				weapon="0"
				[source]
					x="29"
					y="10"
				[/source]
				[destination]
					x="29"
					y="9"
				[/destination]
			[/attack]
			[random]
				value="456"
				[results]
					chance="40"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="5687"
				[results]
					chance="70"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="18053"
				[results]
					chance="40"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="26608"
				[results]
					chance="70"
					damage="6"
					dies="no"
					hits="yes"
				[/results]
			[/random]
			[random]
				value="19608"
				[results]
					chance="40"
					damage="7"
					dies="yes"
					hits="yes"
				[/results]
			[/random]
		[/command]
		[command]
			[move]
				x="19,20,21,22,23,24,25"
				y="5,4,5,5,6,6,7"
			[/move]
		[/command]
		[command]
			[move]
				x="19,20,21,22,23,24"
				y="7,7,7,7,8,7"
			[/move]
		[/command]
		[command]
			[move]
				x="31,31,30"
				y="6,7,7"
			[/move]
		[/command]
		[command]
			[attack]
				defender_weapon="-1"
				weapon="1"
				[source]
					x="30"
					y="7"
				[/source]
				[destination]
					x="29"
					y="8"
				[/destination]
			[/attack]
			[random]
				value="30353"
				[results]
					chance="30"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="27532"
				[results]
					chance="30"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="SLSL has logged into the lobby"
			[/speak]
		[/command]
		[command]
			[move]
				x="10,10"
				y="8,9"
			[/move]
		[/command]
		[command]
			[attack]
				defender_weapon="-1"
				weapon="1"
				[source]
					x="10"
					y="9"
				[/source]
				[destination]
					x="10"
					y="10"
				[/destination]
			[/attack]
			[random]
				value="13365"
				[results]
					chance="40"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="19416"
				[results]
					chance="40"
					damage="7"
					dies="no"
					hits="yes"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Kain has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Carving has logged into the lobby"
			[/speak]
		[/command]
		[command]
			[move]
				x="18,17,16,15,14,13"
				y="5,6,6,7,7,8"
			[/move]
		[/command]
		[command]
			[move]
				x="17,16,15,14,13,12"
				y="6,6,7,7,8,8"
			[/move]
		[/command]
		[command]
			[move]
				x="15,14,13,12,11,10"
				y="7,7,7,7,8,8"
			[/move]
		[/command]
		[command]
			[move]
				x="11,10,9,9"
				y="7,7,8,9"
			[/move]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Lutzbox360 has logged into the lobby"
			[/speak]
		[/command]
		[command]
			[countdown_update]
				team="1"
				value="270000"
			[/countdown_update]
		[/command]
		[command]
			[end_turn]
			[/end_turn]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="2130 has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="jingjang1 has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[move]
				x="30,30,30,29,29,28,27,27"
				y="15,14,13,13,12,11,11,10"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="29,29"
				y="8,9"
			[/move]
		[/command]
		[command]
			sent="yes"
			[attack]
				defender_weapon="0"
				weapon="0"
				[source]
					x="27"
					y="10"
				[/source]
				[destination]
					x="28"
					y="9"
				[/destination]
			[/attack]
			[random]
				value="21787"
				[results]
					chance="60"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="5022"
				[results]
					chance="40"
					damage="6"
					dies="no"
					hits="yes"
				[/results]
			[/random]
			[random]
				value="1421"
				[results]
					chance="60"
					damage="10"
					dies="no"
					hits="yes"
				[/results]
			[/random]
			[random]
				value="11641"
				[results]
					chance="40"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="19997"
				[results]
					chance="60"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="31292"
				[results]
					chance="40"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="3561"
				[results]
					chance="40"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[attack]
				defender_weapon="0"
				weapon="0"
				[source]
					x="29"
					y="9"
				[/source]
				[destination]
					x="28"
					y="9"
				[/destination]
			[/attack]
			[random]
				value="31160"
				[results]
					chance="60"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="5938"
				[results]
					chance="40"
					damage="6"
					dies="no"
					hits="yes"
				[/results]
			[/random]
			[random]
				value="31266"
				[results]
					chance="60"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="12449"
				[results]
					chance="40"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="9158"
				[results]
					chance="60"
					damage="10"
					dies="no"
					hits="yes"
				[/results]
			[/random]
			[random]
				value="32373"
				[results]
					chance="40"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="530"
				[results]
					chance="40"
					damage="6"
					dies="no"
					hits="yes"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="mchandy36 has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="jogador has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="oskar has logged into the lobby"
			[/speak]
		[/command]
		[command]
			undo="no"
			[speak]
				id="Orange_Dude"
				message="didnt see that quick thief coming..."
				side="1"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[move]
				x="24,25,26,27,28,29,30,30"
				y="19,19,18,18,17,17,16,15"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="29,30,31"
				y="6,5,6"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="27,27,26"
				y="12,11,10"
			[/move]
		[/command]
		[command]
			sent="yes"
			[recruit]
				value="7"
				x="24"
				y="19"
			[/recruit]
			[random]
				value="7100"
			[/random]
			[random]
				value="20590"
			[/random]
			[random]
				value="26395"
			[/random]
			[random]
				value="24054"
			[/random]
			[random]
				value="32047"
			[/random]
			[random]
				value="14041"
			[/random]
			[random]
				value="7115"
			[/random]
			[random]
				value="28501"
			[/random]
			[random]
				value="1288"
			[/random]
			[random]
				value="3240"
			[/random]
			[random]
				value="28303"
			[/random]
			[random]
				value="9652"
			[/random]
			[random]
				value="21549"
			[/random]
			[random]
				value="19897"
			[/random]
			[random]
				value="4129"
				[results]
					checksum="86Wmq3.,tb9Th9Xh+8Om3eb898egWbi26k39>2dlaZge0f-9iPif8c7h8k-+v7e7e8fh1b<i8Sem73jI-oaGeRO,h0ybO20xxhh6<5-i30KE4<Yfd6-cbeMq5.ql>pFA"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			undo="no"
			[speak]
				id="Blackadder"
				message="ah"
				side="2"
			[/speak]
		[/command]
		[command]
			sent="yes"
			undo="no"
			[speak]
				id="Blackadder"
				message="you were very lucky there"
				side="2"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Hellmaster has logged into the lobby"
			[/speak]
		[/command]
		[command]
			undo="no"
			[speak]
				id="Orange_Dude"
				message="well yeah, there was chance to kill there for sure"
				side="1"
			[/speak]
		[/command]
		[command]
			sent="yes"
			undo="no"
			[speak]
				id="Blackadder"
				message="I'm at -44% inflicted"
				side="2"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Junkie has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			undo="no"
			[speak]
				id="Blackadder"
				message="the average damage was 36, and I didn't use my poacher"
				side="2"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[move]
				x="18,18,18,17,17,16,16,15"
				y="19,18,17,17,16,15,14,14"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="9,8,7,7,7,8,9"
				y="11,10,10,9,8,7,8"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="13,12,11,10,9,9"
				y="11,10,11,11,11,10"
			[/move]
		[/command]
		[command]
			sent="yes"
			[attack]
				defender_weapon="-1"
				weapon="1"
				[source]
					x="9"
					y="10"
				[/source]
				[destination]
					x="9"
					y="9"
				[/destination]
			[/attack]
			[random]
				value="20791"
				[results]
					chance="30"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="25086"
				[results]
					chance="30"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="22770"
				[results]
					chance="30"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="4685"
				[results]
					chance="30"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Stannis has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[attack]
				defender_weapon="0"
				weapon="0"
				[source]
					x="9"
					y="8"
				[/source]
				[destination]
					x="9"
					y="9"
				[/destination]
			[/attack]
			[random]
				value="19283"
				[results]
					chance="30"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="2609"
				[results]
					chance="30"
					damage="8"
					dies="no"
					hits="yes"
				[/results]
			[/random]
			[random]
				value="26496"
				[results]
					chance="30"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="10492"
				[results]
					chance="30"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="20348"
				[results]
					chance="30"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="25483"
				[results]
					chance="30"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Mehos has logged into the lobby"
			[/speak]
		[/command]
		[command]
			undo="no"
			[speak]
				id="Orange_Dude"
				message="so yeah, that was about 50% than id say...."
				side="1"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[move]
				x="11,12,13,14,15,16"
				y="11,10,11,10,10,9"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="10,11"
				y="10,11"
			[/move]
		[/command]
		[command]
			sent="yes"
			[countdown_update]
				team="2"
				value="270000"
			[/countdown_update]
		[/command]
		[command]
			sent="yes"
			[end_turn]
			[/end_turn]
		[/command]
		[command]
			[end_turn]
			[/end_turn]
		[/command]
		[command]
			sent="yes"
			undo="no"
			[speak]
				id="Blackadder"
				message="yeah"
				side="2"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="zxa has logged into the lobby"
			[/speak]
		[/command]
		[command]
			[move]
				x="24,25,25,26"
				y="7,8,9,9"
			[/move]
		[/command]
		[command]
			[attack]
				defender_weapon="-1"
				weapon="1"
				[source]
					x="26"
					y="9"
				[/source]
				[destination]
					x="27"
					y="10"
				[/destination]
			[/attack]
			[random]
				value="2240"
				[results]
					chance="40"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="30865"
				[results]
					chance="40"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="28154"
				[results]
					chance="40"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="18739"
				[results]
					chance="40"
					damage="5"
					dies="no"
					hits="yes"
				[/results]
			[/random]
		[/command]
		[command]
			[move]
				x="29,29,28,27"
				y="10,11,11,11"
			[/move]
		[/command]
		[command]
			[attack]
				defender_weapon="0"
				weapon="0"
				[source]
					x="27"
					y="11"
				[/source]
				[destination]
					x="27"
					y="10"
				[/destination]
			[/attack]
			[random]
				value="27979"
				[results]
					chance="40"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="21472"
				[results]
					chance="70"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="6191"
				[results]
					chance="40"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="18794"
				[results]
					chance="70"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="7913"
				[results]
					chance="40"
					damage="7"
					dies="no"
					hits="yes"
				[/results]
			[/random]
			[random]
				value="1626"
				[results]
					chance="70"
					damage="3"
					dies="no"
					hits="yes"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="PeterPanTheFirst has logged into the lobby"
			[/speak]
		[/command]
		[command]
			[move]
				x="30,30,29,28"
				y="9,10,11,10"
			[/move]
		[/command]
		[command]
			[attack]
				defender_weapon="-1"
				weapon="1"
				[source]
					x="28"
					y="10"
				[/source]
				[destination]
					x="27"
					y="10"
				[/destination]
			[/attack]
			[random]
				value="2816"
				[results]
					chance="40"
					damage="5"
					dies="yes"
					hits="yes"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Iwonka has logged into the lobby"
			[/speak]
		[/command]
		[command]
			[move]
				x="28,27,26,25,24,24"
				y="9,9,8,8,7,6"
			[/move]
		[/command]
		[command]
			[move]
				x="30,30"
				y="7,8"
			[/move]
		[/command]
		[command]
			[attack]
				defender_weapon="-1"
				weapon="1"
				[source]
					x="30"
					y="8"
				[/source]
				[destination]
					x="29"
					y="9"
				[/destination]
			[/attack]
			[random]
				value="15553"
				[results]
					chance="40"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="499"
				[results]
					chance="40"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
		[/command]
		[command]
			[move]
				x="25,26,26,27,28"
				y="7,7,8,9,9"
			[/move]
		[/command]
		[command]
			[attack]
				defender_weapon="0"
				weapon="0"
				[source]
					x="28"
					y="9"
				[/source]
				[destination]
					x="29"
					y="9"
				[/destination]
			[/attack]
			[random]
				value="12754"
				[results]
					chance="40"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="23681"
				[results]
					chance="40"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="16303"
				[results]
					chance="40"
					damage="13"
					dies="yes"
					hits="yes"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="roku has logged into the lobby"
			[/speak]
		[/command]
		[command]
			[move]
				x="10,11,12,13,14,15,16,17,17"
				y="8,8,7,7,7,7,6,7,8"
			[/move]
		[/command]
		[command]
			[move]
				x="10,11,11,11,10,9"
				y="9,9,8,7,6,7"
			[/move]
		[/command]
		[command]
			[attack]
				defender_weapon="-1"
				weapon="1"
				[source]
					x="9"
					y="7"
				[/source]
				[destination]
					x="9"
					y="8"
				[/destination]
			[/attack]
			[random]
				value="25809"
				[results]
					chance="30"
					damage="6"
					dies="no"
					hits="yes"
				[/results]
			[/random]
			[random]
				value="709"
				[results]
					chance="30"
					damage="6"
					dies="no"
					hits="yes"
				[/results]
			[/random]
		[/command]
		[command]
			[move]
				x="12,11,10"
				y="8,9,8"
			[/move]
		[/command]
		[command]
			[attack]
				defender_weapon="0"
				weapon="0"
				[source]
					x="10"
					y="8"
				[/source]
				[destination]
					x="9"
					y="8"
				[/destination]
			[/attack]
			[random]
				value="22856"
				[results]
					chance="30"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="25431"
				[results]
					chance="40"
					damage="4"
					dies="no"
					hits="yes"
				[/results]
			[/random]
			[random]
				value="9475"
				[results]
					chance="30"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="4749"
				[results]
					chance="40"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="10586"
				[results]
					chance="30"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="31009"
				[results]
					chance="40"
					damage="4"
					dies="no"
					hits="yes"
				[/results]
			[/random]
		[/command]
		[command]
			[move]
				x="13,12,11,10"
				y="8,7,7,7"
			[/move]
		[/command]
		[command]
			[attack]
				defender_weapon="-1"
				weapon="1"
				[source]
					x="10"
					y="7"
				[/source]
				[destination]
					x="9"
					y="8"
				[/destination]
			[/attack]
			[random]
				value="23352"
				[results]
					chance="30"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="7789"
				[results]
					chance="30"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="11369"
				[results]
					chance="30"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="9304"
				[results]
					chance="30"
					damage="5"
					dies="yes"
					hits="yes"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Kamiljoner has logged into the lobby"
			[/speak]
		[/command]
		[command]
			[attack]
				defender_weapon="0"
				weapon="0"
				[source]
					x="9"
					y="9"
				[/source]
				[destination]
					x="9"
					y="10"
				[/destination]
			[/attack]
			[random]
				value="24404"
				[results]
					chance="60"
					damage="5"
					dies="no"
					hits="yes"
				[/results]
			[/random]
			[random]
				value="11261"
				[results]
					chance="30"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="27286"
				[results]
					chance="60"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="20793"
				[results]
					chance="30"
					damage="0"
					dies="no"
					hits="no"
				[/results]
			[/random]
			[random]
				value="27910"
				[results]
					chance="60"
					damage="5"
					dies="no"
					hits="yes"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="BURN has logged into the lobby"
			[/speak]
		[/command]
		[command]
			[countdown_update]
				team="1"
				value="270000"
			[/countdown_update]
		[/command]
		[command]
			[end_turn]
			[/end_turn]
		[/command]
		[command]
			undo="no"
			[speak]
				id="Orange_Dude"
				message="well i definately didnt take that risk on purpose :)"
				side="1"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[attack]
				defender_weapon="1"
				weapon="1"
				[source]
					x="26"
					y="10"
				[/source]
				[destination]
					x="27"
					y="11"
				[/destination]
			[/attack]
			[random]
				value="17257"
				[results]
					chance="70"
					damage="2"
					dies="no"
					hits="yes"
				[/results]
			[/random]
			[random]
				value="11802"
				[results]
					chance="40"
					damage="5"
					dies="no"
					hits="yes"
				[/results]
			[/random]
			[random]
				value="22955"
				[results]
					chance="70"
					damage="2"
					dies="no"
					hits="yes"
				[/results]
			[/random]
			[random]
				value="2332"
				[results]
					chance="70"
					damage="2"
					dies="no"
					hits="yes"
				[/results]
			[/random]
			[random]
				value="24055"
				[results]
					chance="70"
					damage="2"
					dies="no"
					hits="yes"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="laure has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Viritueel has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="Trout has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[speak]
				id="server"
				message="-PoGoPuSch3L- has logged into the lobby"
			[/speak]
		[/command]
		[command]
			sent="yes"
			[move]
				x="30,30,30,30,30,30,31"
				y="15,14,13,12,11,10,10"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="24,25,26,27,28,29,30,30"
				y="19,19,18,18,17,17,16,15"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="11,10,9"
				y="11,11,12"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="9,10,11"
				y="10,10,11"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="15,14,14,13,13,12"
				y="14,13,12,12,11,10"
			[/move]
		[/command]
		[command]
			sent="yes"
			[move]
				x="16,17,18,19"
				y="9,10,9,9"
			[/move]
		[/command]
		[command]
			sent="yes"
			[recruit]
				value="7"
				x="24"
				y="19"
			[/recruit]
			[random]
				value="24664"
			[/random]
			[random]
				value="16174"
			[/random]
			[random]
				value="12955"
			[/random]
			[random]
				value="19384"
			[/random]
			[random]
				value="31911"
			[/random]
			[random]
				value="12725"
			[/random]
			[random]
				value="17644"
			[/random]
			[random]
				value="5712"
			[/random]
			[random]
				value="23165"
			[/random]
			[random]
				value="6298"
			[/random]
			[random]
				value="25413"
			[/random]
			[random]
				value="17774"
			[/random]
			[random]
				value="9449"
			[/random]
			[random]
				value="20292"
			[/random]
			[random]
				value="9666"
				[results]
					checksum="86Wmq3.,tb9Th9Xh+8Om3eb898egWbi26k39>2dlaZge0f-9iPif8c7h8k-+v7e7e8fh18<i8Sem73jI-oaGeRO,h>ybO20xxhh6<5,n30KE4<Yfd6-cbePq5.ql>pFA"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[recruit]
				value="4"
				x="23"
				y="20"
			[/recruit]
			[random]
				value="9618"
			[/random]
			[random]
				value="28042"
			[/random]
			[random]
				value="16520"
			[/random]
			[random]
				value="7563"
			[/random]
			[random]
				value="16505"
			[/random]
			[random]
				value="13824"
			[/random]
			[random]
				value="21995"
			[/random]
			[random]
				value="25179"
			[/random]
			[random]
				value="28520"
			[/random]
			[random]
				value="3161"
			[/random]
			[random]
				value="6058"
			[/random]
			[random]
				value="1016"
			[/random]
			[random]
				value="13888"
			[/random]
			[random]
				value="5125"
			[/random]
			[random]
				value="20043"
				[results]
					checksum="FIxBwyUzhyBkwVHKQOq5AMPytSNtRJzMRsDuHBtnQvBFyQAVsL8qJTmQQNRqrWuTuTxCUFJDPxfDLuyOdqNHp2JuaZMrXGikJwc0bkdib+c.P93obZj,mcok3b,IXl32"
				[/results]
			[/random]
		[/command]
		[command]
			sent="yes"
			[countdown_update]
				team="2"
				value="270000"
			[/countdown_update]
		[/command]
		[command]
			sent="yes"
			[end_turn]
			[/end_turn]
		[/command]
		[command]
			[end_turn]
			[/end_turn]
		[/command]
	[/replay]
	[statistics]
		mid_scenario="yes"
		[scenario]
			scenario="2p - Caves of the Basilisk"
			[team]
				damage_inflicted="57"
				damage_taken="123"
				expected_damage_inflicted="90102"
				expected_damage_taken="115426"
				recall_cost="0"
				recruit_cost="190"
				turn_damage_inflicted="8"
				turn_damage_taken="5"
				turn_expected_damage_inflicted="5600"
				turn_expected_damage_taken="2000"
				[recruits]
					Footpad="6"
					Poacher="2"
					Thief="6"
				[/recruits]
				[recalls]
				[/recalls]
				[advances]
				[/advances]
				[deaths]
					Footpad="1"
					Thief="3"
				[/deaths]
				[killed]
				[/killed]
				[attacks]
					[sequence]
						_num="30"
						s000="1"
						s0000="1"
					[/sequence]
					[sequence]
						_num="60"
						s001="1"
						s010="1"
					[/sequence]
					[sequence]
						_num="70"
						s1111="1"
					[/sequence]
				[/attacks]
				[defends]
					[sequence]
						_num="0"
						s="7"
					[/sequence]
					[sequence]
						_num="30"
						s00="1"
					[/sequence]
					[sequence]
						_num="40"
						s0="1"
						s101="1"
						s11="1"
					[/sequence]
					[sequence]
						_num="60"
						s00="1"
					[/sequence]
					[sequence]
						_num="70"
						s001="1"
						s01="1"
					[/sequence]
				[/defends]
			[/team]
			[team]
				damage_inflicted="123"
				damage_taken="57"
				expected_damage_inflicted="115426"
				expected_damage_taken="90102"
				recall_cost="0"
				recruit_cost="148"
				turn_damage_inflicted="0"
				turn_damage_taken="0"
				turn_expected_damage_inflicted="0"
				turn_expected_damage_taken="0"
				[recruits]
					Dwarvish Guardsman="2"
					Footpad="3"
					Poacher="3"
					Thief="2"
				[/recruits]
				[recalls]
				[/recalls]
				[advances]
				[/advances]
				[deaths]
				[/deaths]
				[killed]
					Footpad="1"
					Thief="3"
				[/killed]
				[attacks]
					[sequence]
						_num="30"
						s00="1"
						s000="1"
						s0001="1"
						s11="1"
					[/sequence]
					[sequence]
						_num="40"
						s00="1"
						s0001="1"
						s001="2"
						s01="2"
						s0100="1"
						s1="1"
						s1101="1"
					[/sequence]
					[sequence]
						_num="60"
						s101="1"
					[/sequence]
				[/attacks]
				[defends]
					[sequence]
						_num="0"
						s="1"
					[/sequence]
					[sequence]
						_num="30"
						s100="1"
					[/sequence]
					[sequence]
						_num="40"
						s1="1"
						s1000="1"
						s1001="1"
					[/sequence]
				[/defends]
			[/team]
			[team]
				damage_inflicted="0"
				damage_taken="0"
				expected_damage_inflicted="0"
				expected_damage_taken="0"
				recall_cost="0"
				recruit_cost="0"
				turn_damage_inflicted="0"
				turn_damage_taken="0"
				turn_expected_damage_inflicted="0"
				turn_expected_damage_taken="0"
				[recruits]
				[/recruits]
				[recalls]
				[/recalls]
				[advances]
				[/advances]
				[deaths]
				[/deaths]
				[killed]
				[/killed]
				[attacks]
				[/attacks]
				[defends]
				[/defends]
			[/team]
		[/scenario]
	[/statistics]
	[era]
		id="era_default"
#textdomain wesnoth-multiplayer
		name=_ "Default"
		[multiplayer_side]
			flag_rgb="magenta"
			id="Random"
			image="units/random-dice.png"
			name=_ "Random"
			random_faction="yes"
		[/multiplayer_side]
		[multiplayer_side]
			flag_rgb="magenta"
			id="Loyalists"
			image="units/human-loyalists/lieutenant.png"
			leader="Lieutenant,Swordsman,Pikeman,Javelineer,Shock Trooper,Longbowman,White Mage,Red Mage"
			name=_ "Loyalists"
			random_leader="Lieutenant,Swordsman,Pikeman,Javelineer,Longbowman,Red Mage"
			recruit="Cavalryman,Horseman,Spearman,Fencer,Heavy Infantryman,Bowman,Mage,Merman Fighter"
			terrain_liked="Gg, Ww, Wo"
			type="Lieutenant"
			[ai]
				recruitment_pattern="fighter,fighter,fighter,archer,mixed fighter,scout"
				[team_formula]
					rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
				[/team_formula]
			[/ai]
		[/multiplayer_side]
		[multiplayer_side]
			flag_rgb="magenta"
			id="Rebels"
			image="units/elves-wood/captain.png"
			leader="Elvish Captain,Elvish Hero,Elvish Ranger,Elvish Marksman,Elvish Druid,Elvish Sorceress,White Mage,Red Mage,Elder Wose"
			name=_ "Rebels"
			random_leader="Elvish Captain,Elvish Hero,Elvish Ranger,Elvish Marksman,Elvish Druid,Elvish Sorceress,Red Mage"
			recruit="Elvish Fighter,Elvish Archer,Mage,Elvish Shaman,Elvish Scout,Wose,Merman Hunter"
			terrain_liked="Ff, Fa, Ss, Ww"
			type="Elvish Captain"
			[ai]
				recruitment_pattern="fighter,fighter,archer,archer,mixed fighter,healer,scout"
				[team_formula]
					rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
				[/team_formula]
			[/ai]
		[/multiplayer_side]
		[multiplayer_side]
			flag_rgb="magenta"
			id="Northerners"
			image="units/orcs/warrior.png"
			leader="Orcish Warrior,Troll,Troll Rocklobber,Orcish Crossbowman,Orcish Slayer"
			name=_ "Northerners"
			recruit="Orcish Grunt,Troll Whelp,Wolf Rider,Orcish Archer,Orcish Assassin,Naga Fighter,Goblin Spearman"
			terrain_liked="Hh, Ha, Mm, Ss"
			type="Orcish Warrior"
			[ai]
				recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
				[team_formula]
					rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
				[/team_formula]
			[/ai]
		[/multiplayer_side]
		[multiplayer_side]
			flag_rgb="magenta"
			id="Undead"
			image="units/undead-necromancers/dark-sorcerer.png"
			leader="Dark Sorcerer,Revenant,Deathblade,Bone Shooter,Necrophage"
			name=_ "Undead"
			random_leader="Dark Sorcerer,Revenant,Deathblade,Bone Shooter"
			recruit="Skeleton,Skeleton Archer,Walking Corpse,Ghost,Vampire Bat,Dark Adept,Ghoul"
			terrain_liked="Ss, Hh, Ha, Ww"
			type="Dark Sorcerer"
			[ai]
				recruitment_pattern="fighter,fighter,archer,fighter,scout,archer"
				[team_formula]
					rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
				[/team_formula]
			[/ai]
		[/multiplayer_side]
		[multiplayer_side]
			flag_rgb="magenta"
			id="Knalgan Alliance"
			image="units/dwarves/steelclad.png"
			leader="Dwarvish Steelclad,Dwarvish Thunderguard,Dwarvish Stalwart,Rogue,Trapper"
			name=_ "Knalgan Alliance"
			random_leader="Dwarvish Steelclad,Dwarvish Thunderguard,Rogue,Trapper"
			recruit="Dwarvish Guardsman,Dwarvish Fighter,Dwarvish Ulfserker,Dwarvish Thunderer,Thief,Poacher,Footpad,Gryphon Rider"
			terrain_liked="Hh, Ha, Mm"
			type="Dwarvish Steelclad"
			[ai]
				recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
				[team_formula]
					rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
				[/team_formula]
			[/ai]
		[/multiplayer_side]
		[multiplayer_side]
			flag_rgb="magenta"
			id="Drakes"
			image="units/drakes/flare.png"
			leader="Drake Flare,Fire Drake,Drake Slasher,Drake Gladiator,Drake Warrior,Saurian Oracle,Saurian Soothsayer"
			name=_ "Drakes"
			random_leader="Drake Flare,Fire Drake,Drake Slasher,Drake Gladiator,Drake Warrior"
			recruit="Drake Burner,Drake Clasher,Drake Glider,Drake Fighter,Saurian Skirmisher,Saurian Augur"
			terrain_liked="Hh, Ha, Ds, Ss"
			type="Drake Flare"
			[ai]
				recruitment_pattern="fighter,fighter,archer,healer,scout,scout"
				[team_formula]
					rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
				[/team_formula]
			[/ai]
		[/multiplayer_side]
		[event]
			name="prestart"
			[store_unit]
				kill="yes"
				variable="leaders_to_make_quick"
				[filter]
					canrecruit="yes"
					[filter_wml]
						max_moves="4"
					[/filter_wml]
				[/filter]
			[/store_unit]
			[set_variable]
				name="i"
				value="0"
			[/set_variable]
			[while]
				[variable]
					less_than="$leaders_to_make_quick.length"
					name="i"
				[/variable]
				[do]
					[set_variables]
						mode="merge"
						name="leaders_to_make_quick[$i].modifications"
						[literal]
							[trait]
#textdomain wesnoth
								female_name=_ "female^quick"
								id="quick"
								male_name=_ "quick"
								[effect]
									apply_to="movement"
									increase="1"
								[/effect]
								[effect]
									apply_to="hitpoints"
									increase_total="-5%"
								[/effect]
							[/trait]
						[/literal]
					[/set_variables]
					[clear_variable]
						name="leaders_to_make_quick[$i].max_moves,leaders_to_make_quick[$i].moves,leaders_to_make_quick[$i].max_hitpoints,leaders_to_make_quick[$i].hitpoints"
					[/clear_variable]
					[unstore_unit]
						variable="leaders_to_make_quick[$i]"
					[/unstore_unit]
					[set_variable]
						add="1"
						name="i"
					[/set_variable]
				[/do]
			[/while]
			[clear_variable]
				name="i"
			[/clear_variable]
			[clear_variable]
				name="leaders_to_make_quick"
			[/clear_variable]
		[/event]
	[/era]
	[side]
		action_bonus_count="0"
		aggression="0.5"
		allow_changes="no"
		allow_player="yes"
		caution="0.25"
		colour="7"
		controller="human"
		countdown_time="270000"
		current_player="Orange_Dude_______"
		disallow_observers="no"
		fog="yes"
		global_recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
		gold="24"
		hidden="no"
		id="Orange_Dude_______1"
		income="0"
		leader_value="3"
		name="Orange_Dude_______"
		no_leader="yes"
		number_of_possible_recruits_to_force_recruit="3.1"
		objectives=_ "Victory:
@Defeat enemy leader(s)"
		objectives_changed="no"
		recruit="Dwarvish Fighter,Dwarvish Guardsman,Dwarvish Thunderer,Dwarvish Ulfserker,Footpad,Gryphon Rider,Poacher,Thief"
		recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
		save_id="Orange_Dude1"
		share_maps="no"
		share_view="yes"
		shroud="no"
		side="1"
		start_gold="100"
		team_name="north"
#textdomain wesnoth-multiplayer
		user_team_name=_ "teamname^North"
		village_gold="2"
		village_value="1"
		villages_per_scout="8"
		[ai]
			recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
			villages_per_scout="8"
			[team_formula]
				rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
			[/team_formula]
		[/ai]
		[ai]
			villages_per_scout="8"
		[/ai]
		[village]
			x="12"
			y="4"
		[/village]
		[village]
			x="17"
			y="3"
		[/village]
		[village]
			x="17"
			y="8"
		[/village]
		[village]
			x="22"
			y="9"
		[/village]
		[unit]
			advances_to="Huntsman,Ranger"
			alignment="chaotic"
			allow_changes="yes"
			allow_player="yes"
			alpha="256"
			attacks_left="1"
			canrecruit="yes"
			colour="7"
			controller="human"
			cost="27"
			current_player="Orange_Dude"
			die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
			experience="3"
			facing="n"
			flag_rgb="magenta"
			flying="no"
			fog="yes"
			gender="male"
			gold="100"
			goto_x="-999"
			goto_y="-999"
			hitpoints="25"
			id="Orange_Dude1"
			image="units/human-outlaws/trapper.png"
			income="0"
#textdomain wesnoth-units
			language_name=_ "Trapper"
			leader="Dwarvish Steelclad,Dwarvish Thunderguard,Dwarvish Stalwart,Rogue,Trapper"
			level="2"
			max_attacks="1"
			max_experience="46"
			max_hitpoints="45"
			max_moves="5"
			movement="5"
			movement_type="smallfoot"
			moves="5"
			mp_countdown="yes"
			mp_countdown_action_bonus="20"
			mp_countdown_init_time="270"
			mp_countdown_reservoir_time="270"
			mp_countdown_turn_bonus="200"
			name="Orange_Dude"
			profile="portraits/humans/trapper.png"
			race="human"
			random_leader="Dwarvish Steelclad,Dwarvish Thunderguard,Rogue,Trapper"
			random_traits="no"
			recruit="Dwarvish Guardsman,Dwarvish Fighter,Dwarvish Ulfserker,Dwarvish Thunderer,Thief,Poacher,Footpad,Gryphon Rider"
			resting="yes"
			save_id="Orange_Dude1"
			share_maps="no"
			share_view="yes"
			shroud="no"
			side="1"
			team_name="north"
			terrain_liked="Hh, Ha, Mm"
			type="Trapper"
			undead_variation="archer"
			underlying_id="1"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			user_team_name="wesnoth-multiplayerteamname^North"
			village_gold="2"
			x="24"
			y="6"
			zoc="yes"
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="80"
				fungus="50"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="50"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="3"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[portrait]
				image="portraits/humans/transparent/trapper.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/humans/transparent/trapper.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="4"
				description=_ "dagger"
				icon="attacks/dagger-human.png"
				name="dagger"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="6"
				description=_ "bow"
				name="bow"
				number="4"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Outlaw"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
			ellipse="misc/ellipse"
			experience="2"
			facing="sw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="36"
			id="Footpad-16"
			image="units/human-outlaws/footpad.png"
			language_name=_ "Footpad"
			level="1"
			max_attacks="1"
			max_experience="25"
			max_hitpoints="36"
			max_moves="7"
			movement="7"
			movement_type="elusivefoot"
			moves="7"
			name="Owor"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Footpad"
			underlying_id="16"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			x="30"
			y="8"
			zoc="yes"
			[attack_anim]
				offset="0.0"
				[filter_attack]
					name="sling"
				[/filter_attack]
				[if]
					hits="yes"
					[sling_stone_frame]
						begin="-201"
						end="-200"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="-200"
						end="0"
						halo="projectiles/stone.png"
						halo_x="5~0"
						halo_y="-6~0"
						offset="0.0~1.0"
						y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="0"
						end="1"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[frame]
						begin="-400"
						end="-150"
						image="units/human-outlaws/footpad-attack1.png"
						sound="sling.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[sling_stone_frame]
						begin="-201"
						end="-200"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="-200"
						end="100"
						halo="projectiles/stone.png"
						halo_x="5~0"
						halo_y="-6~0"
						offset="0.0~1.5"
						y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="100"
						end="101"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[frame]
						begin="-400"
						end="-150"
						image="units/human-outlaws/footpad-attack1.png"
						sound="sling-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-150"
					end="50"
					image="units/human-outlaws/footpad-attack2.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="club"
				[/filter_attack]
				[frame]
					begin="-250"
					end="-200"
					image="units/human-outlaws/footpad.png"
				[/frame]
				[frame]
					begin="-200"
					end="-100"
					image="units/human-outlaws/footpad-melee-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/human-outlaws/footpad-melee-2.png"
						sound="staff.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/human-outlaws/footpad-melee-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="200"
					image="units/human-outlaws/footpad-melee-3.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/human-outlaws/footpad-melee-4.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/human-outlaws/footpad.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/human-outlaws/footpad-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/human-outlaws/footpad-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/human-outlaws/footpad.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="200"
					image="units/human-outlaws/footpad-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="200"
					image="units/human-outlaws/footpad-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-1.png"
				[/frame]
			[/idle_anim]
			[defense]
				castle="30"
				cave="50"
				deep_water="70"
				flat="40"
				forest="30"
				frozen="60"
				fungus="30"
				hills="30"
				impassable="50"
				mountains="30"
				reef="50"
				sand="60"
				shallow_water="60"
				swamp_water="60"
				unwalkable="80"
				village="30"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="2"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="130"
				cold="100"
				fire="100"
				impact="120"
				pierce="120"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "club"
				icon="attacks/club-small.png"
				name="club"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="5"
				description=_ "sling"
				name="sling"
				number="2"
				range="ranged"
				type="impact"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Outlaw"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
			ellipse="misc/ellipse"
			experience="2"
			facing="s"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="36"
			id="Footpad-17"
			image="units/human-outlaws/footpad.png"
#textdomain wesnoth-units
			language_name=_ "Footpad"
			level="1"
			max_attacks="1"
			max_experience="25"
			max_hitpoints="36"
			max_moves="7"
			movement="7"
			movement_type="elusivefoot"
			moves="7"
			name="Rhyn"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Footpad"
			underlying_id="17"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			x="9"
			y="7"
			zoc="yes"
			[attack_anim]
				offset="0.0"
				[filter_attack]
					name="sling"
				[/filter_attack]
				[if]
					hits="yes"
					[sling_stone_frame]
						begin="-201"
						end="-200"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="-200"
						end="0"
						halo="projectiles/stone.png"
						halo_x="5~0"
						halo_y="-6~0"
						offset="0.0~1.0"
						y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="0"
						end="1"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[frame]
						begin="-400"
						end="-150"
						image="units/human-outlaws/footpad-attack1.png"
						sound="sling.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[sling_stone_frame]
						begin="-201"
						end="-200"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="-200"
						end="100"
						halo="projectiles/stone.png"
						halo_x="5~0"
						halo_y="-6~0"
						offset="0.0~1.5"
						y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="100"
						end="101"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[frame]
						begin="-400"
						end="-150"
						image="units/human-outlaws/footpad-attack1.png"
						sound="sling-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-150"
					end="50"
					image="units/human-outlaws/footpad-attack2.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="club"
				[/filter_attack]
				[frame]
					begin="-250"
					end="-200"
					image="units/human-outlaws/footpad.png"
				[/frame]
				[frame]
					begin="-200"
					end="-100"
					image="units/human-outlaws/footpad-melee-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/human-outlaws/footpad-melee-2.png"
						sound="staff.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/human-outlaws/footpad-melee-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="200"
					image="units/human-outlaws/footpad-melee-3.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/human-outlaws/footpad-melee-4.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/human-outlaws/footpad.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/human-outlaws/footpad-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/human-outlaws/footpad-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/human-outlaws/footpad.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="200"
					image="units/human-outlaws/footpad-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="200"
					image="units/human-outlaws/footpad-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-1.png"
				[/frame]
			[/idle_anim]
			[defense]
				castle="30"
				cave="50"
				deep_water="70"
				flat="40"
				forest="30"
				frozen="60"
				fungus="30"
				hills="30"
				impassable="50"
				mountains="30"
				reef="50"
				sand="60"
				shallow_water="60"
				swamp_water="60"
				unwalkable="80"
				village="30"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="2"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="130"
				cold="100"
				fire="100"
				impact="120"
				pierce="120"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "club"
				icon="attacks/club-small.png"
				name="club"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="5"
				description=_ "sling"
				name="sling"
				number="2"
				range="ranged"
				type="impact"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Rogue"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="13"
			die_sound="human-female-die-1.ogg,human-female-die-2.ogg,human-female-die-3.ogg"
			ellipse="misc/ellipse"
			experience="3"
			facing="s"
			flag_rgb="magenta"
			flying="no"
			gender="female"
			goto_x="-999"
			goto_y="-999"
			hitpoints="24"
			id="Thief-18"
			image="units/human-outlaws/thief+female.png"
#textdomain wesnoth-units
			language_name=_ "female^Thief"
			level="1"
			max_attacks="1"
			max_experience="20"
			max_hitpoints="24"
			max_moves="7"
			movement="6"
			movement_type="elusivefoot"
			moves="7"
			name="Gwonna"
			profile="portraits/humans/thief+female.png"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Thief"
			underlying_id="18"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="9"
			y="9"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="dagger"
				[/filter_attack]
				[frame]
					begin="-150"
					end="-100"
					image="units/human-outlaws/thief+female.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/human-outlaws/thief+female-attack.png"
						sound="dagger-swish.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/human-outlaws/thief+female-attack.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="150"
					image="units/human-outlaws/thief+female.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-die-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-die-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-die-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-die-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-die-5.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-die-6.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-die-7.png"
				[/frame]
			[/death]
			[defend]
				hits="miss"
				[frame]
					begin="-126"
					end="-125"
					image="units/human-outlaws/thief+female.png"
				[/frame]
				[frame]
					begin="-125"
					end="-42"
					image="units/human-outlaws/thief+female-defend-1-1.png"
				[/frame]
				[frame]
					begin="-42"
					end="41"
					image="units/human-outlaws/thief+female-defend-1-2.png"
				[/frame]
				[frame]
					begin="41"
					end="125"
					image="units/human-outlaws/thief+female-defend-1-1.png"
				[/frame]
				[frame]
					begin="125"
					end="126"
					image="units/human-outlaws/thief+female.png"
				[/frame]
			[/defend]
			[defend]
				hits="miss"
				[frame]
					begin="-126"
					end="-125"
					image="units/human-outlaws/thief+female.png"
				[/frame]
				[frame]
					begin="-125"
					end="-42"
					image="units/human-outlaws/thief+female-defend-2-1.png"
				[/frame]
				[frame]
					begin="-42"
					end="41"
					image="units/human-outlaws/thief+female-defend-2-2.png"
				[/frame]
				[frame]
					begin="41"
					end="125"
					image="units/human-outlaws/thief+female-defend-2-1.png"
				[/frame]
				[frame]
					begin="125"
					end="126"
					image="units/human-outlaws/thief+female.png"
				[/frame]
			[/defend]
			[defend]
				hits="miss"
				[frame]
					begin="-126"
					end="-125"
					image="units/human-outlaws/thief+female.png"
				[/frame]
				[frame]
					begin="-125"
					end="-42"
					image="units/human-outlaws/thief+female-defend-3-1.png"
				[/frame]
				[frame]
					begin="-42"
					end="41"
					image="units/human-outlaws/thief+female-defend-3-2.png"
				[/frame]
				[frame]
					begin="41"
					end="125"
					image="units/human-outlaws/thief+female-defend-3-1.png"
				[/frame]
				[frame]
					begin="125"
					end="126"
					image="units/human-outlaws/thief+female.png"
				[/frame]
			[/defend]
			[defend]
				hits="kill"
				[frame]
					begin="-126"
					end="-125"
					image="units/human-outlaws/thief+female.png"
				[/frame]
				[frame]
					begin="-125"
					end="125"
					image="units/human-outlaws/thief+female-defend.png"
				[/frame]
				[frame]
					begin="125"
					end="126"
					image="units/human-outlaws/thief+female.png"
				[/frame]
			[/defend]
			[defend]
				hits="hit"
				[frame]
					begin="-126"
					end="-125"
					image="units/human-outlaws/thief+female.png"
				[/frame]
				[frame]
					begin="-125"
					end="125"
					image="units/human-outlaws/thief+female-defend.png"
					sound="human-female-hit-1.ogg,human-female-hit-2.ogg,human-female-hit-3.ogg"
				[/frame]
				[frame]
					begin="125"
					end="126"
					image="units/human-outlaws/thief+female.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-4.png"
				[/frame]
				[frame]
					duration="200"
					image="units/human-outlaws/thief+female-idle-5.png"
				[/frame]
				[frame]
					duration="150"
					image="units/human-outlaws/thief+female-idle-6.png"
				[/frame]
				[frame]
					duration="500"
					image="units/human-outlaws/thief+female-idle-7.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-8.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-9.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-10.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-11.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-12.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-11.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-10.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-9.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-8.png"
				[/frame]
				[frame]
					duration="300"
					image="units/human-outlaws/thief+female-idle-7.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-8.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-9.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-10.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-11.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-12.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-11.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-10.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-9.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-8.png"
				[/frame]
				[frame]
					duration="500"
					image="units/human-outlaws/thief+female-idle-7.png"
				[/frame]
				[frame]
					duration="150"
					image="units/human-outlaws/thief+female-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/human-outlaws/thief+female-idle-5.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-1.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/humans/transparent/thief+female.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/humans/transparent/thief+female.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="30"
				cave="50"
				deep_water="70"
				flat="40"
				forest="30"
				frozen="60"
				fungus="30"
				hills="30"
				impassable="50"
				mountains="30"
				reef="50"
				sand="60"
				shallow_water="60"
				swamp_water="60"
				unwalkable="80"
				village="30"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="2"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="130"
				cold="100"
				fire="100"
				impact="120"
				pierce="120"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="5"
				description=_ "dagger"
				icon="attacks/dagger-human.png"
				name="dagger"
				number="3"
				range="melee"
				type="blade"
				[specials]
					[damage]
						active_on="offense"
						backstab="yes"
#textdomain wesnoth
						description=_ "Backstab:
When used offensively, this attack deals double damage if there is an enemy of the target on the opposite side of the target, and that unit is not incapacitated (turned to stone or otherwise paralyzed)."
						id="backstab"
						multiply="2"
						name=_ "backstab"
					[/damage]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "female^strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "female^quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Trapper"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
			ellipse="misc/ellipse"
			experience="9"
			facing="nw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="19"
			id="Poacher-19"
			image="units/human-outlaws/poacher.png"
#textdomain wesnoth-units
			language_name=_ "Poacher"
			level="1"
			max_attacks="1"
			max_experience="20"
			max_hitpoints="31"
			max_moves="6"
			movement="5"
			movement_type="smallfoot"
			moves="6"
			name="Dac"
			profile="portraits/humans/trapper.png"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Poacher"
			undead_variation="archer"
			underlying_id="19"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			x="28"
			y="10"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[if]
					hits="yes"
					[frame]
						begin="-400"
						end="-250"
						image="units/human-outlaws/poacher-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-400"
						end="-250"
						image="units/human-outlaws/poacher-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-250"
					end="-100"
					image="units/human-outlaws/poacher-attack2.png"
				[/frame]
				[frame]
					begin="-100"
					end="0"
					image="units/human-outlaws/poacher-attack3.png"
				[/frame]
				[frame]
					begin="0"
					end="100"
					image="units/human-outlaws/poacher.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="dagger"
				[/filter_attack]
				[frame]
					begin="-250"
					end="-150"
					image="units/human-outlaws/poacher-dagger.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-150"
						end="50"
						image="units/human-outlaws/poacher-attack.png"
						sound="dagger-swish.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-150"
						end="50"
						image="units/human-outlaws/poacher-attack.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="50"
					end="150"
					image="units/human-outlaws/poacher-dagger.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/human-outlaws/poacher-dagger.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/poacher-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/human-outlaws/poacher-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/human-outlaws/poacher-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/human-outlaws/poacher-dagger.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/human-outlaws/poacher.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/poacher-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/human-outlaws/poacher-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/human-outlaws/poacher-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/human-outlaws/poacher.png"
				[/frame]
			[/defend]
			[portrait]
				image="portraits/humans/transparent/trapper.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/humans/transparent/trapper.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="80"
				fungus="50"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="50"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="3"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="4"
				description=_ "dagger"
				icon="attacks/dagger-human.png"
				name="dagger"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="4"
				description=_ "bow"
				name="bow"
				number="4"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Dwarvish Stalwart"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="19"
			die_sound="dwarf-die-1.ogg,dwarf-die-2.ogg"
			ellipse="misc/ellipse"
			experience="10"
			facing="nw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="26"
			id="Dwarvish Guardsman-20"
			image="units/dwarves/guard.png"
#textdomain wesnoth-units
			language_name=_ "Dwarvish Guardsman"
			level="1"
			max_attacks="1"
			max_experience="27"
			max_hitpoints="43"
			max_moves="4"
			movement="4"
			movement_type="dwarvishfoot"
			moves="4"
			name="Peldurus"
			profile="portraits/dwarves/guard.png"
			race="dwarf"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Dwarvish Guardsman"
			undead_variation="dwarf"
			underlying_id="20"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="27"
			y="11"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="javelin"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/spear-n.png"
					image_diagonal="projectiles/spear-ne.png"
				[/missile_frame]
				[frame]
					begin="-250"
					end="-150"
					image="units/dwarves/guard-defend-1.png"
					sound="throw-1.wav,throw-2.wav,throw-3.wav,throw-4.wav"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-150"
						end="-50"
						image="units/dwarves/guard-attack.png"
						sound="spear.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-150"
						end="-50"
						image="units/dwarves/guard-attack.png"
					[/frame]
				[/else]
				[frame]
					begin="-50"
					end="0"
					image="units/dwarves/guard.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="spear"
				[/filter_attack]
				[frame]
					begin="-200"
					end="-150"
					image="units/dwarves/guard.png"
				[/frame]
				[frame]
					begin="-150"
					end="-100"
					image="units/dwarves/guard-defend-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/dwarves/guard-attack.png"
						sound="spear.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/dwarves/guard-attack.png"
						sound="spear-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="50"
					end="75"
					image="units/dwarves/guard-defend-2.png"
				[/frame]
				[frame]
					begin="75"
					end="150"
					image="units/dwarves/guard.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/dwarves/guard-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/dwarves/guard-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/dwarves/guard-defend-2.png"
						sound="dwarf-hit-1.ogg,dwarf-hit-2.ogg,dwarf-hit-3.ogg,dwarf-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/dwarves/guard-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/dwarves/guard-defend-1.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/dwarves/guard-idle-1.png"
				[/frame]
				[frame]
					duration="500"
					image="units/dwarves/guard-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/dwarves/guard-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/dwarves/guard-idle-4.png"
				[/frame]
				[frame]
					duration="400"
					image="units/dwarves/guard-idle-5.png"
				[/frame]
				[frame]
					duration="500"
					image="units/dwarves/guard-idle-6.png"
				[/frame]
				[frame]
					duration="100"
					image="units/dwarves/guard-idle-1.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/dwarves/transparent/guard.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/dwarves/transparent/guard.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="50"
				deep_water="80"
				flat="70"
				forest="70"
				frozen="70"
				fungus="60"
				hills="50"
				impassable="50"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="80"
				unwalkable="80"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="1"
				hills="1"
				impassable="99"
				mountains="1"
				reef="2"
				sand="1"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="90"
				blade="80"
				cold="90"
				fire="90"
				impact="80"
				pierce="80"
			[/resistance]
			[abilities]
				[resistance]
					active_on="defense"
					affect_self="yes"
					apply_to="blade,pierce,impact,fire,cold,arcane"
#textdomain wesnoth
					description=_ "Steadfast:
This unit's resistances are doubled, up to a maximum of 50%, when defending. Vulnerabilities are not affected."
					female_name=_ "female^steadfast"
					id="steadfast"
					max_value="50"
					multiply="2"
					name=_ "steadfast"
					[filter_base_value]
						greater_than="0"
						less_than_equal_to="50"
					[/filter_base_value]
				[/resistance]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
#textdomain wesnoth-units
				description=_ "spear"
				icon="attacks/spear.png"
				name="spear"
				number="3"
				range="melee"
				type="pierce"
			[/attack]
			[attack]
				damage="5"
				description=_ "javelin"
				icon="attacks/javelin-human.png"
				name="javelin"
				number="1"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Trapper"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
			ellipse="misc/ellipse"
			experience="1"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="33"
			id="Poacher-29"
			image="units/human-outlaws/poacher.png"
#textdomain wesnoth-units
			language_name=_ "Poacher"
			level="1"
			max_attacks="1"
			max_experience="16"
			max_hitpoints="33"
			max_moves="5"
			movement="5"
			movement_type="smallfoot"
			moves="5"
			name="Gumyr"
			profile="portraits/humans/trapper.png"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Poacher"
			undead_variation="archer"
			underlying_id="29"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			x="26"
			y="9"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[if]
					hits="yes"
					[frame]
						begin="-400"
						end="-250"
						image="units/human-outlaws/poacher-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-400"
						end="-250"
						image="units/human-outlaws/poacher-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-250"
					end="-100"
					image="units/human-outlaws/poacher-attack2.png"
				[/frame]
				[frame]
					begin="-100"
					end="0"
					image="units/human-outlaws/poacher-attack3.png"
				[/frame]
				[frame]
					begin="0"
					end="100"
					image="units/human-outlaws/poacher.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="dagger"
				[/filter_attack]
				[frame]
					begin="-250"
					end="-150"
					image="units/human-outlaws/poacher-dagger.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-150"
						end="50"
						image="units/human-outlaws/poacher-attack.png"
						sound="dagger-swish.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-150"
						end="50"
						image="units/human-outlaws/poacher-attack.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="50"
					end="150"
					image="units/human-outlaws/poacher-dagger.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/human-outlaws/poacher-dagger.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/poacher-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/human-outlaws/poacher-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/human-outlaws/poacher-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/human-outlaws/poacher-dagger.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/human-outlaws/poacher.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/poacher-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/human-outlaws/poacher-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/human-outlaws/poacher-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/human-outlaws/poacher.png"
				[/frame]
			[/defend]
			[portrait]
				image="portraits/humans/transparent/trapper.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/humans/transparent/trapper.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="80"
				fungus="50"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="50"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="3"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="4"
				description=_ "dagger"
				icon="attacks/dagger-human.png"
				name="dagger"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="4"
				description=_ "bow"
				name="bow"
				number="4"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Outlaw"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-female-die-1.ogg,human-female-die-2.ogg,human-female-die-3.ogg"
			ellipse="misc/ellipse"
			experience="0"
			facing="s"
			flag_rgb="magenta"
			flying="no"
			gender="female"
			goto_x="-999"
			goto_y="-999"
			hitpoints="29"
			id="Footpad-30"
			image="units/human-outlaws/footpad+female.png"
#textdomain wesnoth-units
			language_name=_ "female^Footpad"
			level="1"
			max_attacks="1"
			max_experience="20"
			max_hitpoints="29"
			max_moves="8"
			movement="7"
			movement_type="elusivefoot"
			moves="8"
			name="Alwlonna"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Footpad"
			underlying_id="30"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			x="17"
			y="8"
			zoc="yes"
			[attack_anim]
				offset="0.0"
				[filter_attack]
					name="sling"
				[/filter_attack]
				[if]
					hits="yes"
					[sling_stone_frame]
						begin="-201"
						end="-200"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="-200"
						end="0"
						halo="projectiles/stone.png"
						halo_x="5~0"
						halo_y="-6~0"
						offset="0.0~1.0"
						y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="0"
						end="1"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[frame]
						begin="-400"
						end="-150"
						image="units/human-outlaws/footpad+female-attack1.png"
						sound="sling.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[sling_stone_frame]
						begin="-201"
						end="-200"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="-200"
						end="100"
						halo="projectiles/stone.png"
						halo_x="5~0"
						halo_y="-6~0"
						offset="0.0~1.5"
						y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="100"
						end="101"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[frame]
						begin="-400"
						end="-150"
						image="units/human-outlaws/footpad+female-attack1.png"
						sound="sling-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-150"
					end="50"
					image="units/human-outlaws/footpad+female-attack2.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="club"
				[/filter_attack]
				[frame]
					begin="-250"
					end="-200"
					image="units/human-outlaws/footpad+female.png"
				[/frame]
				[frame]
					begin="-200"
					end="-100"
					image="units/human-outlaws/footpad+female-melee-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/human-outlaws/footpad+female-melee-2.png"
						sound="staff.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/human-outlaws/footpad+female-melee-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="200"
					image="units/human-outlaws/footpad+female-melee-3.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/human-outlaws/footpad+female-melee-4.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/human-outlaws/footpad+female.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad+female-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/human-outlaws/footpad+female-defend.png"
						sound="human-female-hit-1.ogg,human-female-hit-2.ogg,human-female-hit-3.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/human-outlaws/footpad+female-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/human-outlaws/footpad+female.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad+female-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad+female-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad+female-idle-3.png"
				[/frame]
				[frame]
					duration="200"
					image="units/human-outlaws/footpad+female-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad+female-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad+female-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad+female-idle-3.png"
				[/frame]
				[frame]
					duration="200"
					image="units/human-outlaws/footpad+female-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad+female-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad+female-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad+female-idle-1.png"
				[/frame]
			[/idle_anim]
			[defense]
				castle="30"
				cave="50"
				deep_water="70"
				flat="40"
				forest="30"
				frozen="60"
				fungus="30"
				hills="30"
				impassable="50"
				mountains="30"
				reef="50"
				sand="60"
				shallow_water="60"
				swamp_water="60"
				unwalkable="80"
				village="30"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="2"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="130"
				cold="100"
				fire="100"
				impact="120"
				pierce="120"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="5"
				description=_ "club"
				icon="attacks/club-small.png"
				name="club"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="5"
				description=_ "sling"
				name="sling"
				number="2"
				range="ranged"
				type="impact"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "female^intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "female^quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Dwarvish Stalwart"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="19"
			die_sound="dwarf-die-1.ogg,dwarf-die-2.ogg"
			ellipse="misc/ellipse"
			experience="1"
			facing="nw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="34"
			id="Dwarvish Guardsman-31"
			image="units/dwarves/guard.png"
#textdomain wesnoth-units
			language_name=_ "Dwarvish Guardsman"
			level="1"
			max_attacks="1"
			max_experience="33"
			max_hitpoints="42"
			max_moves="5"
			movement="4"
			movement_type="dwarvishfoot"
			moves="5"
			name="Augthus"
			profile="portraits/dwarves/guard.png"
			race="dwarf"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Dwarvish Guardsman"
			undead_variation="dwarf"
			underlying_id="31"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="10"
			y="8"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="javelin"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/spear-n.png"
					image_diagonal="projectiles/spear-ne.png"
				[/missile_frame]
				[frame]
					begin="-250"
					end="-150"
					image="units/dwarves/guard-defend-1.png"
					sound="throw-1.wav,throw-2.wav,throw-3.wav,throw-4.wav"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-150"
						end="-50"
						image="units/dwarves/guard-attack.png"
						sound="spear.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-150"
						end="-50"
						image="units/dwarves/guard-attack.png"
					[/frame]
				[/else]
				[frame]
					begin="-50"
					end="0"
					image="units/dwarves/guard.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="spear"
				[/filter_attack]
				[frame]
					begin="-200"
					end="-150"
					image="units/dwarves/guard.png"
				[/frame]
				[frame]
					begin="-150"
					end="-100"
					image="units/dwarves/guard-defend-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="50"
						image="units/dwarves/guard-attack.png"
						sound="spear.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="50"
						image="units/dwarves/guard-attack.png"
						sound="spear-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="50"
					end="75"
					image="units/dwarves/guard-defend-2.png"
				[/frame]
				[frame]
					begin="75"
					end="150"
					image="units/dwarves/guard.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/dwarves/guard-defend-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/dwarves/guard-defend-2.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/dwarves/guard-defend-2.png"
						sound="dwarf-hit-1.ogg,dwarf-hit-2.ogg,dwarf-hit-3.ogg,dwarf-hit-4.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/dwarves/guard-defend-2.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/dwarves/guard-defend-1.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/dwarves/guard-idle-1.png"
				[/frame]
				[frame]
					duration="500"
					image="units/dwarves/guard-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/dwarves/guard-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/dwarves/guard-idle-4.png"
				[/frame]
				[frame]
					duration="400"
					image="units/dwarves/guard-idle-5.png"
				[/frame]
				[frame]
					duration="500"
					image="units/dwarves/guard-idle-6.png"
				[/frame]
				[frame]
					duration="100"
					image="units/dwarves/guard-idle-1.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/dwarves/transparent/guard.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/dwarves/transparent/guard.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="50"
				deep_water="80"
				flat="70"
				forest="70"
				frozen="70"
				fungus="60"
				hills="50"
				impassable="50"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="80"
				unwalkable="80"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="1"
				hills="1"
				impassable="99"
				mountains="1"
				reef="2"
				sand="1"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="90"
				blade="80"
				cold="90"
				fire="90"
				impact="80"
				pierce="80"
			[/resistance]
			[abilities]
				[resistance]
					active_on="defense"
					affect_self="yes"
					apply_to="blade,pierce,impact,fire,cold,arcane"
#textdomain wesnoth
					description=_ "Steadfast:
This unit's resistances are doubled, up to a maximum of 50%, when defending. Vulnerabilities are not affected."
					female_name=_ "female^steadfast"
					id="steadfast"
					max_value="50"
					multiply="2"
					name=_ "steadfast"
					[filter_base_value]
						greater_than="0"
						less_than_equal_to="50"
					[/filter_base_value]
				[/resistance]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="5"
#textdomain wesnoth-units
				description=_ "spear"
				icon="attacks/spear.png"
				name="spear"
				number="3"
				range="melee"
				type="pierce"
			[/attack]
			[attack]
				damage="5"
				description=_ "javelin"
				icon="attacks/javelin-human.png"
				name="javelin"
				number="1"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
				[trait]
					description=_ "Can rest while moving, takes a quarter less poison damage"
					female_name=_ "female^healthy"
					id="healthy"
					male_name=_ "healthy"
					name=_ "healthy"
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Trapper"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
			ellipse="misc/ellipse"
			experience="8"
			facing="sw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="33"
			id="Poacher-33"
			image="units/human-outlaws/poacher.png"
#textdomain wesnoth-units
			language_name=_ "Poacher"
			level="1"
			max_attacks="1"
			max_experience="16"
			max_hitpoints="33"
			max_moves="5"
			movement="5"
			movement_type="smallfoot"
			moves="5"
			name="Rabry"
			profile="portraits/humans/trapper.png"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Poacher"
			undead_variation="archer"
			underlying_id="33"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			x="10"
			y="7"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[if]
					hits="yes"
					[frame]
						begin="-400"
						end="-250"
						image="units/human-outlaws/poacher-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-400"
						end="-250"
						image="units/human-outlaws/poacher-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-250"
					end="-100"
					image="units/human-outlaws/poacher-attack2.png"
				[/frame]
				[frame]
					begin="-100"
					end="0"
					image="units/human-outlaws/poacher-attack3.png"
				[/frame]
				[frame]
					begin="0"
					end="100"
					image="units/human-outlaws/poacher.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="dagger"
				[/filter_attack]
				[frame]
					begin="-250"
					end="-150"
					image="units/human-outlaws/poacher-dagger.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-150"
						end="50"
						image="units/human-outlaws/poacher-attack.png"
						sound="dagger-swish.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-150"
						end="50"
						image="units/human-outlaws/poacher-attack.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="50"
					end="150"
					image="units/human-outlaws/poacher-dagger.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/human-outlaws/poacher-dagger.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/poacher-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/human-outlaws/poacher-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/human-outlaws/poacher-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/human-outlaws/poacher-dagger.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/human-outlaws/poacher.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/poacher-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/human-outlaws/poacher-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/human-outlaws/poacher-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/human-outlaws/poacher.png"
				[/frame]
			[/defend]
			[portrait]
				image="portraits/humans/transparent/trapper.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/humans/transparent/trapper.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="80"
				fungus="50"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="50"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="3"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="4"
				description=_ "dagger"
				icon="attacks/dagger-human.png"
				name="dagger"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="4"
				description=_ "bow"
				name="bow"
				number="4"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Rogue"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="13"
			die_sound="human-female-die-1.ogg,human-female-die-2.ogg,human-female-die-3.ogg"
			ellipse="misc/ellipse"
			experience="8"
			facing="ne"
			flag_rgb="magenta"
			flying="no"
			gender="female"
			goto_x="-999"
			goto_y="-999"
			hitpoints="25"
			id="Thief-34"
			image="units/human-outlaws/thief+female.png"
#textdomain wesnoth-units
			language_name=_ "female^Thief"
			level="1"
			max_attacks="1"
			max_experience="15"
			max_hitpoints="25"
			max_moves="6"
			movement="6"
			movement_type="elusivefoot"
			moves="6"
			name="Alylla"
			profile="portraits/humans/thief+female.png"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="1"
			type="Thief"
			underlying_id="34"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="28"
			y="9"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="dagger"
				[/filter_attack]
				[frame]
					begin="-150"
					end="-100"
					image="units/human-outlaws/thief+female.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/human-outlaws/thief+female-attack.png"
						sound="dagger-swish.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/human-outlaws/thief+female-attack.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="150"
					image="units/human-outlaws/thief+female.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-die-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-die-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-die-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-die-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-die-5.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-die-6.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-die-7.png"
				[/frame]
			[/death]
			[defend]
				hits="miss"
				[frame]
					begin="-126"
					end="-125"
					image="units/human-outlaws/thief+female.png"
				[/frame]
				[frame]
					begin="-125"
					end="-42"
					image="units/human-outlaws/thief+female-defend-1-1.png"
				[/frame]
				[frame]
					begin="-42"
					end="41"
					image="units/human-outlaws/thief+female-defend-1-2.png"
				[/frame]
				[frame]
					begin="41"
					end="125"
					image="units/human-outlaws/thief+female-defend-1-1.png"
				[/frame]
				[frame]
					begin="125"
					end="126"
					image="units/human-outlaws/thief+female.png"
				[/frame]
			[/defend]
			[defend]
				hits="miss"
				[frame]
					begin="-126"
					end="-125"
					image="units/human-outlaws/thief+female.png"
				[/frame]
				[frame]
					begin="-125"
					end="-42"
					image="units/human-outlaws/thief+female-defend-2-1.png"
				[/frame]
				[frame]
					begin="-42"
					end="41"
					image="units/human-outlaws/thief+female-defend-2-2.png"
				[/frame]
				[frame]
					begin="41"
					end="125"
					image="units/human-outlaws/thief+female-defend-2-1.png"
				[/frame]
				[frame]
					begin="125"
					end="126"
					image="units/human-outlaws/thief+female.png"
				[/frame]
			[/defend]
			[defend]
				hits="miss"
				[frame]
					begin="-126"
					end="-125"
					image="units/human-outlaws/thief+female.png"
				[/frame]
				[frame]
					begin="-125"
					end="-42"
					image="units/human-outlaws/thief+female-defend-3-1.png"
				[/frame]
				[frame]
					begin="-42"
					end="41"
					image="units/human-outlaws/thief+female-defend-3-2.png"
				[/frame]
				[frame]
					begin="41"
					end="125"
					image="units/human-outlaws/thief+female-defend-3-1.png"
				[/frame]
				[frame]
					begin="125"
					end="126"
					image="units/human-outlaws/thief+female.png"
				[/frame]
			[/defend]
			[defend]
				hits="kill"
				[frame]
					begin="-126"
					end="-125"
					image="units/human-outlaws/thief+female.png"
				[/frame]
				[frame]
					begin="-125"
					end="125"
					image="units/human-outlaws/thief+female-defend.png"
				[/frame]
				[frame]
					begin="125"
					end="126"
					image="units/human-outlaws/thief+female.png"
				[/frame]
			[/defend]
			[defend]
				hits="hit"
				[frame]
					begin="-126"
					end="-125"
					image="units/human-outlaws/thief+female.png"
				[/frame]
				[frame]
					begin="-125"
					end="125"
					image="units/human-outlaws/thief+female-defend.png"
					sound="human-female-hit-1.ogg,human-female-hit-2.ogg,human-female-hit-3.ogg"
				[/frame]
				[frame]
					begin="125"
					end="126"
					image="units/human-outlaws/thief+female.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-4.png"
				[/frame]
				[frame]
					duration="200"
					image="units/human-outlaws/thief+female-idle-5.png"
				[/frame]
				[frame]
					duration="150"
					image="units/human-outlaws/thief+female-idle-6.png"
				[/frame]
				[frame]
					duration="500"
					image="units/human-outlaws/thief+female-idle-7.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-8.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-9.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-10.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-11.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-12.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-11.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-10.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-9.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-8.png"
				[/frame]
				[frame]
					duration="300"
					image="units/human-outlaws/thief+female-idle-7.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-8.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-9.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-10.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-11.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-12.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-11.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-10.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-9.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-8.png"
				[/frame]
				[frame]
					duration="500"
					image="units/human-outlaws/thief+female-idle-7.png"
				[/frame]
				[frame]
					duration="150"
					image="units/human-outlaws/thief+female-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/human-outlaws/thief+female-idle-5.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-1.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/humans/transparent/thief+female.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/humans/transparent/thief+female.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="30"
				cave="50"
				deep_water="70"
				flat="40"
				forest="30"
				frozen="60"
				fungus="30"
				hills="30"
				impassable="50"
				mountains="30"
				reef="50"
				sand="60"
				shallow_water="60"
				swamp_water="60"
				unwalkable="80"
				village="30"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="2"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="130"
				cold="100"
				fire="100"
				impact="120"
				pierce="120"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="5"
				description=_ "dagger"
				icon="attacks/dagger-human.png"
				name="dagger"
				number="3"
				range="melee"
				type="blade"
				[specials]
					[damage]
						active_on="offense"
						backstab="yes"
#textdomain wesnoth
						description=_ "Backstab:
When used offensively, this attack deals double damage if there is an enemy of the target on the opposite side of the target, and that unit is not incapacitated (turned to stone or otherwise paralyzed)."
						id="backstab"
						multiply="2"
						name=_ "backstab"
					[/damage]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "female^strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "female^intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
	[/side]
	[side]
		action_bonus_count="12"
		aggression="0.5"
		allow_changes="no"
		allow_player="yes"
		caution="0.25"
		colour="2"
		controller="network"
		countdown_time="270000"
		current_player="Blackadder"
		disallow_observers="no"
		fog="yes"
		global_recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
		gold="3"
		hidden="no"
		id="Blackadder2"
		income="0"
		leader_value="3"
		name="Blackadder"
		no_leader="yes"
		number_of_possible_recruits_to_force_recruit="3.1"
		objectives="Victory:
@Defeat enemy leader(s)"
		objectives_changed="yes"
		recruit="Dwarvish Fighter,Dwarvish Guardsman,Dwarvish Thunderer,Dwarvish Ulfserker,Footpad,Gryphon Rider,Poacher,Thief"
		recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
		save_id="Blackadder2"
		share_maps="no"
		share_view="yes"
		shroud="no"
		side="2"
		start_gold="100"
		team_name="south"
		user_team_name="teamname^South"
		village_gold="2"
		village_value="1"
		villages_per_scout="8"
		[ai]
			recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
			villages_per_scout="8"
			[team_formula]
				rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
			[/team_formula]
		[/ai]
		[ai]
			villages_per_scout="8"
		[/ai]
		[village]
			x="11"
			y="11"
		[/village]
		[village]
			x="11"
			y="19"
		[/village]
		[village]
			x="15"
			y="20"
		[/village]
		[village]
			x="16"
			y="14"
		[/village]
		[village]
			x="20"
			y="15"
		[/village]
		[village]
			x="25"
			y="17"
		[/village]
		[village]
			x="25"
			y="21"
		[/village]
		[village]
			x="26"
			y="10"
		[/village]
		[village]
			x="30"
			y="20"
		[/village]
		[village]
			x="31"
			y="6"
		[/village]
		[village]
			x="31"
			y="10"
		[/village]
		[village]
			x="31"
			y="16"
		[/village]
		[unit]
			advances_to="Dwarvish Dragonguard"
			alignment="neutral"
			allow_changes="yes"
			allow_player="yes"
			alpha="256"
			attacks_left="1"
			canrecruit="yes"
			colour="2"
			controller="network"
			cost="30"
			current_player="Blackadder"
			die_sound="dwarf-die-1.ogg,dwarf-die-2.ogg"
			experience="0"
			facing="sw"
			flag_rgb="magenta"
			flying="no"
			fog="yes"
			gender="male"
			gold="100"
			goto_x="-999"
			goto_y="-999"
			hitpoints="42"
			id="Blackadder2"
			image="units/dwarves/thunderguard.png"
			income="0"
#textdomain wesnoth-units
			language_name=_ "Dwarvish Thunderguard"
			leader="Dwarvish Steelclad,Dwarvish Thunderguard,Dwarvish Stalwart,Rogue,Trapper"
			level="2"
			max_attacks="1"
			max_experience="67"
			max_hitpoints="42"
			max_moves="5"
			movement="4"
			movement_type="dwarvishfoot"
			moves="5"
			mp_countdown="yes"
			mp_countdown_action_bonus="20"
			mp_countdown_init_time="270"
			mp_countdown_reservoir_time="270"
			mp_countdown_turn_bonus="200"
			name="Blackadder"
			profile="portraits/dwarves/thunderer.png"
			race="dwarf"
			random_leader="Dwarvish Steelclad,Dwarvish Thunderguard,Rogue,Trapper"
			random_traits="no"
			recruit="Dwarvish Guardsman,Dwarvish Fighter,Dwarvish Ulfserker,Dwarvish Thunderer,Thief,Poacher,Footpad,Gryphon Rider"
			resting="yes"
			save_id="Blackadder2"
			share_maps="no"
			share_view="yes"
			shroud="no"
			side="2"
			team_name="south"
			terrain_liked="Hh, Ha, Mm"
			type="Dwarvish Thunderguard"
			undead_variation="dwarf"
			underlying_id="2"
			unrenamable="no"
			upkeep="full"
			usage="mixed fighter"
			user_team_name="wesnoth-multiplayerteamname^South"
			village_gold="2"
			x="21"
			y="21"
			zoc="yes"
			[portrait]
				image="portraits/dwarves/transparent/thunderer.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/dwarves/transparent/thunderer.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="50"
				deep_water="80"
				flat="70"
				forest="70"
				frozen="70"
				fungus="60"
				hills="40"
				impassable="50"
				mountains="30"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="80"
				unwalkable="80"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="1"
				hills="1"
				impassable="99"
				mountains="1"
				reef="2"
				sand="1"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="90"
				blade="80"
				cold="90"
				fire="90"
				impact="80"
				pierce="80"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "dagger"
				icon="attacks/dagger-human.png"
				name="dagger"
				number="3"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="28"
				description=_ "thunderstick"
				icon="attacks/thunderstick.png"
				name="thunderstick"
				number="1"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Rogue"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="13"
			die_sound="human-female-die-1.ogg,human-female-die-2.ogg,human-female-die-3.ogg"
			ellipse="misc/ellipse"
			experience="1"
			facing="sw"
			flag_rgb="magenta"
			flying="no"
			gender="female"
			goto_x="-999"
			goto_y="-999"
			hitpoints="29"
			id="Thief-21"
			image="units/human-outlaws/thief+female.png"
#textdomain wesnoth-units
			language_name=_ "female^Thief"
			level="1"
			max_attacks="1"
			max_experience="15"
			max_hitpoints="29"
			max_moves="6"
			movement="6"
			movement_type="elusivefoot"
			moves="3"
			name="Mulonna"
			profile="portraits/humans/thief+female.png"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Thief"
			underlying_id="21"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="9"
			y="12"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="dagger"
				[/filter_attack]
				[frame]
					begin="-150"
					end="-100"
					image="units/human-outlaws/thief+female.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/human-outlaws/thief+female-attack.png"
						sound="dagger-swish.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/human-outlaws/thief+female-attack.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="150"
					image="units/human-outlaws/thief+female.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-die-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-die-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-die-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-die-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-die-5.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-die-6.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-die-7.png"
				[/frame]
			[/death]
			[defend]
				hits="miss"
				[frame]
					begin="-126"
					end="-125"
					image="units/human-outlaws/thief+female.png"
				[/frame]
				[frame]
					begin="-125"
					end="-42"
					image="units/human-outlaws/thief+female-defend-1-1.png"
				[/frame]
				[frame]
					begin="-42"
					end="41"
					image="units/human-outlaws/thief+female-defend-1-2.png"
				[/frame]
				[frame]
					begin="41"
					end="125"
					image="units/human-outlaws/thief+female-defend-1-1.png"
				[/frame]
				[frame]
					begin="125"
					end="126"
					image="units/human-outlaws/thief+female.png"
				[/frame]
			[/defend]
			[defend]
				hits="miss"
				[frame]
					begin="-126"
					end="-125"
					image="units/human-outlaws/thief+female.png"
				[/frame]
				[frame]
					begin="-125"
					end="-42"
					image="units/human-outlaws/thief+female-defend-2-1.png"
				[/frame]
				[frame]
					begin="-42"
					end="41"
					image="units/human-outlaws/thief+female-defend-2-2.png"
				[/frame]
				[frame]
					begin="41"
					end="125"
					image="units/human-outlaws/thief+female-defend-2-1.png"
				[/frame]
				[frame]
					begin="125"
					end="126"
					image="units/human-outlaws/thief+female.png"
				[/frame]
			[/defend]
			[defend]
				hits="miss"
				[frame]
					begin="-126"
					end="-125"
					image="units/human-outlaws/thief+female.png"
				[/frame]
				[frame]
					begin="-125"
					end="-42"
					image="units/human-outlaws/thief+female-defend-3-1.png"
				[/frame]
				[frame]
					begin="-42"
					end="41"
					image="units/human-outlaws/thief+female-defend-3-2.png"
				[/frame]
				[frame]
					begin="41"
					end="125"
					image="units/human-outlaws/thief+female-defend-3-1.png"
				[/frame]
				[frame]
					begin="125"
					end="126"
					image="units/human-outlaws/thief+female.png"
				[/frame]
			[/defend]
			[defend]
				hits="kill"
				[frame]
					begin="-126"
					end="-125"
					image="units/human-outlaws/thief+female.png"
				[/frame]
				[frame]
					begin="-125"
					end="125"
					image="units/human-outlaws/thief+female-defend.png"
				[/frame]
				[frame]
					begin="125"
					end="126"
					image="units/human-outlaws/thief+female.png"
				[/frame]
			[/defend]
			[defend]
				hits="hit"
				[frame]
					begin="-126"
					end="-125"
					image="units/human-outlaws/thief+female.png"
				[/frame]
				[frame]
					begin="-125"
					end="125"
					image="units/human-outlaws/thief+female-defend.png"
					sound="human-female-hit-1.ogg,human-female-hit-2.ogg,human-female-hit-3.ogg"
				[/frame]
				[frame]
					begin="125"
					end="126"
					image="units/human-outlaws/thief+female.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-4.png"
				[/frame]
				[frame]
					duration="200"
					image="units/human-outlaws/thief+female-idle-5.png"
				[/frame]
				[frame]
					duration="150"
					image="units/human-outlaws/thief+female-idle-6.png"
				[/frame]
				[frame]
					duration="500"
					image="units/human-outlaws/thief+female-idle-7.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-8.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-9.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-10.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-11.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-12.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-11.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-10.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-9.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-8.png"
				[/frame]
				[frame]
					duration="300"
					image="units/human-outlaws/thief+female-idle-7.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-8.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-9.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-10.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-11.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-12.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-11.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-10.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-9.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-8.png"
				[/frame]
				[frame]
					duration="500"
					image="units/human-outlaws/thief+female-idle-7.png"
				[/frame]
				[frame]
					duration="150"
					image="units/human-outlaws/thief+female-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/human-outlaws/thief+female-idle-5.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief+female-idle-1.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/humans/transparent/thief+female.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/humans/transparent/thief+female.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="30"
				cave="50"
				deep_water="70"
				flat="40"
				forest="30"
				frozen="60"
				fungus="30"
				hills="30"
				impassable="50"
				mountains="30"
				reef="50"
				sand="60"
				shallow_water="60"
				swamp_water="60"
				unwalkable="80"
				village="30"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="2"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="130"
				cold="100"
				fire="100"
				impact="120"
				pierce="120"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="4"
				description=_ "dagger"
				icon="attacks/dagger-human.png"
				name="dagger"
				number="3"
				range="melee"
				type="blade"
				[specials]
					[damage]
						active_on="offense"
						backstab="yes"
#textdomain wesnoth
						description=_ "Backstab:
When used offensively, this attack deals double damage if there is an enemy of the target on the opposite side of the target, and that unit is not incapacitated (turned to stone or otherwise paralyzed)."
						id="backstab"
						multiply="2"
						name=_ "backstab"
					[/damage]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "female^intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "female^resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Outlaw"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
			ellipse="misc/ellipse"
			experience="0"
			facing="ne"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="29"
			id="Footpad-22"
			image="units/human-outlaws/footpad.png"
#textdomain wesnoth-units
			language_name=_ "Footpad"
			level="1"
			max_attacks="1"
			max_experience="20"
			max_hitpoints="29"
			max_moves="8"
			movement="7"
			movement_type="elusivefoot"
			moves="2"
			name="Gaecyn"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Footpad"
			underlying_id="22"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			x="19"
			y="9"
			zoc="yes"
			[attack_anim]
				offset="0.0"
				[filter_attack]
					name="sling"
				[/filter_attack]
				[if]
					hits="yes"
					[sling_stone_frame]
						begin="-201"
						end="-200"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="-200"
						end="0"
						halo="projectiles/stone.png"
						halo_x="5~0"
						halo_y="-6~0"
						offset="0.0~1.0"
						y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="0"
						end="1"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[frame]
						begin="-400"
						end="-150"
						image="units/human-outlaws/footpad-attack1.png"
						sound="sling.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[sling_stone_frame]
						begin="-201"
						end="-200"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="-200"
						end="100"
						halo="projectiles/stone.png"
						halo_x="5~0"
						halo_y="-6~0"
						offset="0.0~1.5"
						y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="100"
						end="101"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[frame]
						begin="-400"
						end="-150"
						image="units/human-outlaws/footpad-attack1.png"
						sound="sling-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-150"
					end="50"
					image="units/human-outlaws/footpad-attack2.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="club"
				[/filter_attack]
				[frame]
					begin="-250"
					end="-200"
					image="units/human-outlaws/footpad.png"
				[/frame]
				[frame]
					begin="-200"
					end="-100"
					image="units/human-outlaws/footpad-melee-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/human-outlaws/footpad-melee-2.png"
						sound="staff.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/human-outlaws/footpad-melee-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="200"
					image="units/human-outlaws/footpad-melee-3.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/human-outlaws/footpad-melee-4.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/human-outlaws/footpad.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/human-outlaws/footpad-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/human-outlaws/footpad-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/human-outlaws/footpad.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="200"
					image="units/human-outlaws/footpad-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="200"
					image="units/human-outlaws/footpad-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-1.png"
				[/frame]
			[/idle_anim]
			[defense]
				castle="30"
				cave="50"
				deep_water="70"
				flat="40"
				forest="30"
				frozen="60"
				fungus="30"
				hills="30"
				impassable="50"
				mountains="30"
				reef="50"
				sand="60"
				shallow_water="60"
				swamp_water="60"
				unwalkable="80"
				village="30"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="2"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="130"
				cold="100"
				fire="100"
				impact="120"
				pierce="120"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="5"
				description=_ "club"
				icon="attacks/club-small.png"
				name="club"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="5"
				description=_ "sling"
				name="sling"
				number="2"
				range="ranged"
				type="impact"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Trapper"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
			ellipse="misc/ellipse"
			experience="2"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="23"
			id="Poacher-23"
			image="units/human-outlaws/poacher.png"
#textdomain wesnoth-units
			language_name=_ "Poacher"
			level="1"
			max_attacks="1"
			max_experience="16"
			max_hitpoints="33"
			max_moves="5"
			movement="5"
			movement_type="smallfoot"
			moves="3"
			name="Veoddryn"
			profile="portraits/humans/trapper.png"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Poacher"
			undead_variation="archer"
			underlying_id="23"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			x="11"
			y="11"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[if]
					hits="yes"
					[frame]
						begin="-400"
						end="-250"
						image="units/human-outlaws/poacher-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-400"
						end="-250"
						image="units/human-outlaws/poacher-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-250"
					end="-100"
					image="units/human-outlaws/poacher-attack2.png"
				[/frame]
				[frame]
					begin="-100"
					end="0"
					image="units/human-outlaws/poacher-attack3.png"
				[/frame]
				[frame]
					begin="0"
					end="100"
					image="units/human-outlaws/poacher.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="dagger"
				[/filter_attack]
				[frame]
					begin="-250"
					end="-150"
					image="units/human-outlaws/poacher-dagger.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-150"
						end="50"
						image="units/human-outlaws/poacher-attack.png"
						sound="dagger-swish.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-150"
						end="50"
						image="units/human-outlaws/poacher-attack.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="50"
					end="150"
					image="units/human-outlaws/poacher-dagger.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/human-outlaws/poacher-dagger.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/poacher-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/human-outlaws/poacher-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/human-outlaws/poacher-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/human-outlaws/poacher-dagger.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/human-outlaws/poacher.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/poacher-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/human-outlaws/poacher-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/human-outlaws/poacher-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/human-outlaws/poacher.png"
				[/frame]
			[/defend]
			[portrait]
				image="portraits/humans/transparent/trapper.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/humans/transparent/trapper.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="80"
				fungus="50"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="50"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="3"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="4"
				description=_ "dagger"
				icon="attacks/dagger-human.png"
				name="dagger"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="4"
				description=_ "bow"
				name="bow"
				number="4"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Outlaw"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
			ellipse="misc/ellipse"
			experience="0"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="31"
			id="Footpad-24"
			image="units/human-outlaws/footpad.png"
#textdomain wesnoth-units
			language_name=_ "Footpad"
			level="1"
			max_attacks="1"
			max_experience="20"
			max_hitpoints="31"
			max_moves="7"
			movement="7"
			movement_type="elusivefoot"
			moves="7"
			name="Blenyn"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="2"
			type="Footpad"
			underlying_id="24"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			x="31"
			y="6"
			zoc="yes"
			[attack_anim]
				offset="0.0"
				[filter_attack]
					name="sling"
				[/filter_attack]
				[if]
					hits="yes"
					[sling_stone_frame]
						begin="-201"
						end="-200"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="-200"
						end="0"
						halo="projectiles/stone.png"
						halo_x="5~0"
						halo_y="-6~0"
						offset="0.0~1.0"
						y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="0"
						end="1"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[frame]
						begin="-400"
						end="-150"
						image="units/human-outlaws/footpad-attack1.png"
						sound="sling.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[sling_stone_frame]
						begin="-201"
						end="-200"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="-200"
						end="100"
						halo="projectiles/stone.png"
						halo_x="5~0"
						halo_y="-6~0"
						offset="0.0~1.5"
						y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="100"
						end="101"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[frame]
						begin="-400"
						end="-150"
						image="units/human-outlaws/footpad-attack1.png"
						sound="sling-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-150"
					end="50"
					image="units/human-outlaws/footpad-attack2.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="club"
				[/filter_attack]
				[frame]
					begin="-250"
					end="-200"
					image="units/human-outlaws/footpad.png"
				[/frame]
				[frame]
					begin="-200"
					end="-100"
					image="units/human-outlaws/footpad-melee-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/human-outlaws/footpad-melee-2.png"
						sound="staff.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/human-outlaws/footpad-melee-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="200"
					image="units/human-outlaws/footpad-melee-3.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/human-outlaws/footpad-melee-4.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/human-outlaws/footpad.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/human-outlaws/footpad-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/human-outlaws/footpad-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/human-outlaws/footpad.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="200"
					image="units/human-outlaws/footpad-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="200"
					image="units/human-outlaws/footpad-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-1.png"
				[/frame]
			[/idle_anim]
			[defense]
				castle="30"
				cave="50"
				deep_water="70"
				flat="40"
				forest="30"
				frozen="60"
				fungus="30"
				hills="30"
				impassable="50"
				mountains="30"
				reef="50"
				sand="60"
				shallow_water="60"
				swamp_water="60"
				unwalkable="80"
				village="30"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="2"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="130"
				cold="100"
				fire="100"
				impact="120"
				pierce="120"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "club"
				icon="attacks/club-small.png"
				name="club"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="5"
				description=_ "sling"
				name="sling"
				number="2"
				range="ranged"
				type="impact"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Trapper"
			alignment="chaotic"
			alpha="256"
			attacks_left="0"
			cost="14"
			die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
			ellipse="misc/ellipse"
			experience="1"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="25"
			id="Poacher-26"
			image="units/human-outlaws/poacher.png"
#textdomain wesnoth-units
			language_name=_ "Poacher"
			level="1"
			max_attacks="1"
			max_experience="16"
			max_hitpoints="30"
			max_moves="6"
			movement="5"
			movement_type="smallfoot"
			moves="0"
			name="Cent"
			profile="portraits/humans/trapper.png"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Poacher"
			undead_variation="archer"
			underlying_id="26"
			unrenamable="no"
			upkeep="full"
			usage="archer"
			x="26"
			y="10"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="bow"
				[/filter_attack]
				[missile_frame]
					begin="-150"
					end="0"
					image="projectiles/missile-n.png"
					image_diagonal="projectiles/missile-ne.png"
				[/missile_frame]
				[if]
					hits="yes"
					[frame]
						begin="-400"
						end="-250"
						image="units/human-outlaws/poacher-attack1.png"
						sound="bow.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-400"
						end="-250"
						image="units/human-outlaws/poacher-attack1.png"
						sound="bow-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-250"
					end="-100"
					image="units/human-outlaws/poacher-attack2.png"
				[/frame]
				[frame]
					begin="-100"
					end="0"
					image="units/human-outlaws/poacher-attack3.png"
				[/frame]
				[frame]
					begin="0"
					end="100"
					image="units/human-outlaws/poacher.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="dagger"
				[/filter_attack]
				[frame]
					begin="-250"
					end="-150"
					image="units/human-outlaws/poacher-dagger.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-150"
						end="50"
						image="units/human-outlaws/poacher-attack.png"
						sound="dagger-swish.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-150"
						end="50"
						image="units/human-outlaws/poacher-attack.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="50"
					end="150"
					image="units/human-outlaws/poacher-dagger.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[filter_attack]
					range="melee"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/human-outlaws/poacher-dagger.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/poacher-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/human-outlaws/poacher-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/human-outlaws/poacher-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/human-outlaws/poacher-dagger.png"
				[/frame]
			[/defend]
			[defend]
				start_time="-126"
				[filter_attack]
					range="ranged"
				[/filter_attack]
				[frame]
					duration="1"
					image="units/human-outlaws/poacher.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/poacher-bow-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/human-outlaws/poacher-bow-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/human-outlaws/poacher-bow-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/human-outlaws/poacher.png"
				[/frame]
			[/defend]
			[portrait]
				image="portraits/humans/transparent/trapper.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/humans/transparent/trapper.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="80"
				fungus="50"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="50"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="3"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[variables]
			[/variables]
			[status]
			[/status]
			[attack]
				damage="3"
				description=_ "dagger"
				icon="attacks/dagger-human.png"
				name="dagger"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="4"
				description=_ "bow"
				name="bow"
				number="4"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Outlaw"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
			ellipse="misc/ellipse"
			experience="0"
			facing="ne"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="36"
			id="Footpad-35"
			image="units/human-outlaws/footpad.png"
#textdomain wesnoth-units
			language_name=_ "Footpad"
			level="1"
			max_attacks="1"
			max_experience="25"
			max_hitpoints="36"
			max_moves="7"
			movement="7"
			movement_type="elusivefoot"
			moves="0"
			name="Meodd"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Footpad"
			underlying_id="35"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			x="31"
			y="10"
			zoc="yes"
			[attack_anim]
				offset="0.0"
				[filter_attack]
					name="sling"
				[/filter_attack]
				[if]
					hits="yes"
					[sling_stone_frame]
						begin="-201"
						end="-200"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="-200"
						end="0"
						halo="projectiles/stone.png"
						halo_x="5~0"
						halo_y="-6~0"
						offset="0.0~1.0"
						y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="0"
						end="1"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[frame]
						begin="-400"
						end="-150"
						image="units/human-outlaws/footpad-attack1.png"
						sound="sling.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[sling_stone_frame]
						begin="-201"
						end="-200"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="-200"
						end="100"
						halo="projectiles/stone.png"
						halo_x="5~0"
						halo_y="-6~0"
						offset="0.0~1.5"
						y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="100"
						end="101"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[frame]
						begin="-400"
						end="-150"
						image="units/human-outlaws/footpad-attack1.png"
						sound="sling-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-150"
					end="50"
					image="units/human-outlaws/footpad-attack2.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="club"
				[/filter_attack]
				[frame]
					begin="-250"
					end="-200"
					image="units/human-outlaws/footpad.png"
				[/frame]
				[frame]
					begin="-200"
					end="-100"
					image="units/human-outlaws/footpad-melee-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/human-outlaws/footpad-melee-2.png"
						sound="staff.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/human-outlaws/footpad-melee-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="200"
					image="units/human-outlaws/footpad-melee-3.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/human-outlaws/footpad-melee-4.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/human-outlaws/footpad.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/human-outlaws/footpad-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/human-outlaws/footpad-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/human-outlaws/footpad.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="200"
					image="units/human-outlaws/footpad-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="200"
					image="units/human-outlaws/footpad-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-1.png"
				[/frame]
			[/idle_anim]
			[defense]
				castle="30"
				cave="50"
				deep_water="70"
				flat="40"
				forest="30"
				frozen="60"
				fungus="30"
				hills="30"
				impassable="50"
				mountains="30"
				reef="50"
				sand="60"
				shallow_water="60"
				swamp_water="60"
				unwalkable="80"
				village="30"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="2"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="130"
				cold="100"
				fire="100"
				impact="120"
				pierce="120"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "club"
				icon="attacks/club-small.png"
				name="club"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="5"
				description=_ "sling"
				name="sling"
				number="2"
				range="ranged"
				type="impact"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^resilient"
					id="resilient"
					male_name=_ "resilient"
					name=_ "resilient"
					[effect]
						apply_to="hitpoints"
						increase_total="4"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
						times="per level"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Outlaw"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="14"
			die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
			ellipse="misc/ellipse"
			experience="0"
			facing="nw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="31"
			id="Footpad-36"
			image="units/human-outlaws/footpad.png"
#textdomain wesnoth-units
			language_name=_ "Footpad"
			level="1"
			max_attacks="1"
			max_experience="20"
			max_hitpoints="31"
			max_moves="7"
			movement="7"
			movement_type="elusivefoot"
			moves="2"
			name="Owodd"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Footpad"
			underlying_id="36"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			x="12"
			y="10"
			zoc="yes"
			[attack_anim]
				offset="0.0"
				[filter_attack]
					name="sling"
				[/filter_attack]
				[if]
					hits="yes"
					[sling_stone_frame]
						begin="-201"
						end="-200"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="-200"
						end="0"
						halo="projectiles/stone.png"
						halo_x="5~0"
						halo_y="-6~0"
						offset="0.0~1.0"
						y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="0"
						end="1"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[frame]
						begin="-400"
						end="-150"
						image="units/human-outlaws/footpad-attack1.png"
						sound="sling.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[sling_stone_frame]
						begin="-201"
						end="-200"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="-200"
						end="100"
						halo="projectiles/stone.png"
						halo_x="5~0"
						halo_y="-6~0"
						offset="0.0~1.5"
						y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="100"
						end="101"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[frame]
						begin="-400"
						end="-150"
						image="units/human-outlaws/footpad-attack1.png"
						sound="sling-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-150"
					end="50"
					image="units/human-outlaws/footpad-attack2.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="club"
				[/filter_attack]
				[frame]
					begin="-250"
					end="-200"
					image="units/human-outlaws/footpad.png"
				[/frame]
				[frame]
					begin="-200"
					end="-100"
					image="units/human-outlaws/footpad-melee-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/human-outlaws/footpad-melee-2.png"
						sound="staff.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/human-outlaws/footpad-melee-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="200"
					image="units/human-outlaws/footpad-melee-3.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/human-outlaws/footpad-melee-4.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/human-outlaws/footpad.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/human-outlaws/footpad-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/human-outlaws/footpad-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/human-outlaws/footpad.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="200"
					image="units/human-outlaws/footpad-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="200"
					image="units/human-outlaws/footpad-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-1.png"
				[/frame]
			[/idle_anim]
			[defense]
				castle="30"
				cave="50"
				deep_water="70"
				flat="40"
				forest="30"
				frozen="60"
				fungus="30"
				hills="30"
				impassable="50"
				mountains="30"
				reef="50"
				sand="60"
				shallow_water="60"
				swamp_water="60"
				unwalkable="80"
				village="30"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="2"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="130"
				cold="100"
				fire="100"
				impact="120"
				pierce="120"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="6"
				description=_ "club"
				icon="attacks/club-small.png"
				name="club"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="5"
				description=_ "sling"
				name="sling"
				number="2"
				range="ranged"
				type="impact"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Rogue"
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="13"
			die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
			ellipse="misc/ellipse"
			experience="0"
			facing="n"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="23"
			id="Thief-37"
			image="units/human-outlaws/thief.png"
#textdomain wesnoth-units
			language_name=_ "Thief"
			level="1"
			max_attacks="1"
			max_experience="15"
			max_hitpoints="23"
			max_moves="7"
			movement="6"
			movement_type="elusivefoot"
			moves="0"
			name="Gegwyn"
			profile="portraits/humans/thief.png"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Thief"
			underlying_id="37"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="30"
			y="15"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="dagger"
				[/filter_attack]
				[frame]
					begin="-150"
					end="-100"
					image="units/human-outlaws/thief.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/human-outlaws/thief-attack.png"
						sound="dagger-swish.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/human-outlaws/thief-attack.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="150"
					image="units/human-outlaws/thief.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="100"
					image="units/human-outlaws/thief-die-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-die-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-die-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-die-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-die-5.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-die-6.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-die-7.png"
				[/frame]
			[/death]
			[defend]
				hits="miss"
				[frame]
					begin="-126"
					end="-125"
					image="units/human-outlaws/thief.png"
				[/frame]
				[frame]
					begin="-125"
					end="-42"
					image="units/human-outlaws/thief-defend-1-1.png"
				[/frame]
				[frame]
					begin="-42"
					end="41"
					image="units/human-outlaws/thief-defend-1-2.png"
				[/frame]
				[frame]
					begin="41"
					end="125"
					image="units/human-outlaws/thief-defend-1-1.png"
				[/frame]
				[frame]
					begin="125"
					end="126"
					image="units/human-outlaws/thief.png"
				[/frame]
			[/defend]
			[defend]
				hits="miss"
				[frame]
					begin="-126"
					end="-125"
					image="units/human-outlaws/thief.png"
				[/frame]
				[frame]
					begin="-125"
					end="-42"
					image="units/human-outlaws/thief-defend-2-1.png"
				[/frame]
				[frame]
					begin="-42"
					end="41"
					image="units/human-outlaws/thief-defend-2-2.png"
				[/frame]
				[frame]
					begin="41"
					end="125"
					image="units/human-outlaws/thief-defend-2-1.png"
				[/frame]
				[frame]
					begin="125"
					end="126"
					image="units/human-outlaws/thief.png"
				[/frame]
			[/defend]
			[defend]
				hits="miss"
				[frame]
					begin="-126"
					end="-125"
					image="units/human-outlaws/thief.png"
				[/frame]
				[frame]
					begin="-125"
					end="-42"
					image="units/human-outlaws/thief-defend-3-1.png"
				[/frame]
				[frame]
					begin="-42"
					end="41"
					image="units/human-outlaws/thief-defend-3-2.png"
				[/frame]
				[frame]
					begin="41"
					end="125"
					image="units/human-outlaws/thief-defend-3-1.png"
				[/frame]
				[frame]
					begin="125"
					end="126"
					image="units/human-outlaws/thief.png"
				[/frame]
			[/defend]
			[defend]
				hits="kill"
				[frame]
					begin="-126"
					end="-125"
					image="units/human-outlaws/thief.png"
				[/frame]
				[frame]
					begin="-125"
					end="125"
					image="units/human-outlaws/thief-defend.png"
				[/frame]
				[frame]
					begin="125"
					end="126"
					image="units/human-outlaws/thief.png"
				[/frame]
			[/defend]
			[defend]
				hits="hit"
				[frame]
					begin="-126"
					end="-125"
					image="units/human-outlaws/thief.png"
				[/frame]
				[frame]
					begin="-125"
					end="125"
					image="units/human-outlaws/thief-defend.png"
					sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
				[/frame]
				[frame]
					begin="125"
					end="126"
					image="units/human-outlaws/thief.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-4.png"
				[/frame]
				[frame]
					duration="200"
					image="units/human-outlaws/thief-idle-5.png"
				[/frame]
				[frame]
					duration="150"
					image="units/human-outlaws/thief-idle-6.png"
				[/frame]
				[frame]
					duration="500"
					image="units/human-outlaws/thief-idle-7.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-8.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-9.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-10.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-11.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-12.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-11.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-10.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-9.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-8.png"
				[/frame]
				[frame]
					duration="300"
					image="units/human-outlaws/thief-idle-7.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-8.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-9.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-10.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-11.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-12.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-11.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-10.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-9.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-8.png"
				[/frame]
				[frame]
					duration="500"
					image="units/human-outlaws/thief-idle-7.png"
				[/frame]
				[frame]
					duration="150"
					image="units/human-outlaws/thief-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/human-outlaws/thief-idle-5.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-1.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/humans/transparent/thief.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/humans/transparent/thief.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="30"
				cave="50"
				deep_water="70"
				flat="40"
				forest="30"
				frozen="60"
				fungus="30"
				hills="30"
				impassable="50"
				mountains="30"
				reef="50"
				sand="60"
				shallow_water="60"
				swamp_water="60"
				unwalkable="80"
				village="30"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="2"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="130"
				cold="100"
				fire="100"
				impact="120"
				pierce="120"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
			[/status]
			[attack]
				damage="4"
				description=_ "dagger"
				icon="attacks/dagger-human.png"
				name="dagger"
				number="3"
				range="melee"
				type="blade"
				[specials]
					[damage]
						active_on="offense"
						backstab="yes"
#textdomain wesnoth
						description=_ "Backstab:
When used offensively, this attack deals double damage if there is an enemy of the target on the opposite side of the target, and that unit is not incapacitated (turned to stone or otherwise paralyzed)."
						id="backstab"
						multiply="2"
						name=_ "backstab"
					[/damage]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^intelligent"
					id="intelligent"
					male_name=_ "intelligent"
					name=_ "intelligent"
					[effect]
						apply_to="max_experience"
						increase="-20%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Rogue"
			alignment="chaotic"
			alpha="256"
			attacks_left="0"
			cost="13"
			die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
			ellipse="misc/ellipse"
			experience="0"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="24"
			id="Thief-38"
			image="units/human-outlaws/thief.png"
#textdomain wesnoth-units
			language_name=_ "Thief"
			level="1"
			max_attacks="1"
			max_experience="20"
			max_hitpoints="24"
			max_moves="7"
			movement="6"
			movement_type="elusivefoot"
			moves="0"
			name="Tin"
			profile="portraits/humans/thief.png"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Thief"
			underlying_id="38"
			unrenamable="no"
			upkeep="full"
			usage="fighter"
			x="24"
			y="19"
			zoc="yes"
			[attack_anim]
				[filter_attack]
					name="dagger"
				[/filter_attack]
				[frame]
					begin="-150"
					end="-100"
					image="units/human-outlaws/thief.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/human-outlaws/thief-attack.png"
						sound="dagger-swish.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/human-outlaws/thief-attack.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="150"
					image="units/human-outlaws/thief.png"
				[/frame]
			[/attack_anim]
			[death]
				start_time="0"
				[frame]
					duration="100"
					image="units/human-outlaws/thief-die-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-die-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-die-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-die-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-die-5.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-die-6.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-die-7.png"
				[/frame]
			[/death]
			[defend]
				hits="miss"
				[frame]
					begin="-126"
					end="-125"
					image="units/human-outlaws/thief.png"
				[/frame]
				[frame]
					begin="-125"
					end="-42"
					image="units/human-outlaws/thief-defend-1-1.png"
				[/frame]
				[frame]
					begin="-42"
					end="41"
					image="units/human-outlaws/thief-defend-1-2.png"
				[/frame]
				[frame]
					begin="41"
					end="125"
					image="units/human-outlaws/thief-defend-1-1.png"
				[/frame]
				[frame]
					begin="125"
					end="126"
					image="units/human-outlaws/thief.png"
				[/frame]
			[/defend]
			[defend]
				hits="miss"
				[frame]
					begin="-126"
					end="-125"
					image="units/human-outlaws/thief.png"
				[/frame]
				[frame]
					begin="-125"
					end="-42"
					image="units/human-outlaws/thief-defend-2-1.png"
				[/frame]
				[frame]
					begin="-42"
					end="41"
					image="units/human-outlaws/thief-defend-2-2.png"
				[/frame]
				[frame]
					begin="41"
					end="125"
					image="units/human-outlaws/thief-defend-2-1.png"
				[/frame]
				[frame]
					begin="125"
					end="126"
					image="units/human-outlaws/thief.png"
				[/frame]
			[/defend]
			[defend]
				hits="miss"
				[frame]
					begin="-126"
					end="-125"
					image="units/human-outlaws/thief.png"
				[/frame]
				[frame]
					begin="-125"
					end="-42"
					image="units/human-outlaws/thief-defend-3-1.png"
				[/frame]
				[frame]
					begin="-42"
					end="41"
					image="units/human-outlaws/thief-defend-3-2.png"
				[/frame]
				[frame]
					begin="41"
					end="125"
					image="units/human-outlaws/thief-defend-3-1.png"
				[/frame]
				[frame]
					begin="125"
					end="126"
					image="units/human-outlaws/thief.png"
				[/frame]
			[/defend]
			[defend]
				hits="kill"
				[frame]
					begin="-126"
					end="-125"
					image="units/human-outlaws/thief.png"
				[/frame]
				[frame]
					begin="-125"
					end="125"
					image="units/human-outlaws/thief-defend.png"
				[/frame]
				[frame]
					begin="125"
					end="126"
					image="units/human-outlaws/thief.png"
				[/frame]
			[/defend]
			[defend]
				hits="hit"
				[frame]
					begin="-126"
					end="-125"
					image="units/human-outlaws/thief.png"
				[/frame]
				[frame]
					begin="-125"
					end="125"
					image="units/human-outlaws/thief-defend.png"
					sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
				[/frame]
				[frame]
					begin="125"
					end="126"
					image="units/human-outlaws/thief.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-4.png"
				[/frame]
				[frame]
					duration="200"
					image="units/human-outlaws/thief-idle-5.png"
				[/frame]
				[frame]
					duration="150"
					image="units/human-outlaws/thief-idle-6.png"
				[/frame]
				[frame]
					duration="500"
					image="units/human-outlaws/thief-idle-7.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-8.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-9.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-10.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-11.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-12.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-11.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-10.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-9.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-8.png"
				[/frame]
				[frame]
					duration="300"
					image="units/human-outlaws/thief-idle-7.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-8.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-9.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-10.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-11.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-12.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-11.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-10.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-9.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-8.png"
				[/frame]
				[frame]
					duration="500"
					image="units/human-outlaws/thief-idle-7.png"
				[/frame]
				[frame]
					duration="150"
					image="units/human-outlaws/thief-idle-6.png"
				[/frame]
				[frame]
					duration="200"
					image="units/human-outlaws/thief-idle-5.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/thief-idle-1.png"
				[/frame]
			[/idle_anim]
			[portrait]
				image="portraits/humans/transparent/thief.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/humans/transparent/thief.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[defense]
				castle="30"
				cave="50"
				deep_water="70"
				flat="40"
				forest="30"
				frozen="60"
				fungus="30"
				hills="30"
				impassable="50"
				mountains="30"
				reef="50"
				sand="60"
				shallow_water="60"
				swamp_water="60"
				unwalkable="80"
				village="30"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="2"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="130"
				cold="100"
				fire="100"
				impact="120"
				pierce="120"
			[/resistance]
			[variables]
			[/variables]
			[status]
			[/status]
			[attack]
				damage="5"
				description=_ "dagger"
				icon="attacks/dagger-human.png"
				name="dagger"
				number="3"
				range="melee"
				type="blade"
				[specials]
					[damage]
						active_on="offense"
						backstab="yes"
#textdomain wesnoth
						description=_ "Backstab:
When used offensively, this attack deals double damage if there is an enemy of the target on the opposite side of the target, and that unit is not incapacitated (turned to stone or otherwise paralyzed)."
						id="backstab"
						multiply="2"
						name=_ "backstab"
					[/damage]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Outlaw"
			alignment="chaotic"
			alpha="256"
			attacks_left="0"
			cost="14"
			die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
			ellipse="misc/ellipse"
			experience="0"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="-999"
			goto_y="-999"
			hitpoints="30"
			id="Footpad-39"
			image="units/human-outlaws/footpad.png"
#textdomain wesnoth-units
			language_name=_ "Footpad"
			level="1"
			max_attacks="1"
			max_experience="25"
			max_hitpoints="30"
			max_moves="8"
			movement="7"
			movement_type="elusivefoot"
			moves="0"
			name="Geollyn"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="no"
			side="2"
			type="Footpad"
			underlying_id="39"
			unrenamable="no"
			upkeep="full"
			usage="scout"
			x="23"
			y="20"
			zoc="yes"
			[attack_anim]
				offset="0.0"
				[filter_attack]
					name="sling"
				[/filter_attack]
				[if]
					hits="yes"
					[sling_stone_frame]
						begin="-201"
						end="-200"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="-200"
						end="0"
						halo="projectiles/stone.png"
						halo_x="5~0"
						halo_y="-6~0"
						offset="0.0~1.0"
						y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="0"
						end="1"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[frame]
						begin="-400"
						end="-150"
						image="units/human-outlaws/footpad-attack1.png"
						sound="sling.ogg"
					[/frame]
				[/if]
				[else]
					hits="no"
					[sling_stone_frame]
						begin="-201"
						end="-200"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="-200"
						end="100"
						halo="projectiles/stone.png"
						halo_x="5~0"
						halo_y="-6~0"
						offset="0.0~1.5"
						y="0~-5,-5~-8,-8~-9,-9~-10,-10~-9,-9~-8,-8~-5,-5~0"
					[/sling_stone_frame]
					[sling_stone_frame]
						begin="100"
						end="101"
						image="misc/blank-hex.png"
					[/sling_stone_frame]
					[frame]
						begin="-400"
						end="-150"
						image="units/human-outlaws/footpad-attack1.png"
						sound="sling-miss.ogg"
					[/frame]
				[/else]
				[frame]
					begin="-150"
					end="50"
					image="units/human-outlaws/footpad-attack2.png"
				[/frame]
			[/attack_anim]
			[attack_anim]
				[filter_attack]
					name="club"
				[/filter_attack]
				[frame]
					begin="-250"
					end="-200"
					image="units/human-outlaws/footpad.png"
				[/frame]
				[frame]
					begin="-200"
					end="-100"
					image="units/human-outlaws/footpad-melee-1.png"
				[/frame]
				[if]
					hits="yes"
					[frame]
						begin="-100"
						end="100"
						image="units/human-outlaws/footpad-melee-2.png"
						sound="staff.wav"
					[/frame]
				[/if]
				[else]
					hits="no"
					[frame]
						begin="-100"
						end="100"
						image="units/human-outlaws/footpad-melee-2.png"
						sound="miss-1.ogg,miss-2.ogg,miss-3.ogg"
					[/frame]
				[/else]
				[frame]
					begin="100"
					end="200"
					image="units/human-outlaws/footpad-melee-3.png"
				[/frame]
				[frame]
					begin="200"
					end="300"
					image="units/human-outlaws/footpad-melee-4.png"
				[/frame]
			[/attack_anim]
			[defend]
				start_time="-126"
				[frame]
					duration="1"
					image="units/human-outlaws/footpad.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-defend.png"
				[/frame]
				[if]
					hits="hit"
					[frame]
						duration="150"
						image="units/human-outlaws/footpad-defend.png"
						sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,human-hit-5.ogg"
					[/frame]
				[/if]
				[else]
					hits="miss,kill"
					[frame]
						duration="150"
						image="units/human-outlaws/footpad-defend.png"
					[/frame]
				[/else]
				[frame]
					duration="1"
					image="units/human-outlaws/footpad.png"
				[/frame]
			[/defend]
			[idle_anim]
				start_time="0"
				[filter]
					[not]
						[filter_wml]
							[status]
								poisoned="yes"
							[/status]
						[/filter_wml]
					[/not]
				[/filter]
				[filter]
					[filter_adjacent]
						count="0"
						is_enemy="yes"
					[/filter_adjacent]
				[/filter]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-1.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="200"
					image="units/human-outlaws/footpad-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="200"
					image="units/human-outlaws/footpad-idle-4.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-3.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/human-outlaws/footpad-idle-1.png"
				[/frame]
			[/idle_anim]
			[defense]
				castle="30"
				cave="50"
				deep_water="70"
				flat="40"
				forest="30"
				frozen="60"
				fungus="30"
				hills="30"
				impassable="50"
				mountains="30"
				reef="50"
				sand="60"
				shallow_water="60"
				swamp_water="60"
				unwalkable="80"
				village="30"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="2"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="130"
				cold="100"
				fire="100"
				impact="120"
				pierce="120"
			[/resistance]
			[variables]
			[/variables]
			[status]
			[/status]
			[attack]
				damage="6"
				description=_ "club"
				icon="attacks/club-small.png"
				name="club"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="5"
				description=_ "sling"
				name="sling"
				number="2"
				range="ranged"
				type="impact"
			[/attack]
			[modifications]
				[trait]
#textdomain wesnoth
					female_name=_ "female^quick"
					id="quick"
					male_name=_ "quick"
					name=_ "quick"
					[effect]
						apply_to="movement"
						increase="1"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="-5%"
					[/effect]
				[/trait]
				[trait]
					female_name=_ "female^strong"
					id="strong"
					male_name=_ "strong"
					name=_ "strong"
					[effect]
						apply_to="attack"
						increase_damage="1"
						range="melee"
					[/effect]
					[effect]
						apply_to="hitpoints"
						increase_total="1"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
	[/side]
	[side]
		action_bonus_count="0"
		aggression="0.5"
		allow_changes="no"
		allow_player="no"
		caution="0.25"
		colour="5"
		controller="ai"
		countdown_time="270000"
		current_player="ai3"
		disallow_observers="no"
		fog="yes"
		global_recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
		gold="-110"
		hidden="yes"
		id="ai3"
		income="0"
		leader_value="3"
		name=_ "Computer player"
		no_leader="yes"
		number_of_possible_recruits_to_force_recruit="3.1"
		objectives=_ "Victory:
@Defeat enemy leader(s)"
		objectives_changed="yes"
		recruit="Dwarvish Fighter,Dwarvish Guardsman,Dwarvish Thunderer,Dwarvish Ulfserker,Footpad,Gryphon Rider,Poacher,Thief"
		recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
		save_id="ai3"
		share_maps="no"
		share_view="yes"
		shroud="no"
		side="3"
		start_gold="100"
		team_name="statues"
		user_team_name="statues"
		village_gold="2"
		village_value="1"
		villages_per_scout="4"
		[ai]
			recruitment_pattern="fighter,fighter,fighter,mixed fighter,archer,scout"
			[team_formula]
				rulebase="fai 'recruitment.fai'
		# ===== Some general functions used later ==== #

def sumarize_values( input_map )
	sum(
		values(input_map)
	);

def lowest_value( input_map )
	choose( input_map, -value ).value;

def highest_value( input_map )
	choose( input_map, value ).value;

def change_numbers_to_percents( input_map )
	map( input_map, 
		(value*100) / highest_value(input_map) 
	);

def add_number_to_values( input_map, number )
	map( input_map, 
		value + number 
	);

#make sure we have only positive values in a map #

def make_positive_only( input_map )
	if( lowest_value( input_map ) < 0, 
		add_number_to_values( 
			input_map, 
			abs(lowest_value(input_map))
		), 
		input_map 
	);

def sumarize_maps_values( map_A, map_B )
	map( map_A + map_B, 
		value + map_A[key]
	);

		#===== Evaluation how good unit is on a map ===== #

# ==1==  evaluate average defense #
#gives map where key is id of terrain, and value is number of hexes of that terrain on a gamemap#

def locations_map(ai*) 
	tomap( 
		map( 
			map.terrain, 
			id 
		) 
	);

#filters terrain map, min_percent it minimal % of map that terrain has to occupy to be considered in later evaluations# 

def filtered_locations_map(ai*, min_percent)
	filter( 
		locations_map(ai) , 
		value >  (map.w * map.h) / ( 100 / min_percent ) 
	);

#returns average defense of the unit #

def unit_average_defense(ai*, unit, terrain_min_percent )
	sum( 
		values( 
			map(
				filtered_locations_map(ai,terrain_min_percent), 
				defense_on( 
					unit, 
					find(map.terrain,id=key).loc
				) *
				value
			) 
		) 
	) / 
	sum(
		values(
			filtered_locations_map(
				ai,
				terrain_min_percent
			)
		)
	);

#returns map of units from units_list and their average defense (more -> better) #

def map_units_average_defense(ai*, units_list, terrain_min_percent) 
	tomap(
		map( 
			units_list, 
			id 
		), 
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	);

def units_average_defense(ai*, units_list, terrain_min_percent)
	sum(
		map( 
			units_list, 'unit', 
			unit_average_defense(
				ai, 
				unit, 
				terrain_min_percent 
			) 
		) 
	) /
	size(
		units_list
	);


# ==2== TODO: evaluate unit effectivness based on movement points and movement cost#


		#===== Evaluation of game state - how good is ai doing ===== #

# ==1== based on unit cost and current amount of gold #
# returns number between 0 and 100 where: 0 we are losing, 100 we are winning #

def units_cost_gold_eval(ai*)
	min(
		[
			(
				(
					sum(
						map(
							allies, 'team', 
							sum(
								map(
									units_of_side[team], 
									cost
								)
							) + 
							teams[team].gold 
						)
					) * 
					100
				) / 
				sum(
					map(
						enemies, 'team', 
						sum(
							map(
								units_of_side[team], 
								cost
							)
						) + 
						max(
							[teams[team].gold, 0]
						) 
					)
				)
			) / 2,
			100
		]
	);

# ==2== based on village possession #

def count_allied_villages(ai*)
	sum(
		map(
			allies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

def count_enemy_villages(ai*)
	sum(
		map(
			enemies, 'side', 
			size(
				villages_of_side[side]
			)
		)
	);

# multipled by 1000 to increase precision #

def village_evaluation(ai*)
	(
		50000 + 
		(
			count_allied_villages(ai) - 
			count_enemy_villages(ai)
		) * 
		(
			50000 /
			size(
				villages
			)
		)
	) /
	1000;

# ==3== combined 2 of the above #

def eval(ai*)
	( 
		units_cost_gold_eval(ai) + 
		village_evaluation(ai)
	) / 
	2;

		#===== Evaluation how effective my units are against the enemy ===== #

#==1==  basic evaluation #

# evaluate how much damage unit can inflict - how much damage unit can get#

def evaluate_attacker_against_opponents(ai*, unit, enemy_units)
	sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( unit, enemy_unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				) 
			)
		)
	);

def evaluate_defender_against_opponents(ai*, unit, enemy_units)
	-sum( 
		map( 
			enemy_units, 'enemy_unit', 
			sum(
				map(
					[
						max_possible_damage_with_retaliation( enemy_unit, unit )
					],
					max(
						[
							self[0] - self[2],
							self[1] - self[3]
						]
					)
				)
			)
		)
	);

def units_hp_map(ai*, units)
	tomap( 
		map(
			units, 
			id
		), 
		map( 
			units, 
			hitpoints
		)
	);

#in case side's gold is more than 50, add units that side can recruit to the side's unit list#

def create_side_unit_list(ai*, side)
	if( 
		teams[side].gold > 50, 
		recruits_of_side[side], 
		[]
	) + 
	units_of_side[side];

def evaluate_my_recruits_as_attackers(ai*)
	tomap( 
		map(
			my_recruits, 
			id
		), 
		map(
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_attacker_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai, 
							enemy_side
						)
					)
				)
			)
		)
	);

def evaluate_my_recruits_as_defenders(ai*)
	tomap(
		map(
			my_recruits, 
			id
		),
		map( 
			my_recruits, 'my_unit',
			sum(
				map(
					enemies, 'enemy_side',
					evaluate_defender_against_opponents(
						ai,
						my_unit,
						create_side_unit_list(
							ai,
							enemy_side
						)
					)
				)
			)
		)
	);


# === 2 ===  now consider abilities and weapon specials  #

def abilities_weights()
	['skirmisher' -> 15, 'ambush' -> 10, 'nightstalk' -> 20, 'regenerates' -> 20, 'healing' -> 15, 'curing' -> 10, 'leadership' -> 20, 'illumination' -> 15, 'teleport' -> 10, 'steadfast' -> 15 ];

def weapon_specials_weights()
	[ 'backstab' -> 20 ,'slow' -> 10 ,'berserk' -> 20 ,'stones' -> 60 ,'plague' -> 10 ,'marksman' -> 30 ,'magical' -> 40 ,'charge' -> 30 ,'drains' -> 30,  'firststrike' -> 10, 'poison' -> 25 ];

def apply_abilities_weights( units_map )
	map( 
		units_map, 
		value +
		(
			value * 
			max(
				map(
					get_unit_type( key ).abilities, 'ability',
					abilities_weights()[ability]
				)
			)
		) / 100
	);

def apply_weapon_specials_weights( units_map )
	map(
		units_map, 
		value +
		(
			value *
			max(
				map(
					get_unit_type( key ).attacks, 'attack',
					vars.weapon_specials[attack.special]
				)
			)
		) / 100
	);

# since undead units don't get random traits and are balanced with that, we need to lower their evaluation a bit to match fairly the living units #

def undead_malus( units_map )
	map( 
		units_map, 
		if(
			get_unit_type(key).undead,
			( value * 90 ) / 100,
			value 
		)
	);

# === 3 ===  pit 1 and 2 together  #

def evaluate_attackers(ai*)
	change_numbers_to_percents(
		apply_abilities_weights(
			apply_weapon_specials_weights(
				undead_malus( 
					make_positive_only(
						evaluate_my_recruits_as_attackers( ai )	
					)
				)
			)
		)
	);

def evaluate_defenders(ai*)
	map(
		map(
			change_numbers_to_percents(
				apply_abilities_weights(
					apply_weapon_specials_weights(
						undead_malus( 
							make_positive_only(
								evaluate_my_recruits_as_defenders( ai )	
							)
						)
					)
				)
			),
			value / 3
		), 
		value +
		map(
			change_numbers_to_percents(
				units_hp_map(
					ai,
					my_recruits
				)
			),
		value * 2 / 3
		)[key]
	);

	#=========== we have evaluation of game state and units, time to combine them: ==========#
		#=========	recruitment_list_builder	=========#

def rlb_apply_eval(eval, attackers_map, defenders_map, offset)
	map(
		sumarize_maps_values(
			map(
				attackers_map, 
				value * (eval+offset)
			),
			map(
				defenders_map,
				value * ( (100 - eval) - offset )
			)
		),
		value / 100
	);

def rlb_remove_lowest( input_map, percent)
	filter(
		input_map, 
		value > 
		(
			(
				percent * sumarize_values(input_map)
			) / 100
		)
	);

def rlb_first_step(eval, attackers_map, defenders_map, offset)
	rlb_remove_lowest(
		rlb_apply_eval(
			eval,
			attackers_map,
			defenders_map,
			offset
		),
		10
	);

def recruitment_list_builder(eval, attackers_map, defenders_map)
	map(
		rlb_first_step(
			eval,
			attackers_map,
			defenders_map,
			40
		),
		(
			(
				value * 100
			) / 
			sumarize_values(
				rlb_first_step(
					eval,
					attackers_map,
					defenders_map,
					40
				)
			)
		)
	);

		# ========== choose the unit to recruit now ========= #

def unit_chooser(ai*,unit_map) 
	choose(
		keys(unit_map), 'unit_type',
		unit_map[unit_type] - 
		(
			(
				100 * 
				size(
					filter(
						my_units, 
						type = unit_type
					)
				)
			) / 
			size(my_units)
		)
	);

def unit_map_cost_filter(ai*, unit_map)
	filter( unit_map,
		get_unit_type(key).cost < my_side.gold
	);

		# ==========	Main formula section 	========== #

def initialize_weapon_specials_map(ai*)
	if(vars.weapon_specials_init != turn,
		[
			set_var('weapon_specials_init', turn),
			set_var('weapon_specials',
				map(
					weapon_specials_weights(),
					if( key = 'magical',
						units_average_defense(ai, enemy_units, 10),
						if( key = 'marksman',
							units_average_defense(ai, enemy_units, 10) - 10,
							value
						)
					)
				)
			)
		],
		[]
	);

def create_recruits_map(ai*)
	if(vars.recruits_map_creator != turn,
		[
			set_var('recruits_map_creator', turn ),
			set_var('recruits_map',
				debug_print('final unit evaluation: ', recruitment_list_builder(
					debug_print('current AI evaluation (0-100): ', eval(ai)),
					debug_print('attackers evaluation: ',evaluate_attackers(ai)),
					debug_print('defenders evaluation: ',evaluate_defenders(ai))
				))
			)
		],
		[]
	);

def castle_space(ai*)
	filter( map( castle_locs( my_leader.loc ), 'location', if( unit_at( location ), 1, 0 ) ), self = 0  ).size;

if(vars.turn_initialized = turn,
		if( my_leader.loc = nearest_keep( my_leader.loc ),
			if( 
				get_unit_type(
					choose(
						vars.recruits_map,
						-get_unit_type(key).cost
					).key
				).cost <
				my_side.gold,
				if( castle_space(self),
					recruit(debug_print(
						unit_chooser(
							self,
							unit_map_cost_filter(
								self,
								vars.recruits_map
							)
						)
					)),
					fallback()
				),
				fallback() 
			),
			if( my_leader.movement_left > 0,
				move( my_leader.loc, nearest_keep( my_leader.loc ) ),
				fallback()
			)
		),
	[set_var(debug_print('turn_initialized'), turn)] +
	initialize_weapon_specials_map(self) +
	create_recruits_map(self)
)

faiend
"
			[/team_formula]
		[/ai]
		[unit]
			advances_to="Hurricane Drake"
			alignment="lawful"
			alpha="256"
			attacks_left="1"
			cost="30"
			description="The winds of the dark sky blew so cold,
The moon was high, the night was old,
Brave was the drake that dared forsake
His home to steal the Basilisk's gold.

On that dark night, the skies so churned,
He disregarded what he had learned,
Foolish but brave, to the Basilisk's cave,
He flew, and the fire within him burned.

Alas, that fire burns no more,
For the Basilisk, with one mighty roar,
Chilled him to the bone, and he turned to stone,
And so he stays forevermore.

The winds of the sky blow so cold,
The years pass by, the days are old,
Here stands that drake, who dared forsake
His home to steal the Basilisk's gold.
(inscribed by Flametrooper)"
			die_sound="drake-die.ogg"
			experience="0"
			facing="se"
			flies="false"
			flying="no"
			gender="male"
			goto_x="0"
			goto_y="0"
			hitpoints="1"
			id="Sky Drake-3"
			image="units/drakes/sky.png"
#textdomain wesnoth-units
			language_name=_ "Sky Drake"
			level="2"
			max_attacks="1"
			max_experience="56"
			max_hitpoints="1"
			max_moves="0"
			movement="9"
			movement_type="fly"
			moves="0"
			profile="portraits/drakes/glider.png"
			race="drake"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="3"
			type="Sky Drake"
			undead_variation="drake"
			underlying_id="3"
			unrenamable="yes"
			upkeep="full"
			usage="scout"
			x="27"
			y="14"
			zoc="yes"
			[defense]
				castle="50"
				cave="70"
				deep_water="50"
				flat="50"
				forest="50"
				frozen="50"
				fungus="60"
				hills="50"
				impassable="80"
				mountains="50"
				reef="50"
				sand="50"
				shallow_water="50"
				swamp_water="50"
				unwalkable="50"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="1"
				flat="1"
				forest="1"
				frozen="1"
				fungus="2"
				hills="1"
				impassable="99"
				mountains="1"
				reef="1"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="1"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="130"
				blade="90"
				cold="150"
				fire="50"
				impact="80"
				pierce="110"
			[/resistance]
			[variables]
			[/variables]
			[status]
				hidden="yes"
				stoned="on"
			[/status]
			[attack]
				damage="6"
				description=_ "slam"
				icon="attacks/slam-drake.png"
				name="slam"
				number="3"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="5"
				description=_ "fire breath"
				icon="attacks/fire-breath-drake.png"
				name="fire breath"
				number="3"
				range="ranged"
				type="fire"
				[specials]
					[chance_to_hit]
						active_on="offense"
						cumulative="yes"
#textdomain wesnoth
						description=_ "Marksman:
When used offensively, this attack always has at least a 60% chance to hit."
						id="marksman"
						name=_ "marksman"
						value="60"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					id="remove_hp"
					[effect]
						apply_to="hitpoints"
						increase_total="-100%"
					[/effect]
					[effect]
						apply_to="movement"
						set="0"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="46"
			description="Xikkrisx of Syrsszk was a powerful Saurian warrior, sent to this region by the Elders of the Rysssrylosszkk Clan (translation: ''The Hunts-Foes-In-Boiling-Rivers Clan''). The Elders were preparing to make war on a human outpost, and were in great need of the powerful magics of Oxsrrsk, a Saurian Mystic who had last been seen heading in the direction of Ruaskkolin Lake. Xikkrisx found the petrified body of Oxsrrsk, along with a carefully bound scroll that had apparently been dropped into a small crevice in the cave floor. He opened the scroll and read a brief passage from the middle of the text: ''After he was bound and cast from the Upper World, Chak'kso's enraged spirit sought release, and was able to exert a corrupting influence on certain regions of the Upper World, channeled through ''pathways of stone'' that extend from the surface into the depths of the Under Reaches. This rage altered the eggs of great lizards, shaping their bodies and spirits into implements of Chak'kso's hatred.'' Confused, Xikkrisx fixed his attention on the task at hand. Thinking that perhaps the Elders could find some way to restore Oxsrrsk, he began the long and strenuous task of hauling the statue back to the domain of the Rysssrylosszkk Clan. Exhausted, and not having traveled far from the lake, Xikkrisx set the statue down inside of a small cave, and lay down to rest. He was awoken by a bone-chilling roar."
			die_sound="hiss-die.wav"
			experience="0"
			facing="sw"
			flag_rgb="magenta"
			flies="false"
			flying="no"
			gender="male"
			goto_x="0"
			goto_y="0"
			hitpoints="1"
			id="Saurian Flanker-4"
			image="units/saurians/flanker.png"
#textdomain wesnoth-units
			language_name=_ "Saurian Flanker"
			level="3"
			max_attacks="1"
			max_experience="105"
			max_hitpoints="1"
			max_moves="0"
			movement="7"
			movement_type="lizard"
			moves="0"
			name="Xikkrisx"
			profile="portraits/saurians/skirmisher.png"
			race="lizard"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="3"
			type="Saurian Flanker"
			undead_variation="saurian"
			underlying_id="4"
			unrenamable="yes"
			upkeep="full"
			usage="scout"
			x="40"
			y="8"
			zoc="yes"
			[defense]
				castle="40"
				cave="40"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="40"
				hills="40"
				impassable="40"
				mountains="40"
				reef="60"
				sand="40"
				shallow_water="60"
				swamp_water="40"
				unwalkable="80"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="4"
				fungus="1"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="1"
				shallow_water="3"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="110"
				cold="120"
				fire="120"
				impact="110"
				pierce="80"
			[/resistance]
			[abilities]
				[skirmisher]
					affect_self="yes"
#textdomain wesnoth
					description=_ "Skirmisher:
This unit is skilled in moving past enemies quickly, and ignores all enemy Zones of Control."
					female_name=_ "female^skirmisher"
					id="skirmisher"
					name=_ "skirmisher"
				[/skirmisher]
			[/abilities]
			[advancement]
				description=_ "Max HP bonus +3, Max XP +20%"
				id="amla_default"
				image="misc/icon-amla-tough.png"
				max_times="100"
				strict_amla="yes"
				[effect]
					apply_to="hitpoints"
					heal_full="yes"
					increase_total="3"
				[/effect]
				[effect]
					apply_to="max_experience"
					increase="20%"
				[/effect]
				[effect]
					apply_to="status"
					remove="poisoned"
				[/effect]
				[effect]
					apply_to="status"
					remove="slowed"
				[/effect]
			[/advancement]
			[portrait]
				image="portraits/saurians/transparent/skirmisher.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/saurians/transparent/skirmisher.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[variables]
			[/variables]
			[status]
				hidden="yes"
				stoned="on"
			[/status]
			[attack]
				damage="8"
#textdomain wesnoth-units
				description=_ "spear"
				icon="attacks/spear.png"
				name="spear"
				number="4"
				range="melee"
				type="pierce"
			[/attack]
			[attack]
				damage="7"
				description=_ "spear"
				icon="attacks/spear.png"
				name="spear"
				number="2"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
					id="remove_hp"
					[effect]
						apply_to="hitpoints"
						increase_total="-100%"
					[/effect]
					[effect]
						apply_to="movement"
						set="0"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="27"
			description="Oxsrrsk was a powerful Saurian Oracle, who had, in a raid against the rival Xraxss Clan, acquired (from the vaults of the now-dead Oracle Hesx-Rzzak) a most fascinating scroll. The scroll was entitled ''Ney'yks of the Granite Gaze,'' and told of a creature known as the ''Chak'kso Ney'yks,'' a name which, in an ancient saurian tongue, meant ''Eldest Child of Chak'kso.'' Chak'kso was believed to have been a powerful demigod of the Under Reaches, described as a ''great demon of the earth'' in the Elvish Histories. According to these histories, Chak'kso had once sought to transform all life on the planet to stone; so great was his hatred for creatures of flesh. He was ultimately defeated and bound by powerful magics, but in the centuries following his banishment (to a realm far below the surface of the world) a new breed of creature began appearing in the Histories, a breed with the ability to turn any being of flesh into stone. There was a period when these Basilisks (as they came to be known) wreaked havoc on the world of the living, turning thousands to stone. One by one, and at great cost, the Basilisks were defeated. All, it would seem, but one; the Basilisk known as ''The Ney'yks,'' or ''The Eldest Child,'' in the modern tongue. Supremely convinced of his ability to locate and bind this powerful creature into his service, Oxsrrsk set out on his journey..."
			die_sound="hiss-die.wav"
			experience="0"
			facing="sw"
			flag_rgb="magenta"
			flies="false"
			flying="no"
			gender="male"
			goto_x="0"
			goto_y="0"
			hitpoints="1"
			id="Saurian Oracle-5"
			image="units/saurians/oracle.png"
			language_name=_ "Saurian Oracle"
			level="2"
			max_attacks="1"
			max_experience="105"
			max_hitpoints="1"
			max_moves="0"
			movement="6"
			movement_type="lizard"
			moves="0"
			name="Oxsrrsk"
			profile="portraits/saurians/augur.png"
			race="lizard"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="3"
			type="Saurian Oracle"
			undead_variation="saurian"
			underlying_id="5"
			unrenamable="yes"
			upkeep="full"
			usage="archer"
			x="39"
			y="8"
			zoc="yes"
			[defense]
				castle="40"
				cave="40"
				deep_water="80"
				flat="60"
				forest="40"
				frozen="70"
				fungus="40"
				hills="40"
				impassable="40"
				mountains="40"
				reef="60"
				sand="40"
				shallow_water="60"
				swamp_water="40"
				unwalkable="80"
				village="50"
			[/defense]
			[movement_costs]
				castle="1"
				cave="1"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="4"
				fungus="1"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="1"
				shallow_water="3"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="110"
				cold="120"
				fire="120"
				impact="110"
				pierce="80"
			[/resistance]
			[abilities]
				[heals]
					affect_allies="yes"
					affect_self="no"
#textdomain wesnoth
					description=_ "Heals +4:
Allows the unit to heal adjacent allied units at the beginning of our turn.

A unit cared for by this healer may heal up to 4 HP per turn, or stop poison from taking effect for that turn.
A poisoned unit cannot be cured of its poison by a healer, and must seek the care of a village or a unit that can cure."
					female_name=_ "female^heals +4"
					id="healing"
					name=_ "heals +4"
					poison="slowed"
					value="4"
					[affect_adjacent]
						adjacent="n,ne,se,s,sw,nw"
					[/affect_adjacent]
				[/heals]
			[/abilities]
			[advancement]
				description=_ "Max HP bonus +3, Max XP +20%"
				id="amla_default"
				image="misc/icon-amla-tough.png"
				max_times="100"
				strict_amla="yes"
				[effect]
					apply_to="hitpoints"
					heal_full="yes"
					increase_total="3"
				[/effect]
				[effect]
					apply_to="max_experience"
					increase="20%"
				[/effect]
				[effect]
					apply_to="status"
					remove="poisoned"
				[/effect]
				[effect]
					apply_to="status"
					remove="slowed"
				[/effect]
			[/advancement]
			[portrait]
				image="portraits/saurians/transparent/augur.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/saurians/transparent/augur.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[variables]
			[/variables]
			[status]
				hidden="yes"
				stoned="on"
			[/status]
			[attack]
				damage="4"
#textdomain wesnoth-units
				description=_ "staff"
				icon="attacks/staff-magic.png"
				name="staff"
				number="3"
				range="melee"
				type="impact"
			[/attack]
			[attack]
				damage="8"
				description=_ "curse"
				icon="attacks/curse.png"
				name="curse"
				number="3"
				range="ranged"
				type="cold"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					id="remove_hp"
					[effect]
						apply_to="hitpoints"
						increase_total="-100%"
					[/effect]
					[effect]
						apply_to="movement"
						set="0"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Elvish Sharpshooter"
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="41"
			description="Slim of Stature, dexterous Hands
- - Seven Stones and Eleven
Left his Foes so slim a Chance
- - Seven Stones and Eleven
Marksman known as Dragonbane
'mongst the Statues here was slain
- - Seven Stones - and the Elven
(inscribed by Gauteamus)"
			die_sound="human-hit-1.ogg,human-hit-2.ogg,human-hit-3.ogg,human-hit-4.ogg,elf-hit-1.ogg,elf-hit-2.ogg"
			experience="0"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="0"
			goto_y="0"
			hitpoints="1"
			id="Elvish Marksman-6"
			image="units/elves-wood/marksman.png"
#textdomain wesnoth-units
			language_name=_ "Elvish Marksman"
			level="2"
			max_attacks="1"
			max_experience="56"
			max_hitpoints="1"
			max_moves="0"
			movement="6"
			movement_type="woodland"
			moves="0"
			profile="portraits/elves/marksman.png"
			race="elf"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="3"
			type="Elvish Marksman"
			undead_variation="archer"
			underlying_id="6"
			unrenamable="yes"
			upkeep="full"
			usage="archer"
			x="2"
			y="11"
			zoc="yes"
			[defense]
				castle="40"
				cave="70"
				deep_water="80"
				flat="60"
				forest="30"
				frozen="70"
				fungus="50"
				hills="50"
				impassable="70"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="110"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[portrait]
				image="portraits/elves/transparent/marksman.png"
				mirror="true"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/elves/transparent/marksman.png"
				mirror="false"
				side="right"
				size="400"
			[/portrait]
			[variables]
			[/variables]
			[status]
				hidden="yes"
				stoned="on"
			[/status]
			[attack]
				damage="6"
				description=_ "sword"
				icon="attacks/sword-elven.png"
				name="sword"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="9"
				description=_ "longbow"
				icon="attacks/bow-elven-magic.png"
				name="longbow"
				number="4"
				range="ranged"
				type="pierce"
				[specials]
					[chance_to_hit]
						active_on="offense"
						cumulative="yes"
#textdomain wesnoth
						description=_ "Marksman:
When used offensively, this attack always has at least a 60% chance to hit."
						id="marksman"
						name=_ "marksman"
						value="60"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					id="remove_hp"
					[effect]
						apply_to="hitpoints"
						increase_total="-100%"
					[/effect]
					[effect]
						apply_to="movement"
						set="0"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="41"
			description="Blum Duk was renowned among his goblin clan for having tamed one of the Dire Wolves of the mountains, and he had the courage to match. His leadership and skills alone were what kept the area's goblins alive despite human and elvish menaces. Rumour had it that his wolf had slain fifty men and a hundred Elves.
Thus, when he heard of the awful monster that was inhabiting the area, it was only natural that he ride out alone to face it. All the other goblins expected him to slay the creature easily and drag back its carcass to feast on.
He was in for quite a shock. As soon as he saw the Basilisk, Blum Duk cowered in fright. He tried to wheel his wolf around to run away, but it wouldn't move. As the creature stalked towards him, he screamed his last words: Good Gog, dog, are yer legs made of stone?!?
(inscribed by Elvish Pillager)"
			die_sound="wolf-die.wav"
			experience="0"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="0"
			goto_y="0"
			hitpoints="1"
			id="Direwolf Rider-7"
			image="units/goblins/direwolver.png"
#textdomain wesnoth-units
			language_name=_ "Direwolf Rider"
			level="3"
			max_attacks="1"
			max_experience="105"
			max_hitpoints="1"
			max_moves="0"
			movement="10"
			movement_type="orcishfoot"
			moves="0"
			name="Blum Duk"
			race="wolf"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="3"
			type="Direwolf Rider"
			undead_variation="mounted"
			underlying_id="7"
			unrenamable="yes"
			upkeep="full"
			usage="scout"
			x="10"
			y="17"
			zoc="yes"
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="60"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="2"
				fungus="3"
				hills="1"
				impassable="99"
				mountains="2"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="100"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[advancement]
#textdomain wesnoth
				description=_ "Max HP bonus +3, Max XP +20%"
				id="amla_default"
				image="misc/icon-amla-tough.png"
				max_times="100"
				strict_amla="yes"
				[effect]
					apply_to="hitpoints"
					heal_full="yes"
					increase_total="3"
				[/effect]
				[effect]
					apply_to="max_experience"
					increase="20%"
				[/effect]
				[effect]
					apply_to="status"
					remove="poisoned"
				[/effect]
				[effect]
					apply_to="status"
					remove="slowed"
				[/effect]
			[/advancement]
			[variables]
			[/variables]
			[status]
				hidden="yes"
				stoned="on"
			[/status]
			[attack]
				damage="9"
#textdomain wesnoth-units
				description=_ "fangs"
				icon="attacks/fangs-animal.png"
				name="fangs"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="4"
				description=_ "claws"
				icon="attacks/claws-animal.png"
				name="claws"
				number="4"
				range="melee"
				type="blade"
				[specials]
					[poison]
#textdomain wesnoth
						description=_ "Poison:
This attack poisons living targets. Poisoned units lose 8 HP every turn until they are cured or are reduced to 1 HP. Poison can not, of itself, kill a unit."
						id="poison"
						name=_ "poison"
					[/poison]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					id="remove_hp"
					[effect]
						apply_to="hitpoints"
						increase_total="-100%"
					[/effect]
					[effect]
						apply_to="movement"
						set="0"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			alignment="lawful"
			alpha="256"
			attacks_left="1"
			cost="100"
			description="Rah Ihn Mar, Champion of the Burning Hills, made his way to the Ruaskkolin Lake region in pursuit of the Elvish Hero Terowydlithrol, known among Elves as ''The Dragonbane.'' It was said that Terowydlithrol had killed a Dragon of Fire that threatened an Elvish village, and initiated a ''counterattack'' in which some 37 Drakes, camping in a nearby ravine and believed to be in allegiance with the Dragon, were slaughtered. Knowing that these Drakes were innocent, Rah Ihn Mar came to Ruaskkolin Lake to hunt down and slay Terowydlithrol, who had been seen entering the region but a day ago. Burning for vengeance, Rah Ihn Mar began the hunt....."
			die_sound="drake-die.ogg"
			ellipse="misc/ellipse"
			experience="0"
			facing="se"
			flying="no"
			gender="male"
			goto_x="0"
			goto_y="0"
			hitpoints="1"
			id="Armageddon Drake-8"
			image="units/drakes/armageddon.png"
#textdomain wesnoth-units
			language_name=_ "Armageddon Drake"
			level="4"
			max_attacks="1"
			max_experience="105"
			max_hitpoints="1"
			max_moves="0"
			movement="5"
			movement_type="drakefly"
			moves="0"
			name="Rah Ihn Mar"
			profile="portraits/drakes/burner.png"
			race="drake"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="3"
			type="Armageddon Drake"
			undead_variation="drake"
			underlying_id="8"
			unrenamable="yes"
			upkeep="full"
			usage="archer"
			x="11"
			y="14"
			zoc="yes"
			[defense]
				castle="60"
				cave="70"
				deep_water="80"
				flat="70"
				forest="60"
				frozen="80"
				fungus="60"
				hills="60"
				impassable="70"
				mountains="60"
				reef="70"
				sand="60"
				shallow_water="80"
				swamp_water="70"
				unwalkable="60"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="2"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="1"
				impassable="99"
				mountains="1"
				reef="1"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="1"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="130"
				blade="90"
				cold="150"
				fire="0"
				impact="80"
				pierce="110"
			[/resistance]
			[advancement]
#textdomain wesnoth
				description=_ "Max HP bonus +3, Max XP +20%"
				id="amla_default"
				image="misc/icon-amla-tough.png"
				max_times="100"
				strict_amla="yes"
				[effect]
					apply_to="hitpoints"
					heal_full="yes"
					increase_total="3"
				[/effect]
				[effect]
					apply_to="max_experience"
					increase="20%"
				[/effect]
				[effect]
					apply_to="status"
					remove="poisoned"
				[/effect]
				[effect]
					apply_to="status"
					remove="slowed"
				[/effect]
			[/advancement]
			[variables]
			[/variables]
			[status]
				hidden="yes"
				stoned="on"
			[/status]
			[attack]
				damage="15"
#textdomain wesnoth-units
				description=_ "claws"
				icon="attacks/claws-drake.png"
				name="claws"
				number="2"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="12"
				description=_ "fire breath"
				icon="attacks/fire-breath-drake.png"
				name="fire breath"
				number="6"
				range="ranged"
				type="fire"
			[/attack]
			[modifications]
				[trait]
					id="remove_hp"
					[effect]
						apply_to="hitpoints"
						increase_total="-100%"
					[/effect]
					[effect]
						apply_to="movement"
						set="0"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			alignment="chaotic"
			alpha="256"
			attacks_left="1"
			cost="40"
			description="He had lived there for ages upon ages, in the depths of the water, preying upon the various fish and frogs and merfolk that entered his domain. It was his lake, no other's, and though it was not large, he was its master. Then, the Basilisk came, and looked into the Serpent's eyes. And the Serpent had not died, but it was no longer alive. Thus the new lord of the lake had arrived.
(inscribed by Turin)"
			die_sound="water-blast.wav"
			experience="0"
			facing="sw"
			flying="no"
			gender="male"
			goto_x="0"
			goto_y="0"
			hitpoints="1"
			id="Sea Serpent-9"
			image="units/monsters/seaserpent.png"
			language_name=_ "Sea Serpent"
			level="3"
			max_attacks="1"
			max_experience="105"
			max_hitpoints="1"
			max_moves="0"
			movement="8"
			movement_type="deepsea"
			moves="0"
			profile="portraits/monsters/sea-serpent.png"
			race="monster"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="3"
			type="Sea Serpent"
			undead_variation="swimmer"
			underlying_id="9"
			unrenamable="yes"
			upkeep="full"
			usage="fighter"
			x="22"
			y="12"
			zoc="yes"
			[defense]
				castle="70"
				cave="80"
				deep_water="40"
				flat="70"
				forest="70"
				frozen="70"
				fungus="80"
				hills="70"
				impassable="80"
				mountains="80"
				reef="50"
				sand="70"
				shallow_water="50"
				swamp_water="40"
				unwalkable="80"
				village="70"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="1"
				flat="4"
				forest="5"
				frozen="2"
				fungus="3"
				hills="5"
				impassable="99"
				mountains="99"
				reef="2"
				sand="4"
				shallow_water="2"
				swamp_water="2"
				unwalkable="99"
				village="2"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="80"
				cold="40"
				fire="100"
				impact="70"
				pierce="100"
			[/resistance]
			[advancement]
#textdomain wesnoth
				description=_ "Max HP bonus +3, Max XP +20%"
				id="amla_default"
				image="misc/icon-amla-tough.png"
				max_times="100"
				strict_amla="yes"
				[effect]
					apply_to="hitpoints"
					heal_full="yes"
					increase_total="3"
				[/effect]
				[effect]
					apply_to="max_experience"
					increase="20%"
				[/effect]
				[effect]
					apply_to="status"
					remove="poisoned"
				[/effect]
				[effect]
					apply_to="status"
					remove="slowed"
				[/effect]
			[/advancement]
			[variables]
			[/variables]
			[status]
				hidden="yes"
				stoned="on"
			[/status]
			[attack]
				damage="18"
#textdomain wesnoth-units
				description=_ "fangs"
				icon="attacks/fangs-animal.png"
				name="fangs"
				number="2"
				range="melee"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
					id="remove_hp"
					[effect]
						apply_to="hitpoints"
						increase_total="-100%"
					[/effect]
					[effect]
						apply_to="movement"
						set="0"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			alignment="lawful"
			alpha="256"
			attacks_left="1"
			cost="58"
			description="A brave hero of Wesnoth's Golden Age, this great rider and commander of men came to this evil place while on a raid against the orcs. Caught unaware by the foul creatures, many of his fellows were killed, but he fought valiantly, slaying many a foe. But alas! The foul Basilisk turned him to stone even as he slew the last orc. Now all that is left is a stark reminder of his once great bearing and strength.
(inscribed by Fynmiir)"
			die_sound="horse-die.ogg"
			experience="0"
			facing="sw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="0"
			goto_y="0"
			hitpoints="1"
			id="Grand Knight-10"
			image="units/human-loyalists/grand-knight.png"
			language_name=_ "Grand Knight"
			level="3"
			max_attacks="1"
			max_experience="105"
			max_hitpoints="1"
			max_moves="0"
			movement="7"
			movement_type="mounted"
			moves="0"
			profile="portraits/humans/grand-knight.png"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="3"
			type="Grand Knight"
			undead_variation="mounted"
			underlying_id="10"
			unrenamable="yes"
			upkeep="full"
			usage="fighter"
			x="25"
			y="14"
			zoc="yes"
			[defense]
				castle="60"
				cave="80"
				deep_water="80"
				flat="60"
				forest="70"
				frozen="70"
				fungus="80"
				hills="60"
				impassable="80"
				mountains="80"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="80"
				unwalkable="80"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="4"
				deep_water="99"
				flat="1"
				forest="3"
				frozen="2"
				fungus="4"
				hills="2"
				impassable="99"
				mountains="99"
				reef="3"
				sand="2"
				shallow_water="4"
				swamp_water="4"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="80"
				cold="100"
				fire="100"
				impact="70"
				pierce="120"
			[/resistance]
			[advancement]
#textdomain wesnoth
				description=_ "Max HP bonus +3, Max XP +20%"
				id="amla_default"
				image="misc/icon-amla-tough.png"
				max_times="100"
				strict_amla="yes"
				[effect]
					apply_to="hitpoints"
					heal_full="yes"
					increase_total="3"
				[/effect]
				[effect]
					apply_to="max_experience"
					increase="20%"
				[/effect]
				[effect]
					apply_to="status"
					remove="poisoned"
				[/effect]
				[effect]
					apply_to="status"
					remove="slowed"
				[/effect]
			[/advancement]
			[variables]
			[/variables]
			[status]
				hidden="yes"
				stoned="on"
			[/status]
			[attack]
				damage="12"
#textdomain wesnoth-units
				description=_ "sword"
				icon="attacks/greatsword-human.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="17"
				description=_ "lance"
				name="lance"
				number="2"
				range="melee"
				type="pierce"
				[specials]
					[damage]
						active_on="offense"
						apply_to="both"
#textdomain wesnoth
						description=_ "Charge:
When used offensively, this attack deals double damage to the target. It also causes this unit to take double damage from the target's counterattack."
						id="charge"
						multiply="2"
						name=_ "charge"
					[/damage]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					id="remove_hp"
					[effect]
						apply_to="hitpoints"
						increase_total="-100%"
					[/effect]
					[effect]
						apply_to="movement"
						set="0"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			advances_to="Ancient Wose"
			alignment="lawful"
			alpha="256"
			attacks_left="1"
			cost="31"
			description="Bramwythl the Wose was always considered a slow, taciturn fellow, even by other Woses. More than any other Wose, he enjoyed simply standing alone in the sun, arms upraised, admiring the beauty of the empty sky. Once, even, he confided in a fellow that his greatest wish was to be able to bask forever in the sun's glory.
However, not long after, the local wose community heard of the approach of a horrible monster, powerful enough to easily destroy the few woses that lived in the area. They quickly moved off (quickly for Woses, anyway), but Bramwythl was left behind - in their haste, no one had remembered to find him and tell him of the danger.
He was taken quite unawares by the Basilisk, and turned to stone before he even recognised the beast. His petrified form still stands there today, warmed by the sun's rays, under an open sky. His greatest wish has been granted.
(inscribed by Elvish Pillager)"
			die_sound="wose-die.ogg"
			experience="0"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="0"
			goto_y="0"
			hitpoints="1"
			id="Elder Wose-11"
			image="units/woses/wose-elder.png"
#textdomain wesnoth-units
			language_name=_ "Elder Wose"
			level="2"
			max_attacks="1"
			max_experience="70"
			max_hitpoints="1"
			max_moves="0"
			movement="4"
			movement_type="treefolk"
			moves="0"
			name="Bramwythl"
			race="wose"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="3"
			type="Elder Wose"
			undead_variation="wose"
			underlying_id="11"
			unrenamable="yes"
			upkeep="full"
			usage="fighter"
			x="32"
			y="6"
			zoc="yes"
			[defense]
				castle="80"
				cave="80"
				deep_water="90"
				flat="80"
				forest="60"
				frozen="80"
				fungus="70"
				hills="70"
				impassable="80"
				mountains="70"
				reef="80"
				sand="80"
				shallow_water="80"
				swamp_water="70"
				unwalkable="80"
				village="80"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="99"
				flat="1"
				forest="1"
				frozen="2"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="2"
				swamp_water="2"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="130"
				blade="100"
				cold="90"
				fire="150"
				impact="60"
				pierce="40"
			[/resistance]
			[abilities]
				[hides]
					affect_self="yes"
#textdomain wesnoth
					description=_ "Ambush:
This unit can hide in forest, and remain undetected by its enemies.

Enemy units cannot see this unit while it is in forest, except if they have units next to it. Any enemy unit that first discovers this unit immediately loses all its remaining movement."
					description_inactive=_ "Ambush:
This unit can hide in forest, and remain undetected by its enemies.

Enemy units cannot see this unit while it is in forest, except if they have units next to it. Any enemy unit that first discovers this unit immediately loses all its remaining movement."
					female_name=_ "female^ambush"
					female_name_inactive=_ "female^ambush"
					id="ambush"
					name=_ "ambush"
					name_inactive=_ "ambush"
					[filter_self]
						[filter_location]
							terrain="*^Fp,*^Fet,*^Ft,*^Fpa,*^Fd*,*^Fm*"
						[/filter_location]
					[/filter_self]
				[/hides]
				[regenerate]
					affect_self="yes"
					description=_ "Regenerates:
The unit will heal itself 8 HP per turn. If it is poisoned, it will remove the poison instead of healing."
					female_name=_ "female^regenerates"
					id="regenerates"
					name=_ "regenerates"
					poison="cured"
					value="8"
				[/regenerate]
			[/abilities]
			[variables]
			[/variables]
			[status]
				hidden="yes"
				stoned="on"
			[/status]
			[attack]
				damage="19"
#textdomain wesnoth-units
				description=_ "crush"
				icon="attacks/crush-wose.png"
				name="crush"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[modifications]
				[trait]
					id="remove_hp"
					[effect]
						apply_to="hitpoints"
						increase_total="-100%"
					[/effect]
					[effect]
						apply_to="movement"
						set="0"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			alignment="lawful"
			alpha="256"
			attacks_left="1"
			cost="50"
			description="General Talael Ryndoc came to this place to fight a duel with the Grand Marshal Aethec Corryn, but the two men never found one another. "
			die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
			experience="0"
			facing="sw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="0"
			goto_y="0"
			hitpoints="1"
			id="Iron Mauler-12"
			image="units/human-loyalists/siegetrooper.png"
			language_name=_ "Iron Mauler"
			level="3"
			max_attacks="1"
			max_experience="105"
			max_hitpoints="1"
			max_moves="0"
			movement="4"
			movement_type="armoredfoot"
			moves="0"
			name="Talael Ryndoc"
			profile="portraits/humans/iron-mauler.png~RIGHT()"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="3"
			type="Iron Mauler"
			underlying_id="12"
			unrenamable="yes"
			upkeep="full"
			usage="fighter"
			x="34"
			y="11"
			zoc="yes"
			[defense]
				castle="50"
				cave="60"
				deep_water="80"
				flat="70"
				forest="60"
				frozen="80"
				fungus="60"
				hills="60"
				impassable="60"
				mountains="80"
				reef="80"
				sand="80"
				shallow_water="90"
				swamp_water="90"
				unwalkable="80"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="4"
				fungus="2"
				hills="3"
				impassable="99"
				mountains="99"
				reef="3"
				sand="2"
				shallow_water="4"
				swamp_water="4"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="50"
				cold="110"
				fire="110"
				impact="90"
				pierce="60"
			[/resistance]
			[advancement]
#textdomain wesnoth
				description=_ "Max HP bonus +3, Max XP +20%"
				id="amla_default"
				image="misc/icon-amla-tough.png"
				max_times="100"
				strict_amla="yes"
				[effect]
					apply_to="hitpoints"
					heal_full="yes"
					increase_total="3"
				[/effect]
				[effect]
					apply_to="max_experience"
					increase="20%"
				[/effect]
				[effect]
					apply_to="status"
					remove="poisoned"
				[/effect]
				[effect]
					apply_to="status"
					remove="slowed"
				[/effect]
			[/advancement]
			[portrait]
				image="portraits/humans/transparent/iron-mauler.png"
				mirror="false"
				side="right"
				size="400"
			[/portrait]
			[trait]
				description=_ "Fights normally during unfavorable times of day/night"
				female_name=_ "female^fearless"
				id="fearless"
				male_name=_ "fearless"
			[/trait]
			[variables]
			[/variables]
			[status]
				hidden="yes"
				stoned="on"
			[/status]
			[attack]
				damage="25"
#textdomain wesnoth-units
				description=_ "mace"
				name="mace"
				number="2"
				range="melee"
				type="impact"
			[/attack]
			[modifications]
				[trait]
					id="remove_hp"
					[effect]
						apply_to="hitpoints"
						increase_total="-100%"
					[/effect]
					[effect]
						apply_to="movement"
						set="0"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			alignment="lawful"
			alpha="256"
			attacks_left="1"
			cost="66"
			description="The last words spoken by Grand Marshal Aethec Corryn: ''Talael Ryndoc! I am through searching for you! I shall make my way back to Haldric's Hall, and inform the court that you were too much of a coward to attend our duel! Your disgrace shall be more agonizing than the death I'd have given you!''

Perhaps he should not have shouted quite so loudly.... "
			die_sound="human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
			experience="0"
			facing="sw"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="0"
			goto_y="0"
			hitpoints="1"
			id="Grand Marshal-13"
			image="units/human-loyalists/marshal.png"
			language_name=_ "Grand Marshal"
			level="4"
			max_attacks="1"
			max_experience="105"
			max_hitpoints="1"
			max_moves="0"
			movement="6"
			movement_type="smallfoot"
			moves="0"
			name="Aethec Corryn"
			profile="portraits/humans/marshal.png"
			race="human"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="3"
			type="Grand Marshal"
			underlying_id="13"
			unrenamable="yes"
			upkeep="full"
			usage="fighter"
			x="15"
			y="11"
			zoc="yes"
			[defense]
				castle="40"
				cave="60"
				deep_water="80"
				flat="60"
				forest="50"
				frozen="80"
				fungus="50"
				hills="50"
				impassable="60"
				mountains="40"
				reef="70"
				sand="70"
				shallow_water="80"
				swamp_water="80"
				unwalkable="80"
				village="40"
			[/defense]
			[movement_costs]
				castle="1"
				cave="2"
				deep_water="99"
				flat="1"
				forest="2"
				frozen="3"
				fungus="2"
				hills="2"
				impassable="99"
				mountains="3"
				reef="2"
				sand="2"
				shallow_water="3"
				swamp_water="3"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="80"
				blade="80"
				cold="100"
				fire="100"
				impact="80"
				pierce="80"
			[/resistance]
			[abilities]
				[leadership]
					affect_self="no"
					cumulative="no"
#textdomain wesnoth
					description=_ "Leadership:
This unit can lead our own units that are next to it, making them fight better.

Adjacent own units of lower level will do more damage in battle. When a unit adjacent to, of a lower level than, and on the same side as a unit with Leadership engages in combat, its attacks do 25% more damage times the difference in their levels."
					female_name=_ "female^leadership"
					id="leadership"
					name=_ "leadership"
					value="100"
					[affect_adjacent]
						adjacent="n,ne,se,s,sw,nw"
						[filter]
							level="0"
						[/filter]
					[/affect_adjacent]
				[/leadership]
				[leadership]
					affect_self="no"
					cumulative="no"
					id="leadership"
					value="75"
					[affect_adjacent]
						adjacent="n,ne,se,s,sw,nw"
						[filter]
							level="1"
						[/filter]
					[/affect_adjacent]
				[/leadership]
				[leadership]
					affect_self="no"
					cumulative="no"
					id="leadership"
					value="50"
					[affect_adjacent]
						adjacent="n,ne,se,s,sw,nw"
						[filter]
							level="2"
						[/filter]
					[/affect_adjacent]
				[/leadership]
				[leadership]
					affect_self="no"
					cumulative="no"
					id="leadership"
					value="25"
					[affect_adjacent]
						adjacent="n,ne,se,s,sw,nw"
						[filter]
							level="3"
						[/filter]
					[/affect_adjacent]
				[/leadership]
			[/abilities]
			[advancement]
				description=_ "Max HP bonus +3, Max XP +20%"
				id="amla_default"
				image="misc/icon-amla-tough.png"
				max_times="100"
				strict_amla="yes"
				[effect]
					apply_to="hitpoints"
					heal_full="yes"
					increase_total="3"
				[/effect]
				[effect]
					apply_to="max_experience"
					increase="20%"
				[/effect]
				[effect]
					apply_to="status"
					remove="poisoned"
				[/effect]
				[effect]
					apply_to="status"
					remove="slowed"
				[/effect]
			[/advancement]
			[portrait]
				image="portraits/humans/transparent/marshal.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/humans/transparent/marshal.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[variables]
			[/variables]
			[status]
				hidden="yes"
				stoned="on"
			[/status]
			[attack]
				damage="10"
#textdomain wesnoth-units
				description=_ "sword"
				icon="attacks/greatsword-human.png"
				name="sword"
				number="4"
				range="melee"
				type="blade"
			[/attack]
			[attack]
				damage="8"
				description=_ "crossbow"
				icon="attacks/crossbow-human.png"
				name="crossbow"
				number="3"
				range="ranged"
				type="pierce"
			[/attack]
			[modifications]
				[trait]
					id="remove_hp"
					[effect]
						apply_to="hitpoints"
						increase_total="-100%"
					[/effect]
					[effect]
						apply_to="movement"
						set="0"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			alignment="neutral"
			alpha="256"
			attacks_left="1"
			cost="48"
			description="This brave warrior, known as Rilhon among the Naga, heard tell of a fabulous treasure that had been lost in these watery caves- a spear whose head was said to have been fashioned from the tooth of Chak'kso Ney'yks, an Elder Basilisk slain long ago by the Elvish hero, Eloralduil. According to the legend, the weapon rested somewhere on the bottom of this very lake (Ruaskkolin Lake, named for a well-known Sea Serpent who made it his home). Having prepared himself for battle with the Serpent, Rilhon met with two rather large surprises. The first was the petrified form of Ruaskkolin the Serpent. The second was the very-much-alive Chak'kso Ney'yks, who was, oddly enough, in possession of all of his teeth.
(inscribed by Paterson)"
			die_sound="naga-die.ogg"
			experience="0"
			facing="se"
			flag_rgb="magenta"
			flying="no"
			gender="male"
			goto_x="0"
			goto_y="0"
			hitpoints="1"
			id="Naga Myrmidon-14"
			image="units/nagas/myrmidon.png"
			language_name=_ "Naga Myrmidon"
			level="3"
			max_attacks="1"
			max_experience="105"
			max_hitpoints="1"
			max_moves="0"
			movement="7"
			movement_type="naga"
			moves="0"
			name="Rilhon"
			profile="portraits/nagas/fighter.png"
			race="naga"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="3"
			type="Naga Myrmidon"
			undead_variation="swimmer"
			underlying_id="14"
			unrenamable="yes"
			upkeep="full"
			usage="fighter"
			x="20"
			y="12"
			zoc="yes"
			[defense]
				castle="50"
				cave="60"
				deep_water="50"
				flat="50"
				forest="60"
				frozen="80"
				fungus="60"
				hills="60"
				impassable="60"
				mountains="60"
				reef="30"
				sand="40"
				shallow_water="40"
				swamp_water="40"
				unwalkable="80"
				village="60"
			[/defense]
			[movement_costs]
				castle="2"
				cave="2"
				deep_water="1"
				flat="2"
				forest="3"
				frozen="2"
				fungus="2"
				hills="3"
				impassable="99"
				mountains="5"
				reef="2"
				sand="1"
				shallow_water="1"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="120"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[advancement]
#textdomain wesnoth
				description=_ "Max HP bonus +3, Max XP +20%"
				id="amla_default"
				image="misc/icon-amla-tough.png"
				max_times="100"
				strict_amla="yes"
				[effect]
					apply_to="hitpoints"
					heal_full="yes"
					increase_total="3"
				[/effect]
				[effect]
					apply_to="max_experience"
					increase="20%"
				[/effect]
				[effect]
					apply_to="status"
					remove="poisoned"
				[/effect]
				[effect]
					apply_to="status"
					remove="slowed"
				[/effect]
			[/advancement]
			[variables]
			[/variables]
			[status]
				hidden="yes"
				stoned="on"
			[/status]
			[attack]
				damage="9"
#textdomain wesnoth-units
				description=_ "sword"
				icon="attacks/sword-orcish.png"
				name="sword"
				number="5"
				range="melee"
				type="blade"
			[/attack]
			[modifications]
				[trait]
					id="remove_hp"
					[effect]
						apply_to="hitpoints"
						increase_total="-100%"
					[/effect]
					[effect]
						apply_to="movement"
						set="0"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
		[unit]
			alignment="lawful"
			alpha="256"
			attacks_left="1"
			cost="52"
			description="Through waves and rocky channels
blue and white
she pulled and pushed the tides
and taught the fishes how to speak to planets
silver green
with magic
running from her spirit into skins of kelp and shells of snails
a twisting of her tail and hands
she sent her songs to run on pin-tipped legs about the sands
and now
and now the strangest pause
for years and years
she hasn't moved her eyes

(inscribed by MJQ)"
			die_sound="mermaid-die.ogg"
			experience="0"
			facing="sw"
			flag_rgb="magenta"
			flying="no"
			gender="female"
			goto_x="0"
			goto_y="0"
			hitpoints="1"
			id="Mermaid Siren-15"
			image="units/merfolk/siren.png"
			language_name=_ "Mermaid Siren"
			level="3"
			max_attacks="1"
			max_experience="105"
			max_hitpoints="1"
			max_moves="0"
			movement="7"
			movement_type="swimmer"
			moves="0"
			profile="portraits/merfolk/initiate.png"
			race="merman"
			random_gender="no"
			random_traits="no"
			resting="yes"
			side="3"
			type="Mermaid Siren"
			undead_variation="swimmer"
			underlying_id="15"
			unrenamable="yes"
			upkeep="full"
			usage="mixed fighter"
			x="17"
			y="11"
			zoc="yes"
			[defense]
				castle="60"
				cave="80"
				deep_water="50"
				flat="70"
				forest="70"
				frozen="70"
				fungus="80"
				hills="70"
				impassable="80"
				mountains="80"
				reef="30"
				sand="70"
				shallow_water="40"
				swamp_water="40"
				unwalkable="80"
				village="60"
			[/defense]
			[movement_costs]
				castle="1"
				cave="3"
				deep_water="1"
				flat="2"
				forest="5"
				frozen="2"
				fungus="3"
				hills="5"
				impassable="99"
				mountains="99"
				reef="2"
				sand="2"
				shallow_water="1"
				swamp_water="1"
				unwalkable="99"
				village="1"
			[/movement_costs]
			[resistance]
				arcane="100"
				blade="100"
				cold="80"
				fire="100"
				impact="100"
				pierce="100"
			[/resistance]
			[advancement]
#textdomain wesnoth
				description=_ "Max HP bonus +3, Max XP +20%"
				id="amla_default"
				image="misc/icon-amla-tough.png"
				max_times="100"
				strict_amla="yes"
				[effect]
					apply_to="hitpoints"
					heal_full="yes"
					increase_total="3"
				[/effect]
				[effect]
					apply_to="max_experience"
					increase="20%"
				[/effect]
				[effect]
					apply_to="status"
					remove="poisoned"
				[/effect]
				[effect]
					apply_to="status"
					remove="slowed"
				[/effect]
			[/advancement]
			[portrait]
				image="portraits/merfolk/transparent/initiate.png"
				mirror="false"
				side="left"
				size="400"
			[/portrait]
			[portrait]
				image="portraits/merfolk/transparent/initiate.png"
				mirror="true"
				side="right"
				size="400"
			[/portrait]
			[variables]
			[/variables]
			[status]
				hidden="yes"
				stoned="on"
			[/status]
			[attack]
				damage="12"
#textdomain wesnoth-units
				description=_ "naia touch"
				icon="attacks/touch-faerie.png"
				name="naia touch"
				number="1"
				range="melee"
				type="impact"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[attack]
				damage="15"
#textdomain wesnoth-units
				description=_ "water spray"
				icon="attacks/waterspray.png"
				name="water spray"
				number="3"
				range="ranged"
				type="impact"
				[specials]
					[chance_to_hit]
						cumulative="no"
#textdomain wesnoth
						description=_ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
						id="magical"
						name=_ "magical"
						value="70"
					[/chance_to_hit]
				[/specials]
			[/attack]
			[modifications]
				[trait]
					id="remove_hp"
					[effect]
						apply_to="hitpoints"
						increase_total="-100%"
					[/effect]
					[effect]
						apply_to="movement"
						set="0"
					[/effect]
				[/trait]
			[/modifications]
		[/unit]
	[/side]
[/replay_start]
[statistics]
	mid_scenario="yes"
	[scenario]
		scenario="2p - Caves of the Basilisk"
		[team]
			[recruits]
			[/recruits]
			[recalls]
			[/recalls]
			[advances]
			[/advances]
			[deaths]
			[/deaths]
			[killed]
			[/killed]
			[attacks]
			[/attacks]
			[defends]
			[/defends]
			recruit_cost="0"
			recall_cost="0"
			damage_inflicted="0"
			damage_taken="0"
			expected_damage_inflicted="0"
			expected_damage_taken="0"
			turn_damage_inflicted="0"
			turn_damage_taken="0"
			turn_expected_damage_inflicted="0"
			turn_expected_damage_taken="0"
		[/team]
		[team]
			[recruits]
				Footpad="9"
				Thief="8"
			[/recruits]
			[recalls]
			[/recalls]
			[advances]
				Outlaw="1"
				Rogue="1"
			[/advances]
			[deaths]
				Footpad="4"
				Poacher="2"
				Thief="5"
			[/deaths]
			[killed]
				Dwarvish Guardsman="2"
				Footpad="1"
				Poacher="1"
				Rogue="2"
				Trapper="2"
			[/killed]
			[attacks]
				[sequence]
					s000="1"
					s01="1"
					s010="1"
					s10="1"
					s1000="1"
					s101="1"
					_num="30"
				[/sequence]
				[sequence]
					s00="3"
					s0000="1"
					s01="3"
					s1="1"
					s10="1"
					s11="1"
					s110="1"
					_num="40"
				[/sequence]
				[sequence]
					s1="1"
					_num="50"
				[/sequence]
				[sequence]
					s00="1"
					s01="2"
					s1="1"
					s101="3"
					s11="2"
					_num="60"
				[/sequence]
				[sequence]
					s01="3"
					s011="1"
					s10="2"
					s11="4"
					_num="70"
				[/sequence]
			[/attacks]
			[defends]
				[sequence]
					s="9"
					_num="0"
				[/sequence]
				[sequence]
					s00="5"
					s01="1"
					s1="1"
					s11="1"
					_num="30"
				[/sequence]
				[sequence]
					s="2"
					s00="4"
					s01="1"
					s10="1"
					s11="1"
					s110="1"
					_num="40"
				[/sequence]
				[sequence]
					s11="1"
					s110="1"
					_num="50"
				[/sequence]
				[sequence]
					s="2"
					s00="1"
					s01="3"
					s10="3"
					s11="2"
					_num="60"
				[/sequence]
				[sequence]
					s00="1"
					s011="2"
					s10="2"
					s11="5"
					s110="1"
					_num="70"
				[/sequence]
			[/defends]
			recruit_cost="230"
			recall_cost="0"
			damage_inflicted="448"
			damage_taken="509"
			expected_damage_inflicted="385888"
			expected_damage_taken="548855"
			turn_damage_inflicted="25"
			turn_damage_taken="6"
			turn_expected_damage_inflicted="14156"
			turn_expected_damage_taken="9058"
			save_id="Blackadder2"
		[/team]
		[team]
			[recruits]
				Dwarvish Guardsman="1"
			[/recruits]
			[recalls]
			[/recalls]
			[advances]
				Outlaw="1"
				Rogue="2"
				Trapper="2"
			[/advances]
			[deaths]
				Dwarvish Guardsman="2"
				Footpad="1"
				Poacher="1"
				Rogue="2"
				Trapper="2"
			[/deaths]
			[killed]
				Footpad="4"
				Poacher="2"
				Thief="5"
			[/killed]
			[attacks]
				[sequence]
					s000="3"
					s0000="1"
					s0001="2"
					s001="2"
					s0011="1"
					s01="1"
					s010="1"
					s0101="1"
					s1="1"
					s10="1"
					s100="1"
					s1000="1"
					_num="30"
				[/sequence]
				[sequence]
					s00="3"
					s000="2"
					s0000="2"
					s0001="1"
					s001="5"
					s01="3"
					s010="2"
					s011="1"
					s0110="1"
					s0111="1"
					s1="6"
					s100="1"
					s1001="1"
					s101="1"
					s1010="1"
					s1011="1"
					s11="2"
					s110="1"
					_num="40"
				[/sequence]
			[/attacks]
			[defends]
				[sequence]
					s="2"
					_num="0"
				[/sequence]
				[sequence]
					s="1"
					s0="1"
					s00="1"
					s0000="1"
					s01="1"
					s100="1"
					_num="30"
				[/sequence]
				[sequence]
					s="2"
					s0="9"
					s00="4"
					s0000="2"
					s001="3"
					s0010="2"
					s011="2"
					s1="1"
					s10="1"
					s11="2"
					s110="1"
					_num="40"
				[/sequence]
			[/defends]
			recruit_cost="19"
			recall_cost="0"
			damage_inflicted="509"
			damage_taken="448"
			expected_damage_inflicted="548855"
			expected_damage_taken="385888"
			turn_damage_inflicted="66"
			turn_damage_taken="55"
			turn_expected_damage_inflicted="58057"
			turn_expected_damage_taken="14148"
			save_id="Orange_Dude1"
		[/team]
		[team]
			[recruits]
			[/recruits]
			[recalls]
			[/recalls]
			[advances]
			[/advances]
			[deaths]
			[/deaths]
			[killed]
			[/killed]
			[attacks]
			[/attacks]
			[defends]
			[/defends]
			recruit_cost="0"
			recall_cost="0"
			damage_inflicted="0"
			damage_taken="0"
			expected_damage_inflicted="0"
			expected_damage_taken="0"
			turn_damage_inflicted="0"
			turn_damage_taken="0"
			turn_expected_damage_inflicted="0"
			turn_expected_damage_taken="0"
			save_id="ai3"
		[/team]
	[/scenario]
[/statistics]
