#textdomain wesnoth-nr

#define BODYGUARD X Y
	[unit]
	type=Orcish Warlord
	x={X}
	y={Y}
	side=2
	ai_special=guardian
	[/unit]
#enddef

#define KNIGHT X Y
	[unit]
	type=Goblin Knight
	x={X}
	y={Y}
	side=2
	[/unit]
#enddef


[scenario]
	id=old_friend
	name= _ "Old Friend"
	next_scenario=settling_disputes
	{SCENARIO_MUSIC "breaking_the_chains.ogg"}


	[story]
	[part]
	story= _ "Laden with gold, and filled with an elation at their victory that was tempered with sadness at the death of their friends, Tallin and his people made their way back to the mines."
	[/part]

	[part]
	story= _ "As they approached they were met with a most welcome sight: New fortifications, looking very much like the legendary impenetrable dwarvish defenses of old, had sprung up everywhere. All of them were manned by alert and well-armed dwarves who hailed them boisterously. The mines were belching smoke from the furiously working forges. New weapons and armor for humans and dwarves alike lay neatly stacked, and the deafening clang of hammers and picks from the dwarves promised more."
	[/part]

	[part]
	story= _ "They found Hamel in a forge hammering away at a new axe. He greeted them warmly and arrangements were quickly made for all their food and accommodations, as wall as care for the sick and wounded."
	[/part]

	[part]
	story= _ "When Tallin's party had shaken the dust of the road from their clothes, the humans and dwarves once again met in council."
	[/part]


	[part]
	story= _ "It is well, Hamel. You our people prosper."
	background=portraits/Tallin.jpg
	[/part]

	[part]
	story= _ "Aye. Word ha' spread, and dwarves who had been living rough in the wilds for fear of the orcs have been coming to join us. Thanks to you, Tallin, Knalga is rising again!"
	background=portraits/Hamel.jpg
	[/part]


	[part]
	story= _ "We have cleared the connecting tunnels to here and to the old keep as well as other parts o' Knalga."
	background=portraits/Hamel.jpg
	[/part]

	[part]
	story= _ "It is slow and dangerous work, mostly due to the trolls. But it ha' been made easier by Malifor's ending."
	background=portraits/Hamel.jpg
	[/part]


	[part]
	story= _ "The lich's skeletons were fighting the trolls, but when you destroyed him, they all just fell apart. So, there are many tunnels that are now infested with nothing but piles of old bones."
	background=portraits/Hamel.jpg
	[/part]

	[part]
	story= _ "Great! How about the weapons and armor?"
	background=portraits/Tallin.jpg
	[/part]

	[part]
	story= _ "As you can see, Tallin, there are muckle heaps of them, all ready to be borne into battle."
	background=portraits/Hamel.jpg
	[/part]

	[part]
	story= _ "What's more, some of the dwarves who are expert with the sword, mace and bow, as well as some of yer own men who have grown skilled by experience, can teach others how to wield them."
	background=portraits/Hamel.jpg
	[/part]


	[part]
	story= _ "I didn't know that you dwarves knew swordplay. I thought you all fought with axes, hammers or those thunder weapons."
	background=portraits/Tallin.jpg
	[/part]

	[part]
	story= _ "Aye, it's true we do prefer our axes and hammers, but then again, we make swords. We couldna' claim to be expert weaponsmiths wi'out kenning how to wield the weapons we make."
	background=portraits/Hamel.jpg
	[/part]

	[part]
	story= _ "There are some dwarves out there that are bonny fighters wi' a sword as any ye are like to meet. Belike with bows, maces and any other weapons we fashion."
	background=portraits/Hamel.jpg
	[/part]


	[part]
	story= _ "That's great! What is the price of your weapons? We have gathered much booty from Malifor's treasury and we will be able to pay you generously."
	background=portraits/Tallin.jpg
	[/part]


	[part]
	story= _ "Price?!? Don't insult us, Tallin. Ye have done great things to help the dwarves - it's because of you that we ha' made a start rebuilding Knalga in the first place.  Dinna ye speak of price to us."
	background=portraits/Hamel.jpg
	[/part]


	[part]
	story= _ "But don't you need the gold to help rebuild Knalga? And we have plenty."
	background=portraits/Tallin.jpg
	[/part]


	[part]
	story= _ "Tallin, Knalga was an extremely rich nation. Malifor's treasury is hardly a fraction of the riches that we will find, and are finding every day now. So nae!  Ye'll need yon gold to rebuild Dwarven Doors."
	background=portraits/Hamel.jpg
	[/part]

	[part]
	story= _ "Thank you, Hamel."
	background=portraits/Tallin.jpg
	[/part]

	[part]
	story= _ "Pahhh, thank YOU!"
	background=portraits/Hamel.jpg
	[/part]

	[part]
	story= _ "And Tallin, one more thing, I have been leading our people into battle for many years now. As a young dwarf I was trained in the arts of leadership and war.  There are things you will need to know..."
	background=portraits/Hamel.jpg
	[/part]


	[part]
	story= _ "I know you're impressive wi' a pitchfork, and you are not half bad with a sword when you choose to use one.  But there skills beyond swingin' a weapon that a general must learn."
	background=portraits/Hamel.jpg
	[/part]

	[part]
	story= _ "I would be honored, Lord Hamel."
	background=portraits/Tallin.jpg
	[/part]

	[part]
	story= _ "Ahhhh, quit with the formality, me lad. Now, first things first. One of the most important things about being a leader is...."
	background=portraits/Hamel.jpg
	[/part]


	[part]
	story= _ "The humans rested for many days while they were equipped with new arms and armor and trained by the dwarves."
	[/part]


	[part]
	story= _ "But the peace was not to last. Early one morning Tallin (sore from head to foot from his training) was startled awake by the blare of trumpets, the pounding of drums and the clash of steel as the humans and dwarves hurried to arm themselves."
	[/part]

	[part]
	story= _ "He sought out Hamel, who informed him that a massive host of orcs had arrived at the gates of the new Knalga."
	[/part]

	[part]
	story= _ "It was decided that Tallin's men sould sally forth to meet the orcs, while Hamel's held open their retreat into the caves."
	[/part]
	[/story]

	turns=18
	{DUSK}
	{FIRST_WATCH}
	{SECOND_WATCH}
	{DAWN}
	{MORNING}
	{AFTERNOON}



	{./utils/herodeaths.cfg}




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

