<?xml version="1.0" standalone="no"?>

<unit>
	<parameters>
		<size value="1"/>
		<height value="2"/>
		<max-hp value="1000" regeneration="0"/>
		<max-ep value="0"/>
		<armor value="30"/>	
		<armor-type value="leather"/>				
		<sight value="10"/>
		<time value="60"/>	
		<multi-selection value="true"/>
		<max-unit-count value="4"/>
		<cellmap value="false"/>
		<levels>
			<level name="courageous" kills="3"/>
			<level name="tough" kills="7"/>
			<level name="honoured" kills="15"/>
			<level name="exalted" kills="25"/>
		</levels>
		<fields>
			<field value="land"/>
		</fields>	
		<properties/>
		<light enabled="false"/>
		<unit-requirements/>
		<upgrade-requirements>
			<upgrade name="honour"/>		
			<upgrade name="banners"/>
		</upgrade-requirements>
		<resource-requirements>
			<resource name="gold" amount="200"/>
			<resource name="wood" amount="100"/>			
			<resource name="food" amount="1"/>						
		</resource-requirements>
		<resources-stored/>
		<image path="images/banner_guard.png"/>
		<image-cancel path="../archer/images/order_cancel.png"/>
		<meeting-point value="false"/>
		<selection-sounds enabled="true">
			<sound path="$COMMONDATAPATH/sounds/guard_select1.wav"/>
			<sound path="$COMMONDATAPATH/sounds/guard_select2.wav"/>
			<sound path="$COMMONDATAPATH/sounds/guard_select3.wav"/>
			<sound path="$COMMONDATAPATH/sounds/guard_select4.wav"/>
			<sound path="$COMMONDATAPATH/sounds/guard_select5.wav"/>
		</selection-sounds>
		<command-sounds enabled="true">
			<sound path="$COMMONDATAPATH/sounds/guard_ack1.wav"/>
			<sound path="$COMMONDATAPATH/sounds/guard_ack2.wav"/>
			<sound path="$COMMONDATAPATH/sounds/guard_ack3.wav"/>
			<sound path="$COMMONDATAPATH/sounds/guard_ack4.wav"/>
			<sound path="$COMMONDATAPATH/sounds/guard_ack5.wav"/>
			<sound path="$COMMONDATAPATH/sounds/guard_ack6.wav"/>
			<sound path="$COMMONDATAPATH/sounds/guard_ack7.wav"/>
		</command-sounds>
	</parameters>

	<skills>
	
		<skill>
			<type value="stop"/>
			<name value="stop_skill"/>		
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="45"/>
			<animation path="models/bannerman_idle.g3d"/>
			<sound enabled="false"/>
			<attack-boost>
				<allow-multiple-boosts value="false" />
				<radius value="15"/>
				<target value="faction">
					<unit-type name="militia"/>					
					<unit-type name="swordsman"/>
					<unit-type name="spearman"/>
					<unit-type name="archer"/>
					<unit-type name="pikeman"/>						
					<unit-type name="man_at_arms"/>
					<unit-type name="scout"/>					
					<unit-type name="horseman"/>
					<unit-type name="horse_archer"/>
					<unit-type name="engineer"/>					
					<!--unit-type name="knight"/>
					<unit-type name="paladin"/>
					<unit-type name="champion"/-->					
				</target>
				<max-hp value="0" />
				<max-ep value="0"/>
				<sight value="0"/>
				<attack-strenght value="20"/>
				<attack-range value="0"/>
				<armor value="0"/>
				<move-speed value="0" />
				<production-speed value="0"/>
				<particles value="false"/>
					<!--affected-particle-file path="banner_particles.xml"/>
				</particles-->
			</attack-boost>
		</skill>
	
		<skill>
			<type value="stop"/>
			<name value="hold_stop_skill"/>		
			<ep-cost value="0"/>
			<speed value="1000"/>
			<anim-speed value="45"/>
			<animation path="models/bannerman_idle.g3d"/>
			<sound enabled="false"/>
			<attack-boost>
				<allow-multiple-boosts value="false" />
				<radius value="15"/>
				<target value="faction">
					<unit-type name="militia"/>				
					<unit-type name="swordsman"/>
					<unit-type name="spearman"/>
					<unit-type name="archer"/>
					<unit-type name="pikeman"/>						
					<unit-type name="man_at_arms"/>
					<unit-type name="crossbowman"/>
					<unit-type name="scout"/>					
					<unit-type name="horseman"/>
					<unit-type name="horse_archer"/>
					<unit-type name="engineer"/>					
					<!--unit-type name="knight"/>
					<unit-type name="paladin"/>
					<unit-type name="champion"/-->					
				</target>
				<max-hp value="0" />
				<max-ep value="0"/>
				<sight value="0"/>
				<attack-strenght value="20"/>
				<attack-range value="0"/>
				<armor value="0"/>
				<move-speed value="0" />
				<production-speed value="0"/>
				<particles value="false"/>
					<!--affected-particle-file path="banner_particles.xml"/>
				</particles-->
			</attack-boost>
		</skill>

		<skill>
			<type value="move"/>
			<name value="move_skill"/>		
			<ep-cost value="0"/>
			<speed value="200"/>
			<anim-speed value="80"/>
			<animation path="models/bannerman_walking.g3d"/>
			<sound enabled="false"/>	
			<attack-boost>
				<allow-multiple-boosts value="false" />
				<radius value="15"/>
				<target value="faction">
					<unit-type name="militia"/>					
					<unit-type name="swordsman"/>
					<unit-type name="spearman"/>
					<unit-type name="archer"/>
					<unit-type name="pikeman"/>						
					<unit-type name="man_at_arms"/>
					<unit-type name="crossbowman"/>	
					<unit-type name="scout"/>					
					<unit-type name="horseman"/>
					<unit-type name="horse_archer"/>
					<unit-type name="engineer"/>					
					<!--unit-type name="knight"/>
					<unit-type name="paladin"/>
					<unit-type name="champion"/-->					
				</target>
				<max-hp value="0" />
				<max-ep value="0"/>
				<sight value="0"/>
				<attack-strenght value="20"/>
				<attack-range value="0"/>
				<armor value="0"/>
				<move-speed value="0" />
				<production-speed value="0"/>
				<particles value="false"/>
					<!--affected-particle-file path="banner_particles.xml"/>
				</particles-->
			</attack-boost>
		</skill>

		<skill>
			<type value="move"/>
			<name value="charge_skill"/>		
			<ep-cost value="0"/>
			<speed value="200"/>
			<anim-speed value="125"/>
			<animation path="models/bannerman_walking.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/yell1.wav"/>			
				<sound-file path="$COMMONDATAPATH/sounds/yell2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/yell3.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/yell4.wav"/>				
			</sound>
			<attack-boost>
				<allow-multiple-boosts value="false" />
				<radius value="15"/>
				<target value="faction">
					<unit-type name="militia"/>					
					<unit-type name="swordsman"/>
					<unit-type name="spearman"/>
					<unit-type name="archer"/>
					<unit-type name="pikeman"/>						
					<unit-type name="man_at_arms"/>
					<unit-type name="crossbowman"/>	
					<unit-type name="scout"/>					
					<unit-type name="horseman"/>
					<unit-type name="horse_archer"/>
					<unit-type name="engineer"/>					
					<!--unit-type name="knight"/>
					<unit-type name="paladin"/>
					<unit-type name="champion"/-->					
				</target>
				<max-hp value="0" />
				<max-ep value="0"/>
				<sight value="0"/>
				<attack-strenght value="20"/>
				<attack-range value="0"/>
				<armor value="0"/>
				<move-speed value="0" />
				<production-speed value="0"/>
				<particles value="false"/>
					<!--affected-particle-file path="banner_particles.xml"/>
				</particles-->
			</attack-boost>
		</skill>

		<skill>
			<type value="attack"/>
			<name value="stay_behind"/>		
			<ep-cost value="0"/>
			<speed value="100"/>
			<anim-speed value="80"/>
			<animation path="models/bannerman_idle.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/yell1.wav"/>			
				<sound-file path="$COMMONDATAPATH/sounds/yell2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/yell3.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/yell4.wav"/>				
			</sound>				
			<attack-strenght value="0"/>
			<attack-var value="0"/>
			<attack-range value="8"/>
			<attack-type value="none"/>
			<attack-fields>
				<field value="land"/>
			</attack-fields>
			<attack-start-time value="0"/>
			<projectile value="false"/>
			<splash value="false"/>
			<attack-boost>
				<allow-multiple-boosts value="false" />
				<radius value="15"/>
				<target value="faction">
					<unit-type name="militia"/>					
					<unit-type name="swordsman"/>
					<unit-type name="spearman"/>
					<unit-type name="archer"/>
					<unit-type name="pikeman"/>					
					<unit-type name="man_at_arms"/>
					<unit-type name="crossbowman"/>	
					<unit-type name="scout"/>					
					<unit-type name="horseman"/>
					<unit-type name="horse_archer"/>
					<unit-type name="engineer"/>					
					<!--unit-type name="knight"/>
					<unit-type name="paladin"/>
					<unit-type name="champion"/-->					
				</target>
				<max-hp value="0" />
				<max-ep value="0"/>
				<sight value="0"/>
				<attack-strenght value="20"/>
				<attack-range value="0"/>
				<armor value="0"/>
				<move-speed value="0" />
				<production-speed value="0"/>
				<particles value="false"/>
					<!--affected-particle-file path="banner_particles.xml"/>
				</particles-->
			</attack-boost>
		</skill>
	
		<skill>
			<type value="attack"/>
			<name value="attack_skill"/>		
			<ep-cost value="0"/>
			<speed value="100"/>
			<anim-speed value="80"/>
			<animation path="models/bannerman_attack.g3d"/>
			<sound enabled="true" start-time="0.47">
				<sound-file path="$COMMONDATAPATH/sounds/guard_attack1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/guard_attack2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/guard_attack3.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/guard_attack4.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/guard_attack5.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/guard_attack6.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/guard_attack7.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/guard_attack8.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/guard_attack9.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/guard_attack10.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/guard_attack11.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/guard_attack12.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/guard_attack13.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/guard_attack14.wav"/>
			</sound> 
			<attack-strenght value="110"/>
			<attack-var value="50"/>
			<attack-range value="1"/>
			<attack-type value="slashing"/>
			<attack-fields>
				<field value="land"/>
			</attack-fields>
			<attack-start-time value="0"/>
			<projectile value="false"/>
			<splash value="false"/>
			<attack-boost>
				<allow-multiple-boosts value="false" />
				<radius value="15"/>
				<target value="faction">
					<unit-type name="militia"/>					
					<unit-type name="swordsman"/>
					<unit-type name="spearman"/>
					<unit-type name="archer"/>
					<unit-type name="pikeman"/>						
					<unit-type name="man_at_arms"/>
					<unit-type name="crossbowman"/>	
					<unit-type name="scout"/>					
					<unit-type name="horseman"/>
					<unit-type name="horse_archer"/>
					<unit-type name="engineer"/>					
					<!--unit-type name="knight"/>
					<unit-type name="paladin"/>
					<unit-type name="champion"/-->					
				</target>
				<max-hp value="0" />
				<max-ep value="0"/>
				<sight value="0"/>
				<attack-strenght value="20"/>
				<attack-range value="0"/>
				<armor value="0"/>
				<move-speed value="0" />
				<production-speed value="0"/>
				<particles value="false"/>
					<!--affected-particle-file path="banner_particles.xml"/>
				</particles-->
			</attack-boost>
		</skill>

		<skill>
			<type value="die"/>
			<name value="die_skill"/>		
			<ep-cost value="0"/>
			<speed value="60"/>
			<anim-speed value="60"/>
			<animation path="models/bannerman_dying.g3d"/>
			<sound enabled="true" start-time="0">
				<sound-file path="$COMMONDATAPATH/sounds/guard_die1.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/guard_die2.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/guard_die3.wav"/>
				<sound-file path="$COMMONDATAPATH/sounds/guard_die4.wav"/>
			</sound>			
			<fade value="false"/>
		</skill>


	</skills>
	
	<commands>
		
		<command>
			<type value="stop"/>
			<name value="stop"/>
			<image path="../archer/images/order_halt.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<stop-skill value="stop_skill"/>
		</command>

		<command>
			<type value="move"/>
			<name value="move"/>
			<image path="../archer/images/order_move.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="move_skill"/>
		</command>

		<command>
			<type value="attack"/>
			<name value="stay_behind"/>
			<image path="images/banner_icon.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="charge_skill"/>
			<attack-skill value="stay_behind"/>
		</command>

		<command>
			<type value="attack"/>
			<name value="attack"/>
			<image path="images/banner_guard_attack.png"/>
			<unit-requirements/>
			<upgrade-requirements/>
			<move-skill value="charge_skill"/>
			<attack-skill value="attack_skill"/>
		</command>

		<command>
			<type value="attack_stopped"/>
			<name value="hold_position"/>
			<image path="../archer/images/order_hold.png"/>
			<unit-requirements/>
			<upgrade-requirements>
				<upgrade name="training_field"/>
			</upgrade-requirements>
			<stop-skill value="stop_skill"/>
			<attack-skill value="attack_skill"/>
		</command>	

	</commands>
</unit>
