Campaign/Forgotten Legacy/Unexpected Allies

From The Battle for Wesnoth Wiki
[scenario]
	id="Unexpected_Allies"
	name= _ "Unexpected Allies"
	next_scenario="The_Bitter_Swamp"
	music="wesnoth-1.ogg"

	{FL_MAP Unexpected_Allies}

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

	{TURNS 22 18 16}

	{@campaigns/Forgotten_Legacy/scenarios/deaths.cfg}

# Scenario Introduction

{INTRO_UNEXPECTED_ALLIES}

# The Saurians

[side]
	side=1 
	type=Bloodborn
  	description=S'Saskin the Bloodborn
	overlays="misc/hero-icon.png"
	unrenamable=yes

	controller=human
	team_name=Reptiles

	canrecruit=yes
	recruit=Saurian Brave,Witch Doctor

	{GOLD 135 100 80}

[/side]

# The Blackblood clan

[side]
	side=2
	type=Orcish Warrior
	description=Tan Shak

	canrecruit=yes
	recruit=Wolf Rider,Orcish Grunt,Orcish Archer
	[ai]
		recruitment_pattern=scout,fighter,archer
	        villages_per_scout=5
	[/ai]
	{GOLD 100 140 160}
[/side]

	[event]
	name=prestart
	        [set_variable]
			name=Kthanti_gone
			value=no
		[/set_variable]
	[/event]
# Scenario Start

	[event]
	name=start
		[message]
			description=S'Saskin the Bloodborn
			message= _ "...Get ready brave ones and stay silent until I give the word..."
		[/message]

# Create Units to move

		[unit]
			side=2
			description=Nako Snolt
			type=Goblin Pillager
			x,y=20,10
		[/unit]
		[unit]
			side=2
			type=Wolf Rider
			x,y=19,11
		[/unit]
		[unit]
			side=2
			type=Wolf Rider
			x,y=19,10
		[/unit]
		[unit]
			side=2
			type=Wolf Rider
			x,y=21,8
		[/unit]
		[unit]
			side=2
			type=Wolf Rider
			x,y=19,9
		[/unit]
		[unit]
			side=2
			type=Wolf Rider
			x,y=21,11
		[/unit]
# Dialogue
		[message]
			description=Nako Snolt
			message= _ "Boss, night is falling and we're near the rebels. Maybe we should make camp."
		[/message]

		[message]
			description=Tan Shak
			message= _ "Spineless worm. You will stop when I say you will. Orcs do not fear the dark or this stupid swamp. You will rest when the slimy creeps are all dead. Now MOVE!"
		[/message]

		[message]
			description=Nako Snolt
			message= _ "Right, of course, immediately, no time to lose..."
		[/message]

		[message]
			description=Tan Shak
			message= _ "Shut up!"
		[/message]

# Move Units
		[kill]
			x,y=19,11
			fire_event=no
		[/kill]
		[move_unit_fake]
			type=Wolf Rider
			x= 19,20,21,22,23,24,25,26,27,28
			y=11,10,11,10,11,11,12,11,11,11
		[/move_unit_fake]
		[unit]
			side=2
			type=Wolf Rider
			x,y=28,11
		[/unit]
		{REDRAW}

		[kill]
			x,y=19,10
			fire_event=no
		[/kill]
		[move_unit_fake]
			type=Wolf Rider
			x= 19,20,21,22,23,24,25,26,26
			y=10,10,11,10,11,11,12,11,10
		[/move_unit_fake]
		[unit]
			side=2
			type=Wolf Rider
			x,y=26,10
		[/unit]
		{REDRAW}

		[kill]
			x,y=21,8
			fire_event=no
		[/kill]
		[move_unit_fake]
			type=Wolf Rider
			x= 21,22,23,24,25,26,27
			y=8,8,9,9,8,8,9
		[/move_unit_fake]
		[unit]
			side=2
			type=Wolf Rider
			x,y=27,9
		[/unit]
		{REDRAW}

		[kill]
			x,y=19,9
			fire_event=no
		[/kill]
		[move_unit_fake]
			side=2
			type=Wolf Rider
			x= 19,20,21,22,23,24,25,26
			y=9,8,9,9,9,8,8,8
		[/move_unit_fake]
		[unit]
			side=2
			type=Wolf Rider
			x,y=26,8
		[/unit]
		{REDRAW}

		[kill]
			x,y=20,10
			fire_event=no
		[/kill]
		[move_unit_fake]
			type=Goblin Pillager
			x= 20,21,22,23,24,25,26
			y=10,11,10,11,11,12,12
		[/move_unit_fake]
		[unit]
			side=2
			description=Nako Snolt
			type=Goblin Pillager
			x,y=26,12
		[/unit]
		{REDRAW}

		[kill]
			x,y=21,11
			fire_event=no
		[/kill]
		[move_unit_fake]
			type=Wolf Rider
			x= 21,22,23,24
			y=11,10,11,11
		[/move_unit_fake]
		[unit]
			side=2
			type=Wolf Rider
			x,y=24,11
		[/unit]
		{REDRAW}

		[message]
		description=S'Saskin the Bloodborn
		message= _ "Now! Strike! Skalith Hyksa!"
		[/message]

