[scenario]
	id=22_Return_to_Wesnoth
	#textdomain wesnoth-httt
	name= _ "Return to Wesnoth"
	map_data="{campaigns/Heir_To_The_Throne/maps/22_Return_to_Wesnoth.map}"
	{SCENARIO_MUSIC "knolls.ogg"}
	{TURNS 31 28 25}

	next_scenario=23_Test_of_the_Clans
	bonus=yes

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

	[event]
	name=prestart
		[objectives]
		side=1
			[objective]
				description= _ "Defeat all enemy leaders"
				condition=win
			[/objective]
			[objective]
				description= _ "Death of Konrad"
				condition=lose
			[/objective]
			[objective]
				description= _ "Death of Delfador"
				condition=lose
			[/objective]
			[objective]
				description= _ "Death of Li'sar"
				condition=lose
			[/objective]
			[objective]
				description= _ "Death of Kalenz"
				condition=lose
			[/objective]
		[/objectives]
	[/event]

{campaigns/Heir_To_The_Throne/utils/deaths.cfg}

	[story]
		[part]
		music=elf-land.ogg
		story= _ "After many days enjoying the strange food and fine linen of his hosts, restlessness overtook Konrad. The urgency nagged at him as he donned a new tunic and fastened newly-oiled leather straps."
		background="maps/wesnoth-httt.jpg"
		show_title=no
		[/part]
		[part]
		story= _ "He strode the halls of the elven citadel, visiting and encouraging his soldiers. Many were elves about to leave behind the comfort and peace of their capital to make war on a vast human army - his war. The weight of that thought bore on him."
		background="maps/wesnoth-httt.jpg"
		show_title=no
		[/part]
		[part]
		music=northerners.ogg
		story= _ "Konrad stood on the rampart staring out towards the horizon as his men bustled below. He suddenly realized why he was uneasy: he had been staring at thin streams of black smoke, merging into the clouds far in the distance. He shouted orders to depart and was ardently obeyed."
		background="maps/wesnoth-httt.jpg"
		show_title=no
		[/part]
		[part]
		story= _ "Kalenz's champion courtiers escorted Konrad and Delfador through their forest, a near-invincible vanguard. War had spread to the Northlands, but by taking long-deserted trails through the rugged eastern hills, it failed to find the band of rebels. The high craggy peaks of the mountains of the Dragons looked down on them in deserted desolation."
		background="maps/wesnoth-httt.jpg"
		show_title=no
		[/part]
		[part]
		story= _ "Konrad's small band of elves had grown to a massive army. The occasional hermit mage knew better than to interfere with its progress, and soon the plains of Northeastern Wesnoth lay before them."
		background="maps/wesnoth-httt.jpg"
		show_title=no
		[/part]
		[part]
		story= _ "After spending the greater part of a year in remote, dangerous wastes, Konrad's heart leapt at the thought this journey was almost over. Though the greatest danger lay ahead, he knew he was finally returning home."
		background="maps/wesnoth-httt.jpg"
		show_title=no
		[/part]
	[/story]

	{BIGMAP_RETURN_TO_WESNOTH}

	[side]
	type=Commander
	description=Konrad
	user_description= _ "Konrad"
	unrenamable=yes
	side=1
	canrecruit=1
	controller=human
	team_name=good
	gold=500
	[/side]

	[side]
	type=General
	description=Josephus
	user_description= _ "Josephus"
	side=2
	canrecruit=1
	controller=ai
	recruit=Royal Guard
		[ai]
		recruitment_pattern=fighter
		{ATTACK_DEPTH 5 5 6}
		[/ai]
	{GOLD 100 140 180}
	team_name=evil
	[/side]

	[side]
	type=Orcish Warlord
	description=Dwar-Ni
	user_description= _ "Dwar-Ni"
	side=3
	canrecruit=1
	controller=ai
	recruit=Goblin Pillager,Goblin Knight,Orcish Warrior,Orcish Crossbowman
	{GOLD 110 150 190}
		[ai]
		{ATTACK_DEPTH 5 5 6}
		[/ai]
	team_name=evil
	[/side]

	[side]
	type=General
	description=Malatus
	user_description= _ "Malatus"
	side=4
	canrecruit=1
	controller=ai
	recruit=Royal Guard,Pikeman,Master Bowman,Shock Trooper,Duelist
	{GOLD 100 160 200}
		[ai]
		{ATTACK_DEPTH 5 5 6}
		[/ai]
	team_name=evil
	[/side]

	[event]
	name=start
		[recall]
		description=Delfador
		[/recall]
		[recall]
		description=Kalenz
		[/recall]
		[recall]
		description=Li'sar
		[/recall]
		[message]
		description=Malatus
		message= _ "Halt! Who goes there?"
		[/message]
		[message]
		description=Dwar-Ni
		message= _ "Look! It is the traitor Li'sar, with the old mage and the filthy elven lord. Quickly, capture them! The Queen wishes to make them her prisoners."
		[/message]
		[message]
		description=Li'sar
		message= _ "What? Me, a traitor? It is the Queen who is a traitor, for not obeying the wishes of King Garard II. We have the Scepter of Fire, so let us in!"
		[/message]
		[message]
		description=Malatus
		message= _ "You leave us no choice but to kill you."
		[/message]
	[/event]

	#bad things happen when first enemy leader dies
	[event]
	name=die
		[filter]
		description=Josephus
		[/filter]
		[message]
		description=Malatus
		message= _ "These intruders are stronger than we expected. Call in the reinforcements!"
		[/message]

		{UNIT (Halbardier) (Dacayan) ( _ "Dacayan") 4 33 37}
		{UNIT (Halbardier) (Ceomyr) ( _ "Ceomyr") 4 32 37}
		{UNIT (Halbardier) (Gwellyn) ( _ "Gwellyn") 4 34 37}

		#a little attempt at comic relief
		[message]
		description=Dacayan
		message= _ "The Queen has sent us to aid you in capturing these rebels."
		[/message]
		[message]
		description=Malatus
		message= _ "We have changed the plan. Now we are killing them."
		[/message]
	[/event]

	[event]
	name=turn 18
		[message]
			description=Delfador
			message= _ "We must make haste! Far greater challenges lie before us, by tarrying here we're diminishing our resources."
		[/message]
	[/event]

[/scenario]
