[scenario]
	id=The_Midlands
	#textdomain wesnoth-trow
	name= _ "The Midlands"
	map_data="{campaigns/The_Rise_Of_Wesnoth/maps/The_Midlands}"
	{TURNS 45 42 39}

	{campaigns/The_Rise_Of_Wesnoth/utils/trow-nohome.cfg}

	{DAWN}
	{MORNING}
	{AFTERNOON}
	{DUSK}
	{FIRST_WATCH}
	{SECOND_WATCH}

	next_scenario=The_Oldwood
	bonus=yes

	[music]
	name="gameplay02.ogg"
	[/music]

	{campaigns/The_Rise_Of_Wesnoth/utils/trow-deaths.cfg}

	[story]
		[part]
			background=story/the_green_isle.png
			show_title=yes
			{DOT 246 271}
			{DOT 256 281}
			{DOT 261 291}
			{DOT 256 298}
			{DOT 251 306}
			{DOT 251 316}
			{DOT 256 326}
			{DOT 256 336}
			{DOT 266 341}
			{DOT 261 348}
			{DOT 256 356}
			{CROSS 241 357}
		[/part]
	[/story]

	[side]
		type=Noble Commander
		description=Prince Haldric
		user_description= _ "Prince Haldric"
		unrenamable=yes
		side=1
		canrecruit=1
		controller=human
		team_name=Haldric
	[/side]

	[side]
		type=Orcish Warlord
		description=Tan-Vrodis
		user_description= _ "Tan-Vrodis"
		#This is the nearest enemy, make him softer.
		side=2
		canrecruit=1
		recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Goblin Spearman
		[ai]
			{NO_SCOUTS}
			recruitment_ignore_bad_movement=yes
			recruitment_pattern=scout,fighter,fighter,archer
			{ATTACK_DEPTH 3 4 5}
		[/ai]
		{GOLD 70 110 160}
		team_name=orcs
	[/side]

	[side]
		type=Orcish Warlord
		description=Tan-Bok
		user_description= _ "Tan-Bok"
		side=3
		canrecruit=1
		{GOLD 110 150 190}
		[ai]
			{NO_SCOUTS}
			recruitment_ignore_bad_movement=yes
			recruitment_pattern=scout,fighter,fighter,archer
			{ATTACK_DEPTH 3 4 5}
		[/ai]
		[ai]
			time_of_day=first_watch,second_watch
			aggression=0.75
			caution=0.0
			grouping=no
		[/ai]
#ifdef EASY
		recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Goblin Spearman
#endif

#ifdef NORMAL
		recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Spearman
#endif

#ifdef HARD
		recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Orcish Warrior, Goblin Spearman, Goblin Impaler
#endif
		team_name=orcs
	[/side]

	[side]
		type=Orcish Warlord
		description=Tan-Hogar
		user_description= _ "Tan-Hogar"
		side=4
		canrecruit=1
		{GOLD 110 150 190}
		[ai]
			{NO_SCOUTS}
			recruitment_ignore_bad_movement=yes
			recruitment_pattern=scout,fighter,fighter,archer
			{ATTACK_DEPTH 3 4 5}
		[/ai]
		[ai]
			time_of_day=first_watch,second_watch
			aggression=0.75
			caution=0.0
			grouping=no
		[/ai]
#ifdef EASY
		recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Goblin Spearman
#endif

#ifdef NORMAL
		recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Warrior, Goblin Spearman
#endif

#ifdef HARD
		recruit=Orcish Archer, Orcish Assassin, Orcish Grunt, Wolf Rider, Orcish Warrior, Orcish Crossbowman, Goblin Spearman, Goblin Impaler
#endif
		team_name=orcs
	[/side]

	[event]
		name=prestart
		{PLACE_IMAGE (items/signpost.png) 31 22}
		{PLACE_IMAGE (items/signpost.png) 18 15}

		{PLACE_IMAGE (items/fire.png) 38 34}
		{PLACE_IMAGE (items/fire.png) 8 28}
		{PLACE_IMAGE (items/fire.png) 12 5}
		{PLACE_IMAGE (items/fire.png) 5 3}

		[recall]
			description=Lady Outlaw
		[/recall]

		[recall]
			description=Burin the Lost
		[/recall]

		[objectives]
		side=1
			[objective]
				description= _ "Defeat all enemy leaders"
				condition=win
			[/objective]
			[objective]
				description= _ "Death of Prince Haldric"
				condition=lose
			[/objective]
			[objective]
				description= _ "Turns run out"
				condition=lose
			[/objective]
		[/objectives]
	[/event]

	[event]
		name=start
		{CLEAR_VARIABLE escape_choice}
		[message]
			speaker=narrator
			message= _ "Prince Haldric leads his refugee band into the Midlands and smoke is in the air."
		[/message]

		[message]
			description=Prince Haldric
			message= _ "It is as we suspected, the orcs have sacked the Midlands. This is not a civilized way to fight a war! Look there, there are still orcs about... To arms!"
		[/message]

		[message]
			description=Burin the Lost
			message= _ "All right! Charge!"
		[/message]

		[message]
			description=Lady Outlaw
			message= _ "Feel my wrath, you orcish scum!"
		[/message]

		[message]
			description=Tan-Vrodis
			image="portraits/James_Woo/orc-warlord.png"
			message= _ "HUMANS... I see humans!"
		[/message]

		[message]
			description=Tan-Bok
			image="portraits/James_Woo/orc-warlord2.png"
			message= _ "Ha, Hogar! You said we wouldn't see any action this far back from the front."
		[/message]

		[message]
			description=Tan-Hogar
			image="portraits/James_Woo/orc-warlord3.png"
			message= _ "Shut yer mouth! Let's just get 'em."
		[/message]

	[/event]

	[event]
		name=moveto
		[filter]
			side=1
			x=31
			y=22
		[/filter]

		[redraw]
		[/redraw]

		[message]
			speaker=narrator
			message= _ "SE - The Oldwood. Enter at Your Own Risk!"
		[/message]
		[allow_undo]
		[/allow_undo]
	[/event]

	[event]
		name=moveto
		[filter]
			side=1
			x=18
			y=15
		[/filter]

		[redraw]
		[/redraw]

		[message]
			speaker=narrator
			message= _ "SW - Southbay."
		[/message]
		[allow_undo]
		[/allow_undo]
	[/event]

	[event]
	name=attack
		[filter_second]
		#The Hill Orc
			description=Tan-Bok
		[/filter_second]

		[move_unit_fake]
			type=Goblin Knight
			x=10,10,11,11
			y=35,34,34,33
		[/move_unit_fake]

		{UNIT (Goblin Knight) (Grilg) ( _ "Grilg") 3 11 33}

		[message]
			description=Grilg
			message= _ "What? More humans here? Get them!"
		[/message]

		{UNIT (Wolf Rider) (Rider) ( _ "Rider") 3 10 33}
		{UNIT (Wolf Rider) (Rider) ( _ "Rider") 3 12 33}