[event]
	name=prestart

	[set_variable]
	name=keep
	value=1
	[/set_variable]
	[set_variable]
	name=keep.x
	value=26
	[/set_variable]
	[set_variable]
	name=keep.y
	value=3
	[/set_variable]

	[store_unit]
	[filter]
	description=Tallin
	[/filter]
	variable=typechange
	kill=yes
	[/store_unit]

	[if]
[variable]
name=typechange.type
equals=Peasant
[/variable]
[or]
[variable]
name=typechange.type
equals=Spearman
[/variable]
[/or]
[or]
[variable]
name=typechange.type
equals=Bowman
[/variable]
[/or]
[then]
[set_variable]
name=typechange.type
value=Sergeant
[/set_variable]
[/then]
[/if]


[if]
[variable]
name=typechange.type
equals=Longbowman
[/variable]
[or]
[variable]
name=typechange.type
equals=Swordsman
[/variable]
[/or]
[or]
[variable]
name=typechange.type
equals=Pikeman
[/variable]
[/or]
[or]
[variable]
name=typechange.type
equals=Javelineer
[/variable]
[/or]
[then]
[set_variable]
name=typechange.type
value=Lieutenant
[/set_variable]
[/then]
[/if]

[if]
[variable]
name=typechange.type
equals=Master Bowman
[/variable]
[or]
[variable]
name=typechange.type
equals=Royal Guard
[/variable]
[/or]
[or]
[variable]
name=typechange.type
equals=Halberdier
[/variable]
[/or]
[then]
[set_variable]
name=typechange.type
value=General
[/set_variable]
[/then]
[/if]

[unstore_unit]
variable=typechange
find_vacant=yes
[/unstore_unit]
{CLEAR_VARIABLE typechange}
[/event]




[side]
	type=Peasant
	description=Tallin
	canrecruit=1
	side=1
	controller=human
	{GOLD4 450 350 300 250}
	recruit=Peasant,Woodsman,Thug,Poacher,Spearman,Bowman,Footpad
	team_name=mob
[/side]

[side]
	type=Orcish Sovereign
	description=Rakshas
	canrecruit=1
	side=2
	recruit=Orcish Grunt,Orcish Archer,Wolf Rider,Orcish Assassin,Troll Whelp,Orcish Warrior,Orcish Crossbowman,Troll
	{GOLD4 400 500 600 700}
	{INCOME4 30 40 50 60}
	team_name=orcs
	[ai]
	aggression=1.0
	caution=-1.0
	leader_value=50
	[/ai]
