[scenario]
#textdomain wesnoth-sof
name= _ "The Jeweler"
id=4t_The_Jeweler
turns=1
map_data="{@campaigns/Sceptre_of_Fire/maps/4t_The_Jeweler.map}"
next_scenario=5_Hills_of_the_Shorbear_Clan

	{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=same
	[/side]

	[side]
	type=Dwarvish Lord
	description=Durstorn
	user_description= _ "Durstorn"
	side=2
	canrecruit=1
	profile=portraits/durstorn.png
	recruit=Dwarvish Fighter
	team_name=same
	[/side]

	[story]
		[part]
		story= _ "Rugnur and his companions returned home. Now, I do not want to give the impression that only Rugnur and Thursagan worked on this masterpiece. There were others - many others. Thus I present Theganli, the jeweler. His role is small, but an important one."
		[/part]
		[part]
		background=maps/wesnoth.png
		show_title=yes
		{DOT 312 116}
		{DOT 292 111}
		{CROSS 271 109}
		[/part]
	[/story]

	[event]
	name=start
		#Durstorn's guard
		[unit]
		x,y=11,5
		side=2
		type=Dwarvish Stalwart
		description=Neglur
		user_description= _ "Neglur"
			[modifications]
			{TRAIT_LOYAL}
			{TRAIT_RESILIENT}
			[/modifications]
		[/unit]
		[unit]
		x,y=13,6
		side=2
		type=Dwarvish Runesmith
		description=Glinar
		user_description= _ "Glinar"
			[modifications]
			{TRAIT_LOYAL}
			{TRAIT_QUICK}
			[/modifications]
		[/unit]
		[unit]
		x,y=9,8
		side=2
		type=Dwarvish Thunderguard
		description=Noiraran
		user_description= _ "Noiraran"
			[modifications]
			{TRAIT_LOYAL}
			{TRAIT_INTELLIGENT}
			[/modifications]
		[/unit]
		[unit]
		x,y=11,9
		side=2
		type=Dwarvish Steelclad
		description=Kuhnar
		user_description= _ "Kuhnar"
			[modifications]
			{TRAIT_LOYAL}
			{TRAIT_STRONG}
			[/modifications]
		[/unit]
		#alanin, baglur, krawg and thursagan
		[recall]
		description=Alanin
		[/recall]
		[recall]
		description=Baglur
		[/recall]
		[recall]
		description=Krawg
		[/recall]
		[recall]
		description=Thursagan
		[/recall]
		#dialogue starts
		[message]
		description=Durstorn
		message= _ "So, you have returned. I assume you have obtained the required materials? My jeweler Theganli has spent the last two years buying jewels from some of the northern clans. So now go to the forge and make your sceptre. What do you need to annoy me for?"
		[/message]
		[message]
		description=Thursagan
		message= _ "We don't. Not everything is about you. We need to talk to Theganli."
		[/message]
		[message]
		description=Durstorn
		message= _ "That makes sense, I guess you would to plan the sceptre's design... what in particular do you want him to do?"
		[/message]
		[message]
		description=Thursagan
		message= _ "I need to make the plans for the sceptre, then have him cut the ruby to match them."
		[/message]
		[message]
		description=Durstorn
		message= _ "You're going to cut the jewel!? Are you insane?"
		[/message]
		[message]
		description=Rugnur
		message= _ "What are you talking about, sir? You knew all along the jewel would have to be cut to make the sceptre out of."
		[/message]
		[message]
		description=Durstorn
		message= _ "Oh... right, right. Fine. Theganli?"
		[/message]
		[message]
		description=Kuhnar
		message= _ "He's in his shop, in the southern tunnel."
		[/message]
		[message]
		description=Durstorn
		message= _ "Whatever. Kuhnar, go, summon him here."
		[/message]
		{MOVE_UNIT_FAKE 11 9 	11 9	12 16}
		[message]
		description=Kuhnar
		message= _ "Theganli! Come out of there, Durstorn orders you to come to the citadel."
		[/message]
		[unit]
		x,y=11,16
		type=Dwarvish Runesmith
		side=2
		description=Theganli
		user_description= _ "Theganli"
		[/unit]
		[message]
		description=Theganli
		message= _ "I'm coming... coming... stop pounding on the door..."
		[/message]
		[message]
		description=Thursagan
		message= _ "He doesn't need to come here, I'll take the jewel to his shop. He'll need his tools anyway."
		[/message]
		[store_unit]
			[filter]
			description=Thursagan
			[/filter]
		variable=running
		kill=yes
		[/store_unit]
		[move_unit_fake]
		x=19,12
		y=17,15
		type=$running.type
		[/move_unit_fake]
		[set_variable]
		name=running.x
		value=12
		[/set_variable]
		[set_variable]
		name=running.y
		value=15
		[/set_variable]
		[unstore_unit]
		variable=running
		[/unstore_unit]
		[clear_variable]
		name=running
		[/clear_variable]
		[message]
		description=Thursagan
		message= _ "Well, Theganli, what do you think of this jewel?"
		[/message]
		[message]
		description=Theganli
		message= _ "Uh, um, yes, yes, very impressive jewel, impressive, yes... "
		[/message]
		[message]
		description=Thursagan
		message= _ "Do you think you could cut it in the manner my plans specify?"
		[/message]
		[message]
		description=Theganli
		message= _ "Well, uh, um, maybe... maybe... it will be hard... let me see..."
		[/message]
		[message]
		description=Thursagan
		message= _ "Very well. See what you can do."
		[/message]
		#insert sounds, delays etc to make it seem as if me is messing around with jewel
		[message]
		speaker=narrator
		message= _ "Theganli spent many months cutting the jewels that would go into the Sceptre of Fire, and the Ruby of Fire he attempted last. But he could not cut it."
		[/message]
		[message]
		description=Durstorn
		message= _ "Well, do you have anything yet?!"
		[/message]
		[message]
		description=Theganli
		message= _ "Ah, well, uh, no... no, not yet... unfortunately... it seems... it can't be cut... or scratched... or damaged at all... at least not by my tools..."
		[/message]
		[message]
		description=Thursagan
		message= _ "So what do you propose we do? We need this jewel cut in a very specific way to make sure... well, it doesn't matter why."
		[/message]
		[message]
		description=Theganli
		message= _ "Well... maybe... the Shorbear clan? They have good tools... yes, yes, they do..."
		[/message]
		[message]
		description=Rugnur
		message= _ "Who are they?"
		[/message]
		[message]
		description=Theganli
		message= _ "Another group... of dwarves... live south of here... above ground... yes... best jewelers I know of... have special tools... tools, yes..."
		[/message]
		[message]
		description=Durstorn
		message= _ "Well, Rugnur, what are you waiting for? Go down and get these tools from them, and carve the jewel!"
		[/message]
		[if]
			[have_unit]
			description=Baglur
			[/have_unit]
			[then]
				[message]
				description=Baglur
				message= _ "We can't just go in there and take their property. We'll have to buy, or rent, it from them."
				[/message]
			[/then]
			[else]
				[message]
				description=Rugnur
				message= _ "We can't just go in there and take their property. We'll have to buy, or rent, it from them."
				[/message]
			[/else]
		[/if]
		[message]
		description=Durstorn
		message= _ "Fine. Go rent it from them."
		[/message]
		[message]
		description=Rugnur
		message= _ "Very well. We'll go south now."
		[/message]
		[message]
		description=Durstorn
		message= _ "Wait! Last time you made a bargain by yourself you lost us five thousand pieces of silver. I'm going with you this time!"
		[/message]
		[message]
		description=Kuhnar
		message= _ "Are you sure that is wise, lord?"
		[/message]
		[message]
		description=Durstorn
		message= _ "Of course! To be safe, though, you and Noiraran are going to come with us."
		[/message]
		[message]
		description=Kuhnar
		message= _ "Yes sir... *sigh*"
		[/message]
		#these shouldn't still exist. :)
		[kill]
		side=1
		type=Dwarvish Miner
		[/kill]
		[endlevel]
		result=continue
		[/endlevel]
	[/event]
[/scenario]
