#textdomain wesnoth-nr
[scenario]
	id=protecting_the_master
	name= _ "Protecting the Master"
	{UNDERGROUND}
	turns=21
	next_scenario=lost

	{PLACE_IMAGE scenery/dwarven-doors-closed.png 13 4}
	{PLACE_IMAGE scenery/dwarven-doors-closed.png 13 5}
	{PLACE_IMAGE scenery/dwarven-doors-closed.png 14 3}
	{PLACE_IMAGE scenery/dwarven-doors-closed.png 14 4}
	{PLACE_IMAGE scenery/dwarven-doors-closed.png 20 4}


	[story]

	[part]
	story= _ "As Tallin sat staring blankly at the body of his former friend - loathing and hating what he had become - he received an urgent summons from his Master."
	[/part]

	[part]
	story= _ "The attack Tallin had been sent to thwart had been a decoy. While Tallin was away, Tallin's former friends had attacked Malifor's study with overwhelming force."
	[/part]

	[part]
	story= _ "Although Tallin was glad in his heart to see Malifor in such distress, the sorcerous geas on his mind compelled him to go to his Master's aid. When he got there, he found that all the outer defenses had been smashed and Malifor had bolted himself up in his study. Bound by the will of their Master, Tallin and his minions took up positions outside Malifor's study door."
	[/part]
	[/story]

	map_data="{campaigns/Northern_Rebirth/maps/protecting_the_master.map}"
	
	[event]
		name=prestart
		[objectives]
		side=1
			[objective]
			condition=win
			description=_ "Resist Till the End of Turns"
			[/objective]
			[objective]
			condition=lose
			description=_ "Death of Tallin"
			[/objective]
			[objective]
			condition=lose
			description=_ "Turns run out"
			[/objective]
		[/objectives]

	[/event]

	[side]
		type=Peasant
		description=Tallin
		canrecruit=1
		side=1
		controller=human
		gold=100
		recruit=Walking Corpse,Skeleton,Skeleton Archer
		team_name=mob
		[village]
		x=15
		y=2
		[/village]
		[village]
		x=17
		y=2
		[/village]
		[village]
		x=19
		y=2
		[/village]
		[village]
		x=15
		y=7
		[/village]
		[village]
		x=17
		y=8
		[/village]
		[village]
		x=19
		y=9
		[/village]
		[village]
		x=19
		y=9
		[/village]
		[village]
		x=4
		y=2
		[/village]
		[village]
		x=5
		y=2
		[/village]
		[village]
		x=11
		y=2
		[/village]
		[village]
		x=12
		y=2
		[/village]
	[/side]

	[side]
		type=Ancient Lich
		description=Malifor
		profile=portraits/Malifor.jpg
		canrecruit=1
		side=2
		team_name=mob
		gold=0
		income=-2
	[/side]

	[side]
		type=Great Mage
		description=Camerin
		canrecruit=1
		side=3
		{GOLD4 700 800 900 1000}
		recruit=Thug,Trapper,Peasant,Dwarvish Steelclad,Dwarvish Fighter,Dwarvish Thunderer,Dwarvish Thunderguard,Dwarvish Guardsman,Dwarvish Stalwart,Poacher,Footpad,Outlaw
		[village]
		x=5
		y=33
		[/village]

		[village]
		x=8
		y=31
		[/village]

		[village]
		x=6
		y=35
		[/village]

		[village]
		x=7
		y=35
		[/village]

		[village]
		x=9
		y=34
		[/village]

		[village]
		x=13
		y=32
		[/village]

		[village]
		x=11
		y=35
		[/village]

		[village]
		x=14
		y=33
		[/village]

		[village]
		x=15
		y=35
		[/village]

		[village]
		x=16
		y=35
		[/village]

		[village]
		x=18
		y=34
		[/village]
		[/side]

		[side]
		type=Dark Adept
		description=Deory
		canrecruit=1
		side=4
		team_name=mob
		gold=100
		recruit=Walking Corpse
	[/side]

	[event]
		name=start
	
		[unit]
		type=Revenant
		x=10
		y=13
		side=2
		ai_special=guardian
		[/unit]

		[unit]
		type=Revenant
		x=12
		y=13
		side=2
		ai_special=guardian
		[/unit]

		[unit]
		type=Revenant
		x=4
		y=13
		side=2
		ai_special=guardian
		[/unit]

		[unit]
		type=Revenant
		x=18
		y=13
		side=2
		ai_special=guardian
		[/unit]

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

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

		[unit]
		type=Skeleton Archer
		x=14
		y=12
		side=2
		ai_special=guardian
		[/unit]

		[unit]
		type=Skeleton Archer
		x=16
		y=12
		side=2
		ai_special=guardian
		[/unit]

		[unit]
		type=Bandit
		x=7
		y=16
		side=3
		[/unit]

		[unit]
		type=Bandit
		x=10
		y=18
		side=3
		[/unit]

		[unit]
		type=Bandit
		x=15
		y=18
		side=3
		[/unit]

		[unit]
		type=Dwarvish Fighter
		x=13
		y=18
		side=3
		[/unit]

		[unit]
		type=Dwarvish Fighter
		x=9
		y=19
		side=3
		[/unit]


		[unit]
		type=Dwarvish Fighter
		x=7
		y=18
		side=3
		[/unit]

		[unit]
		type=Dwarvish Thunderguard
		x=11
		y=17
		side=3
		[/unit]

		[unit]
		type=Trapper
		x=10
		y=17
		side=3
		[/unit]

		[unit]
		type=Trapper
		x=13
		y=19
		side=3
		[/unit]

		[unit]
		type=Dwarvish Guardsman 
		x=11
		y=21
		side=3
		[/unit]

		[unit]
		type=Dwarvish Guardsman 
		x=13
		y=17
		side=3
		[/unit]

		[unit]
		type=Dwarvish Guardsman 
		x=11
		y=19
		side=3
		[/unit]

		[message]
		description=Camerin
		message= _ "Look, the traitor Tallin has come to protect his master."
		[/message] 

		[message]
		description=Tallin
	image=portraits/Tallin-Evil.jpg
		message= _ " Camerin! Please get out of here. Don't make me kill you too."
		[/message] 

		[message]
		description=Camerin
		message= _ "Fat chance, buddy. I can handle the likes of you in my sleep. Fall on them, boys!"
		[/message] 
	[/event]

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

		[message]
		description=Tallin
	image=portraits/Tallin-Evil.jpg
		message= _ "At last, I am free..."
		[/message]

		[endlevel]
		result=defeat
		[/endlevel]
	[/event]

	[event]
		name=time over

		[message]
		speaker=narrator
		message= _ " *BOOM!*"
		[/message]

		[terrain]
		x=20
		y=4
		letter=Uu
		[/terrain]

		[move_unit_fake]
		type=White Mage
		x=20,19,18
		y=4,5,4
		[/move_unit_fake]

		[unit]
		type=White Mage
		side=3
		description=Father Marcus
		x=18
		y=4
		[/unit]

		[move_unit_fake]
		type=White Mage
		gender=female
		x=20,19
		y=4,5
		[/move_unit_fake]

		[unit]
		type=White Mage
		gender=female
		description=Sister Theta
		x=19
		y=5
		side=3
		[/unit]

		[message]
		description=Malifor
		message= _ "What the.... NO!!!"
		[/message] 

		[message]
		description=Sister Theta
		message= _ "HEEEEE-YAAAAA!!!"
		[/message] 

		[sound]
		name=lightning.ogg
		[/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]

		[message]
		description=Malifor
		message= _ "CURSES ON YOU YOU BLASTED MAGES, CURSES ON YOU YOU BLASTED HUMANS, CURSES ON YOU YOU BLASTED DWARVES! MAY YOUR MISERABLE LIVES BE FULL OF TORTURE! MAY YOUR PEOPLE NEVER BE FREE! MAY ALL YOUR NEAR AND DEAR DESERT YOU! MAY A THUNDERBOLT HIT YOUR HEAD! MAY..."
		[/message]

		[message]
		description=Sister Theta
		message= _ "May you shut your ugly mouth and hurry up and die."
		[/message]

		[message]
		description=Malifor
		message= _ "MAY THE EARTH OPEN UP AND SWALLOW YOU! MAY ALL YOUR TEETH FALL OUT! MAY YOU BECOME A WEAK SKINNY OLD MAN! MAY............."
		[/message]

		[kill]
		description=Malifor
		animate=yes
		[/kill]

		[message]
		speaker=Father Marcus
		message= _ "Finally! He has been reduced to dust."
		[/message]

		[message]
		description=Tallin
	image=portraits/Tallin-Evil.jpg
		message= _ "Malifor is dead... what have I done? What am I going to do? I must flee this place!"
		[/message]

		[message]
		description=Camerin
		message= _ "Hey, there goes the traitor Tallin!"
		[/message]	

		[message]
		description=Father Marcus
		message= _ "Let him go. He was not acting under his free will and thus there is no blame attached to him. I have known of many such poor souls. If he does trouble us in the future, however, we should not spare him."
		[/message]

		[message]
		description=Sister Theta
		message= _ "Besides, he will probably just go and drown himself in the nearest river anyway, so why bother killing him?"
		[/message]

		[endlevel]
		result=victory
		[/endlevel]
	[/event]

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

		[message]
		description=Deory
		message= _ "Ahhh! Master, help me!"
		[/message]

		[message]
		description=Malifor
		message= _ "Serves you right, you useless excuse for a henchperson."
		[/message]

	[/event]

	[event]
		name=moveto
	       [filter]
	       side=1
	       x=7
	       y=10
	       [/filter]

	       [message]
	       description=Deory
	       message= _ "Master! Tallin is taking my villages!"
	       [/message]

	       [message]
	       description=Tallin
	image=portraits/Tallin-Evil.jpg
	       message= _ "Shut up, you idiot. I know what I am doing."
	       [/message]

	       [message]
	       description=Malifor
	       message= _ "Agreed. And if you don't keep your mouth shut, I will personally shut it for you!"
	       [/message]

	       [message]
	       description=Deory
	       message= _ " *Gulp*"
	       [/message]
	[/event]

	[event]
		name=moveto
	
		[filter]
		side=1
		x=1-20
		y=29-35
		[/filter]

		[message]
		description=Camerin
		message= _ "Hmmm, you aren't as bad as I thought, Tallin. Unfortunately for you, we aren't ready to give up just yet."
		[/message]

		[gold]
		side=3
		amount=1000
		[/gold]

		[allow_recruit]
		side=3
		type=Bandit
		[/allow_recruit]
	[/event]