[/side]

[side]
	type=Orcish Warlord
	description=Drung
	canrecruit=1
	side=3
	recruit=Orcish Grunt,Orcish Archer,Wolf Rider,Orcish Assassin,Troll Whelp,Orcish Warrior,Orcish Crossbowman,Troll
	{GOLD4 400 500 600 700}
	{INCOME4 30 40 50 60}
	team_name=orcs
	[ai]
	aggression=1.0
	caution=-1.0
	leader_value=50
	[/ai]
[/side]

[side]
	type=Orcish Warlord
	description=Poul
	canrecruit=1
	side=4
	recruit=Orcish Grunt,Orcish Archer,Wolf Rider,Orcish Assassin,Troll Whelp,Orcish Warrior,Orcish Crossbowman,Troll
	{GOLD4 400 500 600 700}
	{INCOME4 30 40 50 60}
	team_name=orcs
	[ai]
	aggression=1.0
	caution=-1.0
	leader_value=50
	[/ai]
[/side]

[event]
	name=start

	[role]
	type=Halberdier, Royal Guard, Master Bowman, Pikeman, Swordsman, Longbowman, Javelineer, Spearman, Bowman, Peasant
	role=Supporter
	[/role]
	[recall]
	role=Supporter
	[/recall]


	{BODYGUARD 2 20}
	{BODYGUARD 5 20}
	{BODYGUARD 7 21}
	{BODYGUARD 9 22}
	{BODYGUARD 9 24}
	{BODYGUARD 9 26}
	{BODYGUARD 8 27}

	[recall]
	description=Camerin
	[/recall]

	[recall]
	description=Abhai
	[/recall]

	[recall]
	description=Krash
	[/recall]

	[recall]
	description=Elenia
	[/recall]

	[recall]
	description=Father Marcus
	[/recall]

	[recall]
	description=Sister Theta
	[/recall]

	[message]
	description=Rakshas
	message= _ "So here is the human who dares defy me!"
	[/message]

	[message]
	description=Tallin
	message= _ "Defy you? Who are you, what do you want?"
	[/message]

	[message]
	description=Rakshas
	message= _ "I am Emperor Rakshas, leader of the orcish people. My mission is to unite all the orcish people and finish the work that we started years ago."
	[/message]

	[message]
	description=Tallin
	message= _ "What work is that?"
	[/message]

	[message]
	description=Rakshas
	message= _ "Stupid human, to become the overlords of Knalga. The treachery of the dwarves thwarted us for many years, but we shall triumph all the same."
	[/message]

	[message]
	description=Rakshas
	message= _ "The dwarves will soon be groveling at my feet and equipping my people with the finest weapons. Then we shall sweep down upon Wesnoth and settle scores with them once and for all."
	[/message]

	[message]
	description=Tallin
	message= _ "Fool, you think that your people will fallow a weakling such as you? Just because you have some crazed plan doesn't make you a leader of your people."
	[/message]

	[message]
	description=Tallin
	message= _ "Fellow orcs, why do you fallow this weakling of a leader. He is just a puny bully with big big daydreams. Don't be an old ladies. All of you are far stronger then him!"
	[/message]

	[message]
	description=Rakshas
	message= _ "ANY WHO OPPOSE ME WILL DIE! AS ALL OF YOU ORCS KNOW. I AM THE MASTER! KILL THE HUMAN RABBLE!"
	[/message]

	[message]
	description=Tallin
	message= _ "Ahhh well, it was worth a try."

	[/message]

	[message]
	role=Supporter
	message= _ "Tallin, remember when we defeated the orcs back in Dwarven Doors?"
	[/message]

	[message]
	description=Tallin
	message= _ "Yeah?"
	[/message]

	[message]
	role=Supporter
	message= _ "And remember those wolves on the way to the mines?"
	[/message]

	[message]
	description=Tallin
	message= _ "Yeah?"
	[/message]

	[message]
	role=Supporter
	message= _ "They were both talking about, 'The Master.' I think we finally have the pleasure of meeting him."
	[/message]

	[message]
	description=Tallin
	message= _ "Oh! Hold a moment, he is saying something else."
	[/message]

	[message]
	description=Rakshas
	message= _ "YOU KILLED MY WARRIORS, YOU KILLED MY WOLVES, BUT YOUR DEFIANCE ENDS HERE YOU HUMAN WORM! MY WOLVES WILL EAT THE LIVING FLESH OFF YOUR BONES!"
	[/message]

	[message]
	description=Tallin
	message= _ "Yep, it's him alright. Men, it's time to end this menace once and for all! FOR DWARVEN DOORS!"
	[/message]

	[message]
	role=Supporter
	message= _ "FOR DWARVEN DOORS!"
	[/message]

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

	[message]
	description=Camerin
	message= _ "YEEAAAAHHHHH!"
	[/message]

	[message]
	description=Krash
	message= _ "ROOOOAAAARRRRR!!!"
	[/message]

	[objectives]
		side=1
			[objective]
				description= _ "Defeat Rakshas... if you can..."
				condition=win
			[/objective]
			[objective]
				description= _ "Or, resist till end of turns"
				condition=win
			[/objective]
			[objective]
				description= _ "Death of Tallin"
				condition=lose
			[/objective]

		[/objectives]




