#textdomain wesnoth-nr
[scenario]
	id=clearing_the_mines
	name= _ "Clearing the Mines"
	{SCENARIO_MUSIC "battle.ogg"}
	

	map_data="{campaigns/Northern_Rebirth/maps/clearing_the_mines.map}"

	{TURNS4 80 70 60 50}

	{UNDERGROUND}

	next_scenario=pursuit 
	{./utils/herodeaths.cfg}
	

		[side]
		type=Peasant
		description=Tallin
		canrecruit=1
		side=1
		controller=human
		{GOLD4 1000 600 400 300}
		recruit=Peasant,Woodsman,Thug,Poacher,Dwarvish Fighter,Dwarvish Thunderer,Footpad
		team_name=mob 
		[/side]

		[side]
		type=Ancient Lich
		description=Malifor
		profile=portraits/Malifor.jpg
		canrecruit=1
		side=2
		{GOLD4 100 200 300 400}
		recruit=Dark Adept,Walking Corpse,Blood Bat,Skeleton,Skeleton Archer,Ghost
		team_name=undead
		[/side]

		[side]
		type=Draug
		description=Thorin
		canrecruit=1
		side=3
		{GOLD4 150 200 250 300}
		recruit=Walking Corpse,Skeleton,Skeleton Archer
		team_name=undead
		[/side]

		[side]
		type=Draug
		description=Herlin
		canrecruit=1
		side=4
		{GOLD4 150 200 250 300}
		recruit=Walking Corpse,Skeleton,Skeleton Archer
		team_name=undead
		[/side]

		[side]
		type=Draug
		description=Fervin
		canrecruit=1
		side=5
		{GOLD4 150 200 250 300}
		recruit=Walking Corpse,Skeleton,Skeleton Archer
		team_name=undead
		[/side]

		[side]
		type=Draug
		description=Hellian
		canrecruit=1
		side=6
		{GOLD4 150 200 250 300}
		recruit=Walking Corpse,Skeleton,Skeleton Archer
		team_name=undead
		[/side]	

		[event]
		name=prestart

			[hide_unit]
				x=33
				y=6
			[/hide_unit]

			{SUPPORTER}
			[recall]
			role=Supporter
			[/recall]

			[role]
			type=Dwarvish Fighter
			role=man1
			[/role]
			[recall]
			role=man1
			[/recall]

			[role]
			type=Dwarvish Thunderer
			role=man2
			[/role]

			[recall]
			role=man2
			[/recall]			

			[recall]
			description=Camerin
			[/recall]
			
			[recall]
			description=Hamel
			[/recall]


	[unit]
	type=Skeleton
	x=11
	y=24
	side=3
	ai_special=guardian
	[/unit]
	
	[unit]
	type=Skeleton
	ai_special=guardian
	x=11
	y=22
	side=3
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=16
	y=18
	side=3
	[/unit]

	[unit]
	type=Skeleton Archer
	ai_special=guardian
	x=15
	y=19
	side=3
	[/unit]	

	[unit]
	type=Skeleton
	ai_special=guardian
	x=8
	y=17
	side=3
	[/unit]
	
	[unit]
	type=Skeleton
	ai_special=guardian
	x=5
	y=18
	side=3
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=8
	y=13
	side=6
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=9
	y=14
	side=6
	[/unit]

	[unit]
	type=Skeleton Archer
	ai_special=guardian
	x=9
	y=13
	side=6
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=10
	y=9
	side=6
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=12
	y=8
	side=6
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=18
	y=7
	side=6
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=18
	y=9
	side=6
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=24
	y=7
	side=6
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=24
	y=9
	side=6
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=14
	y=19
	side=3
	[/unit]

	[unit]
	type=Skeleton Archer
	ai_special=guardian
	x=29
	y=7
	side=2
	[/unit]

	[unit]
	type=Skeleton Archer
	ai_special=guardian
	x=29
	y=10
	side=2
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=28
	y=7
	side=2
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=28
	y=9
	side=2
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=28
	y=11
	side=2
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=27
	y=11
	side=2
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=33
	y=10
	side=2
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=28
	y=17
	side=5
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=29
	y=21
	side=5
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=32
	y=14
	side=5
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=35
	y=22
	side=5
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=37
	y=20
	side=5
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=35
	y=22
	side=5
	[/unit]
	
	[unit]
	type=Skeleton
	ai_special=guardian
	x=37
	y=24
	side=5
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=37
	y=25
	side=5
	[/unit]

	[unit]
	type=Skeleton Archer
	ai_special=guardian
	x=38
	y=24
	side=5
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=33
	y=27
	side=4
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=35
	y=29
	side=4
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=28
	y=29
	side=4
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=30
	y=31
	side=4
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=32
	y=32
	side=4
	[/unit]

	[unit]
	type=Skeleton Archer
	ai_special=guardian
	x=33
	y=32
	side=4
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=29
	y=34
	side=4
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=29
	y=35
	side=4
	[/unit]

	[unit]
	type=Skeleton Archer
	ai_special=guardian
	x=30
	y=34
	side=4
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=20
	y=32
	side=4
	[/unit]

	[unit]
	type=Skeleton Archer
	ai_special=guardian
	x=21
	y=32
	side=4
	[/unit]	

	[unit]
	type=Skeleton Archer
	ai_special=guardian
	x=19
	y=32
	side=4
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=24
	y=24
	side=4
	[/unit]

	[unit]
	type=Skeleton
	ai_special=guardian
	x=26
	y=25
	side=4
	[/unit]
	[/event]

	[event]
	name=start

			[message]
			speaker=narrator
			message= _ "When the party finally reached the mines they were not disappointed."
			[/message]

			[message]
			description=Hamel
			message= _ "Behold!  The Dwarven Mines."
			[/message]
			
			[message]
			description=Hamel
			message= _ "Look at yon canal. Dwarves built it to transport mined metals deeper into Knalga. And d'ye ken those two rooms, one to the norr-west and the other to the south-east?  Metal was stored there until the time came to ship it out." 
			[/message]

			[message]
			role=Supporter
			
			message= _ "Grim gods of darkness! The whole place is swarming with undead! They have raised corpses to do their work."
			[/message]

			[message]
			description=Tallin
			message= _ "And they seem to have good security, too. Look, most of the fortifications are repaired and they have those nasty skeletons everywhere."
			[/message]
			

			[message]
			role=Supporter
			
			message= _ "Fortunately, this entrance seems to be in disrepair. It doesn't look like they have noticed us yet."
			[/message]

			[message]
			description=Thorin
			message= _ "WHO GOES THERE?"
			[/message]

			[message]
			role=Supporter
			
			message= _ "Oops, I spoke too soon."
			[/message]

			[message]
			description=Hamel
			message= _ " *wince* You can turn the volume down, pal."
			[/message]

			[message]
			message= _ "Maybe he needs a fireball..."
			[/message]

			[message]
			description=Thorin
			message= _ "YOU DO NOT ANSWER. ALERT THE MASTER!"   
			[/message]

			[move_unit_fake]
			type=Ancient Lich			
			x=40,39,38,37,36,35,34,33,33
			y=1,2,2,3,3,4,4,5,6
			[/move_unit_fake]

			[unhide_unit]
			description=Malifor
			[/unhide_unit]

			[message]
			description=Malifor
			message= _ "Who goes there? Ahhh, more slaves, I see."
			[/message]

			[message]
			description=Tallin
			message= _ "Others have made that mistake before. Who are you?"
			[/message]

			[message]
			description=Malifor
			message= _ "Who am I? *CACKLES WILDLY* I am Malifor the Great, the master of death! These tunnels, haunted by the ghosts of the dead dwarves of Knalga, are the domain of my power."
			[/message]

			[message]
			description=Hamel
			message= _ "You dared disturb the rest of those brave dwarves? You shall pay in blood!"
			[/message]

			[message]
			description=Malifor
			message= _ "HAHAHAHA! Your petty temper tantrums are most amusing, you puny dwarf. Soon I will finish the slaughter that the orcs have begun so promisingly, and Knalga will be all mine! From there I will sweep the whole north of all living creatures, and then swoop down upon Wesnoth!"
			[/message]

			[message]
			description=Hamel
			message= _ "Quit your ranting, you wretched bag of bones! Prepare to return to the dust!"
			[/message]

			[message]
			description=Malifor
			message= _ "HAHAHAHAHAHA! Such vast threats from one so small? HAHAHAHA!"
			[/message]
	
			[message]
			description=Malifor
			message= _ "But my my, what do we have here - Tallin."
			[/message]

			[message]
			role=Supporter
			
			message= _ "He knows your name, Tallin. I don't like the looks of this."
			[/message]

			[message]
			description=Malifor
			message= _ "Oh yes, I know you, Tallin. I have been watching you for a long time. You are a perfect candidate to become one of my immortal generals."
			[/message]

			[message]
			description=Tallin
			message= _ "....!"
			[/message]

			[message]
			description=Malifor
			message= _ "Look around you Tallin, see all the power, see all of the wealth, the glory, the pleasure that the realm of death has to offer. Think of the great empire of Knalga; it can be yours. Come share it with me!"
			[/message]

			[message]
			role=Supporter
			
			message= _ "Tallin, are you OK?!"
			[/message]


			[message]
			description=Malifor
			message= _ "It's very easy, Tallin, see that little vermin by your side? Take out your knife......  cut his throat .......feel his hot blood pump over your hands..... sacrifice him to death!"
			
			

			[option]
			message= _ "......die.... you..... little.....dwarf.....vermin!"
				[command]
					[message]
					role=Supporter
					
					message= _ "Tallin! No!"
					[/message]

					[message]
					description=Hamel
					message= _ "Tallin, what are you doing?"
					[/message]

					[message]
					description=Tallin
					message= _ ".....Death!..... Blood!...."
					[/message]

					{MODIFY_UNIT description=Tallin profile portraits/Tallin-Evil.jpg}

					[sound]
					name=dagger-swish.wav
					[/sound]

					[sound]
					name=groan-strong.wav
					[/sound]

					[message]
					description=Hamel
					message= _ "Ahhh! Treacherous human! Kill him, men!"
					[/message]

					[message]
					description=Malifor
					message= _ "HAHAHAHAHAHAHA!"
					[/message]

					[sound]
					name=fire.wav
					[/sound]
					[sound]
					name=ugg.wav
					[/sound]	
							

					[colour_adjust]
					red=100
					green=100
					blue=100
					[/colour_adjust]


					[delay]
					time=10
					[/delay]

					[colour_adjust]
					red=0
					green=0
					blue=0
					[/colour_adjust]

					[teleport]
					[filter]
					description=Tallin
					[/filter]
					x=34
					y=6
					[/teleport]

					[message]
					description=Hamel
					message= _ "What the! Where did he go?"
					[/message]

					[message]
					description=Malifor
					message= _ "Right here with me, fools! He is mine now."
					[/message]

					[disallow_recruit]
					side=1
					type=Dwarvish Fighter,Dwarvish Thunderer,Peasant,Thug,Poacher,Woodsman 
					[/disallow_recruit]

					[store_unit]
					[filter]
					role=Supporter
					[/filter]
					variable=betrayed_friend
					[/store_unit]

					[endlevel]
					result=victory
					bonus=no
					next_scenario=compelled
					[/endlevel]
				[/command]
			[/option]

			[option]
			message= _ " *Shakes head* I reject your evil. Attack, men! Let us rid the good green world of this rotting filth!"
				[command]
					[message]
					description=Hamel
					message= _ "Aye! That's the way of it, lad! For the murdered dwarves of Knalga! Attack!"
					[/message]

					[message]
					description=Malifor
					message= _ "You fool! You will pay for your folly with your life."
					[/message]

					[message]
					description=Tallin
					message= _ "Yeah, right, buddy."
					[/message]
				[/command]
			[/option]
		[/message]

	[objectives]
		side=1
			[objective]
				description= _ "Clear the Mines"
				condition=win
			[/objective]
	
			[objective]
				description= _ "Death of Tallin"
				condition=lose
			[/objective]
			[objective]
				description= _ "Death of Hamel"
				condition=lose
			[/objective]
			[objective]
				description= _ "Turns Run Out"
				condition=lose
			[/objective]

		[/objectives]
			
	[/event]

	
	[event]
	name=die
		[filter]
		description=Hamel
		[/filter]


		[message]
		description=Tallin
		message= _ "No! Without the dwarvish weapons we have no hope!"
		[/message]

		[endlevel]
		result=defeat
		[/endlevel]

	[/event]

	[event]
	name=die
		[filter]
		description=Malifor
		[/filter]

		[message]
		description=Malifor
		message= _ "HAHAHAHA, you puny weaklings think you can destroy me? FOOLS! You will all soon be serving me!"
		[/message]

	{FLASH}

		[message]
		speaker=second_unit
		message= _ "Oh no, he just.... disappeared."
		[/message]
	
		[message]
		description=Tallin
		message= _ "It is well! We have finally secured the mines. But what should we do about that foul lich?  He is a menace to all that lives, and must be ended."
		[/message]

		[message]
		description=Hamel
		message= _ "Aye! We'll have to lay both his skeletons and himself to final rest before these caves will be fit for dwarvenkind again."
		[/message]

		[message]
		description=Tallin
		message= _ "But I'm sore vexed.  We need better weapons, Luck and spirit can carry us only so far."
		[/message]

		[message]
		description=Hamel
		message= _ "Aye.  We must do both.  I'm thinking it might be best if I muster my folk to start on the weapon-making while you and your followers pursue yon lich.  By the time you've laid him to final rest and return here, we'll ha' made a good start on the work."
		[/message]

		[message]
		description=Tallin
		message= _ "So it shall be."
		[/message]

		[role]
		type=Dwarvish Dragonguard,Dwarvish Thunderguard,Dwarvish Steelclad,Dwarvish Fighter,Dwarvish Thunderer
		role=follower  
		[/role]

		[message]
		role=follower
		message= _ "With all respect, Lord Hamel, some o' us would like to fare forth with Tallin.  He's lucky, he is - or he makes his own luck."
		[/message]

		[message]
		description=Hamel
		message= _ "And so it shall be. You've my leave and welcome. Try to keep the lad safe..."
		[/message]

		[message]
		role=follower
		message= _ "Thank you, Lord Hamel."
		[/message]

		[kill]
		description=Hamel
		[/kill]

		[disallow_recruit]
			side=1
			type=Dwarvish Fighter,Dwarvish Thunderer
		[/disallow_recruit]
	[/event]

	
	
  		

[/scenario]