[/scenario]


[event]
		name=die

		[filter]
		description=Camerin
		[/filter]

		[message]
		speaker=narrator
		message= _ " *BOOM!*"
		[/message]

		[terrain]
		x=20
		y=4
		letter=Uu
		[/terrain]

		[move_unit_fake]
		type=White Mage
		x=20,19,18
		y=4,5,4
		[/move_unit_fake]

		[unit]
		type=White Mage
		side=3
		description=Father Marcus
		x=18
		y=4
		[/unit]

		[move_unit_fake]
		type=White Mage
		gender=female
		x=20,19
		y=4,5
		[/move_unit_fake]

		[unit]
		type=White Mage
		gender=female
		description=Sister Theta
		x=19
		y=5
		side=3
		[/unit]

		[message]
		description=Malifor
		message= _ "What the.... NO!!!"
		[/message] 

		[message]
		description=Sister Theta
		message= _ "HEEEEE-YAAAAA!!!"
		[/message] 

		[sound]
		name=lightning.ogg
		[/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]

		[message]
		description=Malifor
		message= _ "CURSES ON YOU YOU BLASTED MAGES, CURSES ON YOU YOU BLASTED HUMANS, CURSES ON YOU YOU BLASTED DWARVES! MAY YOUR MISERABLE LIVES BE FULL OF TORTURE! MAY YOUR PEOPLE NEVER BE FREE! MAY ALL YOUR NEAR AND DEAR DESERT YOU! MAY A THUNDERBOLT HIT YOUR HEAD! MAY..."
		[/message]

		[message]
		description=Sister Theta
		message= _ "May you shut your ugly mouth and hurry up and die."
		[/message]

		[message]
		description=Malifor
		message= _ "MAY THE EARTH OPEN UP AND SWALLOW YOU! MAY ALL YOUR TEETH FALL OUT! MAY YOU BECOME A WEAK SKINNY OLD MAN! MAY............."
		[/message]

		[kill]
		description=Malifor
		animate=yes
		[/kill]

		[message]
		speaker=Father Marcus
		message= _ "Finally! He has been reduced to dust."
		[/message]

		[message]
		description=Camerin
		message= _ "Pew! Nick of time too - I almost bought it there!"
		[/message]

		[message]
		description=Tallin
	image=portraits/Tallin-Evil.jpg
		message= _ "Malifor is dead... what have I done? What am I going to do? I must flee this place!"
		[/message]

		[message]
		description=Camerin
		message= _ "Hey, there goes the traitor Tallin!"
		[/message]	

		[message]
		description=Father Marcus
		message= _ "Let him go. He was not acting under his free will and thus there is no blame attached to him. I have known of many such poor souls. If he does trouble us in the future, however, we should not spare him."
		[/message]

		[message]
		description=Sister Theta
		message= _ "Besides, he will probably just go and drown himself in the nearest river anyway, so why bother killing him?"
		[/message]

		[endlevel]
		result=victory
		[/endlevel]
	[/event]