[/event]



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

	[message]
	description=Rakshas
	message= _ "Ahhhh! Run for your life!"
	[/message]

	[message]
	speaker=second_unit
	message= _ "What the... Hey, where do you think you are running off to you coward!"
	[/message]

	[message]
	description=Tallin
	message= _ "Stop him!"
	[/message]

	[message]
	speaker=second_unit
	message= _ "It's too late, I am sorry, Tallin, he got away! We did not expect he would flee like a coward."
	[/message]

	[message]
	description=Tallin
	message= _ "Damn! We had the opportunity to end the war in one stroke there. Now we will have to go after him, assuming we can break this siege!"
	[/message]
[/event]


[event]
	name=time over
	[message]
	description=Tallin
	message= _ "Geez, we have been fighting them for three whole days and nights now with no end in sight. Now the forth night is approaching, what should we do?"
	[/message]

	[message]
	description=Father Marcus
	message= _ "It seems hopeless to continue on like this. The orcs numbers are unlimited and Rakshas is very well guarded. The only possible outcome to all this is more slaughter."
	[/message]

	[message]
	description=Sister Theta
	message= _ "I propose that we retreat back into the caves and consult with the dwarves."
	[/message]

	{SUPPORTER}

	[message]
	role=Supporter
	message= _ "I agree, Tallin, it is pointless to cary on."

	[/message]

	[message]
	description=Tallin
	message= _ "Very well. Everyone fall back!"
	[/message]

	[message]
	description=Camerin
	message= _ "Awwwww! Just when I was having the most fun!"
	[/message]

	[endlevel]
	result=victory
	bonus=no
	[/endlevel]

[/event]

[event]
	name=moveto
		[filter]
		side=1
		x=1-9
		y=10-27
		[/filter]

	[message]
	description=Rakshas
	message= _ "So your forces are managing to advance upon me are they? Very impressive but it shall do you no good. KNIGHTS!!!"
	[/message]


	{KNIGHT 15 17}
	{KNIGHT 15 17}
	{KNIGHT 15 17}
	{KNIGHT 15 17}
	{KNIGHT 15 17}
	{KNIGHT 15 17}
	{KNIGHT 15 17}
	{KNIGHT 15 17}
	{KNIGHT 15 17}
	{KNIGHT 15 17}
	{KNIGHT 15 17}
	{KNIGHT 15 17}

	{KNIGHT 11 16}
	{KNIGHT 11 16}
	{KNIGHT 11 16}
	{KNIGHT 11 16}
	{KNIGHT 11 16}
	{KNIGHT 11 16}
	{KNIGHT 11 16}

	{KNIGHT 7 16}
	{KNIGHT 7 16}
	{KNIGHT 7 16}
	{KNIGHT 7 16}
	{KNIGHT 7 16}
	{KNIGHT 7 16}
	{KNIGHT 7 16}
	{KNIGHT 7 16}
	{KNIGHT 7 16}
	{KNIGHT 7 16}

	{KNIGHT 26 22}
	{KNIGHT 26 22}
	{KNIGHT 26 22}
	{KNIGHT 26 22}
	{KNIGHT 26 22}
	{KNIGHT 26 22}

	{KNIGHT 25 26}
	{KNIGHT 25 26}
	{KNIGHT 25 26}
	{KNIGHT 25 26}
	{KNIGHT 25 26}
	{KNIGHT 25 26}

	[unit]
	type=Goblin Knight
	description=Goblin Knight
	side=2
	x=15
	y=17
	[/unit]

	[message]
	description=Goblin Knight
	message= _ "HAHAHAHAHA, GOT YOU, SUCKERS!"
	[/message]

	[message]
	description=Rakshas
	message= _ "CHARGE!!!"
	[/message]

	[message]
	description=Tallin
	message= _ "Oh, hell! Form up men, back to back, don't let them penetrate our ranks."
	[/message]

	[message]
	description=Rakshas
	message= _ "That's not all, my friends. GENERALS, CALL THE RESERVES!"
	[/message]

	[message]
	description=Drung
	message= _ "Oh yeah!"
	[/message]

	[message]
	description=Poul
	message= _ "HAHAHAHAHA!"
	[/message]

	[message]
	description=Flang
	message= _ "Oooooooh! Time to start the fun!"
	[/message]

	[message]
	description=Houl
	message= _ "You are so dead, you human vermin!"
	[/message]

	[gold]
	side=2
	amount=2000
	[/gold]

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

	[gold]
	side=4
	amount=2000
	[/gold]

	[gold]
	side=5
	amount=2000
	[/gold]

	[message]
	role=Supporter

	message= _ "This doesn't look good..."
	[/message]