# Create Saurian ambushers and attack

		[unit]
			type=Saurian Brave
			x,y=27,12
			generate_description=yes
			[modifications]
				{FL_RESILIENT}
				{FL_QUICK}
			[/modifications]
		[/unit]
		[unit]
			type=Saurian Warrior alt
			x,y=28,10
			generate_description=yes
			[modifications]
				{FL_RESILIENT}
				{FL_STRONG}
			[/modifications]
		[/unit]
		[message]
			x,y=28,10
			message= _ "Ssskalithh!"
		[/message]
		[message]
			x,y=28,11
			message= _ "Huh? What!? Aaargh!"
		[/message]
		[sound]
			name=orc-small-hit.wav			
		[/sound]
		[kill]
			x,y=28,11
			fire_event=no
			animate=yes
		[/kill]
		#ifdef EASY
			[unit]
				type=Saurian Brave
				x,y=27,8
				generate_description=yes
			[modifications]
				{FL_RESILIENT}
				{FL_LOYAL}
			[/modifications]
			[/unit]
		#endif
		[unit]
			type=Saurian Warrior alt
			x,y=24,10
			generate_description=yes
			[modifications]
				{FL_STRONG}
				{FL_QUICK}
			[/modifications]
		[/unit]
		[unit]
			type=Saurian Brave
			x,y=24,12
			generate_description=yes
			[modifications]
				{FL_INTELLIGENT}
				{FL_RESILIENT}
			[/modifications]
		[/unit]
		{REDRAW}
		[message]
			x,y=24,12
			message= _ "Ksssh! The swamp beckonssss"
		[/message]
		[message]
			x,y=24,11
			message= _ "Let got of me! Noooo!"
		[/message]
		[sound]
			name=orc-small-hit.wav			
		[/sound]
		[kill]
			x,y=24,11
			fire_event=no
			animate=yes
		[/kill]

		[recall]
			description=Iktha Toskh
			x,y=26,13
		[/recall]

		[message]
		description=Nako Snolt
		message= _ "Boss, it's an ambush! Help"
		[/message]

		[message]
		description=Tan Shak
		message= _ "Imbeciles! Must I do everything myself?"
		[/message]
		
		[objectives]
			side=1
				[objective]
					description= _ "Eliminate the Scout Force"
					condition=win
				[/objective]
				[objective]
					description= _ "Death of S'Saskin"
					condition=lose
				[/objective]
				[objective]
					description= _ "Death of Iktha Toskh"
					condition=lose
				[/objective]
				[objective]
					description= _ "Time runs out"
					condition=lose
				[/objective]
		[/objectives]
	[/event]

	[event]
		name=die
		[filter]
			description=Nako Snolt
		[/filter]
		[message]
			description=Nako Snolt
			message= _ "You'll never get me!"
		[/message]
		[message]
			speaker=narrator
			message= _ "With an extraordinary burst of speed the goblin runs into the wilderness"
		[/message]
		[message]
			description=Iktha Toskh
			message= _ "It is done Bloodborn, the first wave of orcs has been annihilated."
	        image=portraits/saurian-tribalist.png
		[/message]
		[message]
			description=Tan Shak
			message= _ "You think you did something by killing that wimp? HAW! I'll show you true orcish strength"
		[/message]
		[message]
			description=Tan Shak
			message= _ "Elite Guard! To me!"
		[/message]
		[unit]
			side=2
			description=Shaggath
			type=Orcish Warrior
			x,y=5,4
			[modifications]
				{FL_ELITE}
			[/modifications]
		[/unit]
		[message]
			description=Shaggath
			message= _ "Shaggath, CHOP!"
		        image=portraits/core/James_Woo/orc-warlord4.png
		[/message]
		[unit]
			side=2
			description=Khag
			type=Orcish Warrior
			x,y=4,5
			[modifications]
				{FL_ELITE}
			[/modifications]
		[/unit]
		[message]
			description=Khag
			message= _ "..."
		        image=portraits/core/James_Woo/orc-warlord3.png
		[/message]

		[message]
			description=S'Saskin the Bloodborn
			message= _ "Blizzards! It will take too long for reinforcements from here to reach the orc encampment. They'll be ready for us by then..."
		[/message]

		[message]
			description=Iktha Toskh
			message= _ "If I remember true, there used to be an old orcish outpost to the north near some goldmines that have run dry. It is deserted now but it could prove useful as an advance post."
	        image=portraits/saurian-tribalist.png
		[/message]

		[message]
			description=S'Saskin the Bloodborn
			message= _ "You speak true. I will head there at once!"
		[/message]
		[label]
			x,y=30,2
			text="The Abandoned Outpost"
		[/label]

		{PUT_IMG (items/gohere.png) 30 2}
		[scroll_to]
			x=30
			y=2
		[/scroll_to]
		{DELAY 50}
		[objectives]
			side=1
				[objective]
					description= _ "Slay the Orc Leader"
					condition=win
				[/objective]
				[objective]
					description= _ "Death of S'Saskin"
					condition=lose
				[/objective]
				[objective]
					description= _ "Death of Iktha Toskh"
					condition=lose
				[/objective]
				[objective]
					description= _ "Time runs out"
					condition=lose
				[/objective]
		[/objectives]
	[/event]

	[event]
		name=moveto
	
		[filter]
			description=S'Saskin the Bloodborn
			x,y=30,2
		[/filter]
		[unit]
			description=Kthanti
			type=Orcish Slayer
			x,y=31,3
			[modifications]
				{FL_RESILIENT}
				{FL_QUICK}
			[/modifications]
		[/unit]
		[message]
			description=Kthanti
			message= _ "Psst!"
		[/message]

		[message]
			description=S'Saskin the Bloodborn
			message= _ "What?! Who?!"
		[/message]

		[message]
			description=Kthanti
			message= _ "Hey, over here"
		        image=portraits/core/Alex_Jarocha-Ernst/orcish-assassin.png
		[/message]

		[message]
			description=S'Saskin the Bloodborn
			message= _ "Assasin! Men, to me!"
		[/message]

		[message]
			description=Kthanti
			message= _ "Hold your horses, or lizards as the case may be. I mean you no harm. Just listen to what I have to say"
	        image=portraits/core/Alex_Jarocha-Ernst/orcish-assassin.png
		[/message]

		[message]
			description=S'Saskin the Bloodborn
			message= _ "Speak, and tell no lie."
		[/message]

		[message]
			description=Kthanti
			message= _ "I can see you are pressed by the Blackbloods and your losses are great. I am here to offer you my help. Me and my men will help you drive them off."
		        image=portraits/core/Alex_Jarocha-Ernst/orcish-assassin.png
		[/message]

		[message]
			description=Iktha Toskh
			message= _ "Wait a minute orc. Why should we trust you? Why do you want to go against your own race?"
			image=portraits/saurian-tribalist.png
		[/message]

		[message]
			description=Kthanti
			message= _ "There is a clan war in progress. I belong to the Broken Tusk clan and we can't allow the Blackbloods to control your race as an expendable fighting force. It is in both our best interests if you remain independent."
		        image=portraits/core/Alex_Jarocha-Ernst/orcish-assassin.png
		[/message]

		[message]
			description=S'Saskin the Bloodborn
			message= _ "Very well, we will ally...for now. But watch your step assassin."
		[/message]

		[message]
			description=Kthanti
			message= _ "Do not worry. You won't even see us..."
		        image=portraits/core/Alex_Jarocha-Ernst/orcish-assassin.png
		[/message]

		[message]
			speaker=narrator
			message= _ "For the rest of the mission you can recruit Orcish Assasins as well."
		[/message]
		[unit]
			generate_description=yes
			type=Orcish Assassin
			x,y=31,2
			[modifications]
				{FL_STRONG}
				{FL_QUICK}
			[/modifications]
		[/unit]
		[unit]
			generate_description=yes
			type=Orcish Assassin
			x,y=31,4
			[modifications]
				{FL_STRONG}
				{FL_QUICK}
			[/modifications]
		[/unit]
		[allow_recruit]
			side=1
			type=Orcish Assassin
		[/allow_recruit]
	[/event]

	[event]
	name=die
		[filter]
			description=Shaggath
		[/filter]
		[message]
			description=Shaggath
			message= _ "Graaaah!"
		        image=portraits/core/James_Woo/orc-warlord4.png
		[/message]
	[/event]

	[event]
	name=die
		[filter]
			description=Khag
		[/filter]
		[message]
			speaker=narrator
			message= _ "The brutish orc falls down on his knees and and dies without a sound."
		        image=portraits/core/James_Woo/orc-warlord3.png
		[/message]
	[/event]

	[event]
	name=die
		[filter]
			description=Tan Shak
		[/filter]
		[message]
			description=Tan Skah
			message= _ "Ghyaaaargh!"
		[/message]
		[message]
			description=S'Saskin the Bloodborn
			message= _ "It is finished. The Blackbloods will take a while to worry us again"
		[/message]

		[message]
			description=Iktha Toskh
			message= _ "Indeed they will, but we only gained a brief respite. As soon as the clan wars are over the new Overlord will turn his attention to us once again."
	        image=portraits/saurian-tribalist.png
		[/message]
		
		[if]
		[variable]
			name=Kthanti_gone
			equals=no
		[/variable]
		[then]
			[message]
				decription=Kthanti
				message= _ "Well, I can tell you now that this will take while. In any case, it's been nice working with you but I think the time has come for me to depart."
			        image=portraits/core/Alex_Jarocha-Ernst/orcish-assassin.png
			[/message]
			
			[message]
				description=S'Saskin the Bloodborn
				message= _ "Indeed Assasin. I would help you for your assistance but I know you didn't do it for us. Our next meeting will probably not be on such friendly terms."
			[/message]

			[message]
				description=Kthanti
				message= _ "Indeed it probably won't. Be seeing you..."
			        image=portraits/core/Alex_Jarocha-Ernst/orcish-assassin.png
			[/message]
				
			        {STORE_UNIT description=Kthanti saved_Kthanti}

		[/then]
		[/if]

		[message]
			description=S'Saskin the Bloodborn
			message= _ "We must now strengthen our ranks. We will head to the Bitter Swamp, the home of the Skalds"
		[/message]

		[message]
			description=Iktha Toskh
			message= _ "The Sk...are you out of your mind? They are insane! They will kill you as soon as look at you"
	        image=portraits/saurian-tribalist.png
		[/message]

		[message]
			description=S'Saskin the Bloodborn
			message= _ "Silence! I think you are forgetting your place, witch doctor. We will do as I say."
		[/message]

		[message]
			description=Iktha Toskh
			message= _ "I...I am sorry Bloodborn. Of course I will follow you. May they see the wisdom of Skalith..."
	        image=portraits/saurian-tribalist.png
		[/message]
		[kill]
			side=1
			race=orc
			animate=no
			fire_event=no
		[/kill]
		[disallow_recruit] 
			side=1
			type=Orcish Assassin
		[/disallow_recruit]
			
		[endlevel]
		result=victory
		bonus=yes
		[/endlevel]
		[clear_variable]
			name=Kthanti_gone
		[/clear_variable]
	[/event]

	[event]
	name=die
		[filter]
		description=Kthanti
		[/filter]
	        {MODIFY_UNIT description=Kthanti hitpoints 1}
	        {REDRAW}

		[message]
			description=Kthanti
			message= _ "It seems things are getting out of hand here. I think it's time for me to depart. I'll see you another time saurian"
		        image=portraits/core/Alex_Jarocha-Ernst/orcish-assassin.png
		[/message]
	

	        {PUFF_OF_SMOKE $x1 $y1}

		{STORE_UNIT description=Kthanti saved_Kthanti}	

	        {DELAY 250}


	        [set_variable]
			name=Kthanti_gone
			value=yes
		[/set_variable]
	[/event]

[/scenario]