[scenario]
#textdomain wesnoth-sof
name= _ "Epilogue"
id=Epilogue
turns=1
map_data="{@campaigns/Sceptre_of_Fire/maps/Epilogue.map}"

	{DEFAULT_MUSIC_PLAYLIST}

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

	[side]
	type=Dwarvish Fighter
	description=Rugnur
	side=1
	canrecruit=1
	controller=human
	recruit=Dwarvish Fighter,Dwarvish Thunderer,Dwarvish Guardsman,Gryphon Rider
	team_name=good
	[/side]

	[side]
	type=Haldric II
	description=Haldric II
	user_description= _ "Haldric II"
	side=2
	canrecruit=1
	profile=portraits/haldric-ii.png
	team_name=good
	[/side]

	[story]
		[part]
		story= _ "And thus Rugnur died, a glorious death, in the eyes of the dwarven sages. But our tale is not yet complete. For Alanin lived still, as did Krawg the Gryphon."
		[/part]
		[part]
		story= _ "Alanin traveled south, to Wesnoth, to Haldric II. To report the events of the past fifteen years."
		[/part]
		[part]
		story= _ "And Krawg - well, Krawg followed him. I know not how. But Krawg made his way south, to Weldyn, and reached it about the time that Alanin did."
		[/part]
		[part]
		background=maps/wesnoth.png
		show_title=yes
		{DOT 325 199}
		{DOT 323 224}
		{DOT 321 245}
		{DOT 311 263}
		{DOT 316 273}
		{DOT 299 296}
		{DOT 290 315}
		{DOT 312 328}
		{DOT 338 339}
		{CROSS 358 337}
		[/part]
	[/story]