#ifdef HARD
		{UNIT (Goblin Pillager) (Rider) ( _ "Rider") 3 11 34}
#endif
	[/event]

	[event]
	name=attack
		[filter_second]
		#The Forest Orc
			description=Tan-Hogar
		[/filter_second]

		[move_unit_fake]
			type=Orcish Slayer
			x=36,36,36
			y=35,34,33
		[/move_unit_fake]

		{UNIT (Orcish Slayer) (Vrogar) ( _ "Vrogar") 4 36 33}

		[message]
			description=Vrogar
			message= _ "How'd they get behind us? I hate to miss such tasty meat."
		[/message]

		{UNIT (Orcish Assassin) (Assassin) ( _ "Assassin") 4 35 34}
		{UNIT (Orcish Assassin) (Assassin) ( _ "Assassin") 4 37 34}
#ifdef HARD
		{UNIT (Orcish Crossbowman) (Crossbow) ( _ "Crossbow") 4 36 34}
#endif
	[/event]

	[event]
		name=die
		[filter]
			description=Tan-Bok
		[/filter]

		[filter_second]
			side=1
		[/filter_second]

		[message]
			description=Tan-Hogar
			message= _ "Better him than me! Reserves!"
		[/message]

		[gold]
			side=4
			amount=80
		[/gold]
	[/event]

	[event]
		name=die
		[filter]
			description=Tan-Hogar
		[/filter]

		[filter_second]
			side=1
		[/filter_second]

		[message]
			description=Tan-Bok
			message= _ "Holgar was a fool! Reserves!"
		[/message]

		[gold]
			side=3
			amount=80
		[/gold]
	[/event]

	[event]
	name=victory
		[sound]
		name=horse-canter.wav
		[/sound]

		[move_unit_fake]
			type=Knight
			x=40,39,38,37,36,35,34,33,32,31,30
			y=15,16,16,16,16,16,15,15,14,14,14
		[/move_unit_fake]

		[unit]
			side=1
			type=Knight
			description=Sir Ladoc
			user_description= _ "Sir Ladoc"
			profile="portraits/knight.png"
			unrenamable=yes
			x=30
			y=14
			[modifications]
				{TRAIT_LOYAL}
				{TRAIT_RESILIENT}
			[/modifications]
		[/unit]

		[message]
			description=Sir Ladoc
			message= _ "Hold there! You can not pass. You've already stumbled on the orcish rear guard. The main body of their forces is on the road to Southbay. It is an army of nightmarish size."
		[/message]

		[message]
			description=Prince Haldric
			message= _ "I'm Haldric, my father was King Eldaric IV in the lands northwest of here. Soldier, aren't you on the wrong side of the lines?"
		[/message]

		[message]
			description=Sir Ladoc
			message= _ "They overran my post. I got hit on the head pretty good. When I came to the orcish army had already passed my position."
		[/message]

		[message]
			description=Prince Haldric
			message= _ "Tell me, how fares Southbay?"
		[/message]

		[message]
			description=Sir Ladoc
			message= _ "Southbay won't fall without one hell of a fight, sir. They'll stand to the last! I only wish I was there!"
		[/message]

		[message]
			description=Sir Ladoc
			message= _ "Well, we can't go back, and the road ahead is blocked... I guess we'll have to risk it and go through the Oldwood forest, then make a break for Clearwater Port."
		[/message]

		[message]
			description=Burin the Lost
			message= _ "Oh great, now a forest. I should have stayed at home and took my chances with the orcs!"
		[/message]

		[message]
			description=Sir Ladoc
			message= _ "Sir, if you don't mind, I'll go with you."
		[/message]

		[message]
			description=Lady Outlaw
			message= _ "On we go..."
		[/message]
		[set_variable]
			name=last_done
			value="Midlands"
		[/set_variable]
	[/event]

	[event]
	name=time over
		[message]
			description=Prince Haldric
			message= _ "We have run out of time... We'll be trapped in the midlands when winter comes!"
		[/message]
	[/event]

[/scenario]