[/event]

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

	[message]
	description=Drung
	message= _ "Argh! I have been slain!"
	[/message]

	[message]
	speaker=second_unit
	message= _ "Killed him! Got his gold too. Lets see, hmmmmm, about 500 gold pieces. Not bad."
	[/message]

	[gold]
	side=1
	amount=512
	[/gold]

	[message]
	description=Rakshas
	message= _ "They have killed one of my generals! REINFORCEMENTS!"
	[/message]

	[gold]
	side=2
	amount=500
	[/gold]

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

	[gold]
	side=4
	amount=500
	[/gold]

	[gold]
	side=5
	amount=500
	[/gold]

	[gold]
	side=6
	amount=500
	[/gold]
[/event]

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

	[message]
	description=Poul
	message= _ "My death will only make the Master's punishment for you worse you fools!"
	[/message]

	[message]
	speaker=second_unit
	message= _ "Your death makes your Master's punishment from us one step closer!"
	[/message]

	[message]
	speaker=second_unit
	message= _ "But my my, what's in that big pouch?  300 gold! Not bad."
	[/message]

	[gold]
	side=1
	amount=302
	[/gold]

	[message]
	description=Rakshas
	message= _ "You vermin will pay for that! REINFORCEMENTS!"
	[/message]

	[gold]
	side=2
	amount=500
	[/gold]

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

	[gold]
	side=4
	amount=500
	[/gold]

	[gold]
	side=5
	amount=500
	[/gold]

	[gold]
	side=6
	amount=500
	[/gold]
[/event]

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

	[message]
	description=Flang
	message= _ "Ahhhh! The defilers have slain me!"
	[/message]

	[message]
	speaker=second_unit
	message= _ "Geez, you sound like some sort of religious fanatic!  Let's see what's in the collection plate..."
	[/message]

	[message]
	speaker=second_unit
	message= _ "Ahhh, yes, 400 gold. Praise the Master *snicker* ."
	[/message]

	[gold]
	side=1
	amount=412
	[/gold]

	[message]
	description=Rakshas
	message= _ "What! My loyal Flang is gone! You human worms shall pay! REINFORCEMENTS!"
	[/message]

	[gold]
	side=2
	amount=500
	[/gold]

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

	[gold]
	side=4
	amount=500
	[/gold]

	[gold]
	side=5
	amount=500
	[/gold]

	[gold]
	side=6
	amount=500
	[/gold]
[/event]

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

	[message]
	description=Houl
	message= _ "What! I die! But how can this be? The master told me that I would always be one of his generals."
	[/message]

	[message]
	speaker=second_unit
	message= _ "You lived as a fool and shall die as one. Now let's see how much money your master pays a fool."
	[/message]

	[message]
	speaker=second_unit
	message= _ "600 gold! Wow! The 'Master' must be an even greater fool then I thought!"
	[/message]

	[gold]
	side=1
	amount=606
	[/gold]

	[message]
	description=Rakshas
	message= _ "You foolish humans! You shall all soon be meat for my wolves! REINFORCEMENTS!"
	[/message]

	[gold]
	side=2
	amount=500
	[/gold]

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

	[gold]
	side=4
	amount=500
	[/gold]

	[gold]
	side=5
	amount=500
	[/gold]

	[gold]
	side=6
	amount=500
	[/gold]
[/event]


[event]
name=victory

{CLEAR_VARIABLE keep}

[/event]

[/scenario]