#define ROYAL_GUARDIAN X Y
[unit]
x,y={X},{Y}
side=2
type=Royal Guard
[/unit]
#enddef

	[event]
	name=prestart
		#remove keep
		[terrain]
		x,y=18,5
		letter=Rr
		[/terrain]
		#royal guardians
		[unit]
		x,y=16,22
		side=2
		type=Royal Guard
		description=Guard Captain
		user_description= _ "Guard Captain"
		[/unit]
		{ROYAL_GUARDIAN 18 22}
		{ROYAL_GUARDIAN 21 24}
		{ROYAL_GUARDIAN 22 25}
		{ROYAL_GUARDIAN 22 28}
		{ROYAL_GUARDIAN 21 30}
		{ROYAL_GUARDIAN 18 31}
		{ROYAL_GUARDIAN 13 30}
		{ROYAL_GUARDIAN 12 28}
		{ROYAL_GUARDIAN 12 25}
		{ROYAL_GUARDIAN 13 24}
		[unit]
		x,y=16,11
		side=2
		type=Swordsman
		description=Gatekeeper
		user_description= _ "Gatekeeper"
		[/unit]
		[unit]
		x,y=18,12
		side=2
		type=Swordsman
		[/unit]
	[/event]

	[event]
	name=start
		#dialogue starts
		#alanin approaches the city
		{MOVE_UNIT_FAKE 18 5	18 5	17 11}
		[message]
		description=Gatekeeper
		message= _ "Halt! What is your business in Weldyn, capital of Wesnoth?"
		[/message]
		[message]
		description=Alanin
		message= _ "Stand aside. I am Alanin, of Haldric's royal guard, and I bring news from the northlands."
		[/message]
		[message]
		description=Gatekeeper
		message= _ "Very well. You may pass."
		[/message]
		{MOVE_UNIT_FAKE 17 11	17 11	17 20}
		[message]
		description=Guard Captain
		message= _ "I hear you desire to speak to the king, Alanin. What do you have to tell him?"
		[/message]
		[message]
		description=Alanin
		message= _ "I bring tidings of the Sceptre of Fire, commissioned fifteen years ago by our king. I have been away for a long time, do not delay me even more."
		[/message]
		[message]
		description=Guard Captain
		message= _ "Enter, Alanin, and give the king your message."
		[/message]
		#MUF
		[store_unit]
			[filter]
			description=Alanin
			[/filter]
		variable=alanin
		kill=yes
		[/store_unit]
		[move_unit_fake]
		x=17,17
		y=20,25
		type=$alanin.type
		[/move_unit_fake]
		[set_variable]
		name=alanin.y
		value=25
		[/set_variable]
		[unstore_unit]
		variable=alanin
		[/unstore_unit]
		#/MUF
		{MOVE_UNIT_FAKE 17 20	17 20	17 25}
		[message]
		description=Alanin
		message= _ "My King, fifteen years ago you sent me on a mission into the northlands. I have returned. What do you wish to know of my mission?"
		[/message]
		[message]
		description=Haldric II
		message= _ "Well, was the Sceptre completed? Do you have it? Give it to me!"
		[/message]
		[message]
		description=Alanin
		message= _ "I believe it was completed, but, I do not have it. It is buried deep in the mountains of the Northlands."
		[/message]
		[message]
		description=Haldric II
		message= _ "Why? Why was it not returned to me? Have the dwarves reneged on their promise, and kept it?"
		[/message]
		[message]
		description=Alanin
		message= _ "My Lord, the dwarves are dead, slain by fire and smoke as lava poured out of one of the mountains. I saw the eruption from afar as I was returning to you."
		[/message]
		[message]
		description=Haldric II
		message= _ "Why were you returning without the sceptre, then?"
		[/message]
		[message]
		description=Alanin
		message= _ "We had been besieged by elves, in a dwarvish castle that was not Rugnur's. The sceptre could not be completed there, but it could in a cave that lay to the northeast of it. Rugnur sent me back, with the message that it had been completed, but he and all the rest of the dwarves went into the caves, and were immediately followed by hundreds of elves."
		[/message]
		[message]
		description=Haldric II
		message= _ "If the sceptre was not completed in your sight, what makes you so sure it exists?"
		[/message]
		[message]
		description=Alanin
		message= _ "I will let Krawg explain that."
		[/message]
		[message]
		description=Haldric II
		message= _ "Who?"
		[/message]
		#MUF (but can't use {MOVE_UNIT_FAKE } here)
		[move_unit_fake]
		type=$krawg.type
		x=31,19
		y=1,26
		[/move_unit_fake]
		[set_variable]
		name=krawg.x
		value=19
		[/set_variable]
		[set_variable]
		name=krawg.y
		value=26
		[/set_variable]
		[unstore_unit]
		variable=krawg
		[/unstore_unit]
		#/MUF
		[message]
		description=Gatekeeper
		message= _ "My lord, a gryphon has just flown over our walls! It may be a sign of an attack!"
		[/message]
		[message]
		description=Alanin
		message= _ "No, that is my... friend Krawg. He went with Rugnur into the caves, but escaped through a hole in the roof right before the lava filled the cave."
		[/message]
		[message]
		description=Krawg
		#Yes, yes. I saw the sceptre. Rugnur had it. Lost it in the cave.
		message= _ "Ya, ya! Meh seah za zeptahur. Hrugnaar ha ee. Lozeet enda caav."
		[/message]
		[message]
		description=Haldric II
		message= _ "What the devil is he saying?"
		[/message]
		[message]
		description=Alanin
		message= _ "He says that he has seen the Sceptre. Rugnur had it, but he lost it in the caves. He came to tell you, so that you would know that the dwarves did fulfil their promise."
		[/message]
		[message]
		description=Krawg
		#Kreeya! That's right! Now I'm done. Bye.
		message= _ "Kreeeeya! Darat! Nomiduun. Bah."
		[/message]
		[message]
		description=Haldric II
		message= _ "I see. Well... what do you want me to do now? The sceptre is made, yes, but I don't know where it is, the makers are dead, and orcs have probably already found it and hid it somewhere else."
		[/message]
		[message]
		description=Alanin
		message= _ "I do not know. I only bring the news, I did not cause it, nor do I fully understand its implications. But, my advice would be to do nothing. I believe you will not find it, though you send a hundred armies to look for it. But record in the history books that the sceptre does exist."
		[/message]
		[message]
		description=Haldric II
		message= _ "Your advice seems good to me. I will take it. As for you, and the gryphon, you are free to go. Alanin, you've served in the army long enough to retire, and even if you hadn't, you've seen enough combat. So, go. Back to your village. You deserve a rest."
		[/message]
		[message]
		description=Alanin
		message= _ "Very well, my lord."
		[/message]
		[message]
		speaker=narrator
		message= _ "The sceptre would not be found until many generations after Haldric II, in the time of Asheviere the Dark Queen. During that time, it sat in the caves of the Northlands, unfound but undestroyed, moved around by Orcs who never understood its true power."
		[/message]
		[message]
		speaker=narrator
		message= _ "But before it was found, legends grew up around it, and around its makers - Thursagan, most brilliant of the Dwarven Sages, and Rugnur, the greatest of the Dwarven Heroes of old."
		[/message]
		[endlevel]
		result=victory
		[/endlevel]
	[/event]
[/scenario]
