<?xml version="1.0"?>
<Story>
<!--Start Campaign-->
	<Event Name="Bestine_Kidnapping_Mission_Begin">
		<Event_Type>STORY_ELAPSED</Event_Type>
		<Event_Param1>0</Event_Param1>
	</Event>

	<Event Name="Bestine_Kidnapping_Prevent_Victory">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>ENABLE_VICTORY</Reward_Type>
		<Reward_Param1>0</Reward_Param1>
		<Prereq>Bestine_Kidnapping_Mission_Begin</Prereq>
	</Event>

	<Event Name="Bestine_Kidnapping_Mission_Prevent_Retreat_Rebel">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>DISABLE_RETREAT</Reward_Type>
		<Reward_Param1>REBEL</Reward_Param1>
		<Reward_Param2>1</Reward_Param2>
		<Prereq>Bestine_Kidnapping_Mission_Begin</Prereq>
	</Event>

	<Event Name="Bestine_Kidnapping_Mission_Prevent_Retreat_Empire">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>DISABLE_RETREAT</Reward_Type>
		<Reward_Param1>EMPIRE</Reward_Param1>
		<Reward_Param2>1</Reward_Param2>
		<Prereq>Bestine_Kidnapping_Mission_Begin</Prereq>
	</Event>

	<Event Name="Bestine_Kidnapping_Mission_Prevent_Retreat_Hutts">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>DISABLE_RETREAT</Reward_Type>
		<Reward_Param1>HUTTS</Reward_Param1>
		<Reward_Param2>1</Reward_Param2>
		<Prereq>Bestine_Kidnapping_Mission_Begin</Prereq>
	</Event>

	<Event Name="Bestine_Kidnapping_Mission_Prevent_Retreat_Pirates">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>DISABLE_RETREAT</Reward_Type>
		<Reward_Param1>PIRATES</Reward_Param1>
		<Reward_Param2>1</Reward_Param2>
		<Prereq>Bestine_Kidnapping_Mission_Begin</Prereq>
	</Event>

<!-- Mission objectives
TEXT_MUUNILINST_KIDNAPPING_OBJECTIVE_01				IG-88 must survive
TEXT_CORRUPTION_BESTINE_STORY_KIDNAP_OBJECTIVE_01	Destroy all troops and turrets guarding Ral Falan.
TEXT_CORRUPTION_BESTINE_STORY_KIDNAP_OBJECTIVE_02	Capture Ral Falan using IG-88.-->

	<Event Name="Bestine_Kidnapping_ADD_OBJECTIVE_IG88_Must_Survive">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>ADD_OBJECTIVE</Reward_Type>
		<Reward_Param1>TEXT_MUUNILINST_KIDNAPPING_OBJECTIVE_01</Reward_Param1>
		<Prereq>Bestine_Kidnapping_Mission_Start_AI_NOTIFICATION</Prereq>
	</Event>

	<!--TEXT_CORRUPTION_BESTINE_STORY_KIDNAP_OBJECTIVE_01
	Destroy all troops and turrets guarding Ral Falan.-->
	<Event Name="Bestine_Kidnapping_ADD_OBJECTIVE_Secure_The_Compound">
		<Event_Type>STORY_ELAPSED</Event_Type>
		<Event_Param1>3</Event_Param1>
		<Reward_Type>ADD_OBJECTIVE</Reward_Type>
		<Reward_Param1>TEXT_CORRUPTION_BESTINE_STORY_KIDNAP_OBJECTIVE_01</Reward_Param1>
		<Prereq>Bestine_Kidnapping_ADD_OBJECTIVE_IG88_Must_Survive</Prereq>
	</Event>

	<Event Name="Bestine_Kidnapping_Compound_Clear_AI_NOTIFICATION">
		<Event_Type>STORY_AI_NOTIFICATION</Event_Type>
		<Event_Param2>Bestine_Kidnapping_Compound_Clear_AI_NOTIFICATION</Event_Param2>
	</Event>

	<!--completing compound objective-->
	<Event Name="Bestine_Kidnapping_COMPLETE_OBJECTIVE_Secure_The_Compound">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>OBJECTIVE_COMPLETE</Reward_Type>
		<Reward_Param1>TEXT_CORRUPTION_BESTINE_STORY_KIDNAP_OBJECTIVE_01</Reward_Param1>
		<Prereq>Bestine_Kidnapping_Compound_Clear_AI_NOTIFICATION</Prereq>
	</Event>

	<!--adding next objective ..capture Garnak Fey
	TEXT_CORRUPTION_BESTINE_STORY_KIDNAP_OBJECTIVE_03
	Move Ig88 next to ral falan-->
	<Event Name="Bestine_Kidnapping_ADD_OBJECTIVE_MoveTo_Ral_Falan">
		<Event_Type>STORY_ELAPSED</Event_Type>
		<Event_Param1>3</Event_Param1>
		<Reward_Type>ADD_OBJECTIVE</Reward_Type>
		<Reward_Param1>TEXT_CORRUPTION_BESTINE_STORY_KIDNAP_OBJECTIVE_03</Reward_Param1>
		<Prereq>Bestine_Kidnapping_COMPLETE_OBJECTIVE_Secure_The_Compound</Prereq>
	</Event>

	<Event Name="Bestine_Kidnapping_IG88_Reaches_RalFalan_AI_NOTIFICATION">
		<Event_Type>STORY_AI_NOTIFICATION</Event_Type>
		<Event_Param2>Bestine_Kidnapping_IG88_Reaches_RalFalan_AI_NOTIFICATION</Event_Param2>
	</Event>

	<!--completing move-to objective-->
	<Event Name="Bestine_Kidnapping_COMPLETE_OBJECTIVE_MoveTo_Ral_Falan">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>OBJECTIVE_COMPLETE</Reward_Type>
		<Reward_Param1>TEXT_CORRUPTION_BESTINE_STORY_KIDNAP_OBJECTIVE_03</Reward_Param1>
		<Prereq>Bestine_Kidnapping_IG88_Reaches_RalFalan_AI_NOTIFICATION</Prereq>
	</Event>

	<!--adding next objective ..escort Ral Falan back to the shuttle
	TEXT_CORRUPTION_BESTINE_STORY_KIDNAP_OBJECTIVE_04
	Move Ig88 next to ral falan-->
	<Event Name="Bestine_Kidnapping_ADD_OBJECTIVE_Escort_Ral_Falan_BackToShuttle">
		<Event_Type>STORY_ELAPSED</Event_Type>
		<Event_Param1>1</Event_Param1>
		<Reward_Type>ADD_OBJECTIVE</Reward_Type>
		<Reward_Param1>TEXT_CORRUPTION_BESTINE_STORY_KIDNAP_OBJECTIVE_04</Reward_Param1>
		<Prereq>Bestine_Kidnapping_COMPLETE_OBJECTIVE_MoveTo_Ral_Falan</Prereq>
	</Event>

<!--All Mission Dialog Goes Here-->
<!--MISSION START Dialog Goes Here-->
	<!-- TEXT_SPEECH_BESTINE_KID_TACTICAL_COR07_02
	IG-88: The commander Ral Falan is the most powerful man on the planet. 
	Taking him hostage and acquiring his plans and secrets will have galaxy wide effects.-->
	<Event Name="Bestine_Kidnapping_Mission_Start_AI_NOTIFICATION">
		<Event_Type>STORY_AI_NOTIFICATION</Event_Type>
		<Event_Param2>Bestine_Kidnapping_Mission_Start_AI_NOTIFICATION</Event_Param2>
	</Event>

	<Event Name="Bestine_Kidnapping_Mission_Start_DIALOG">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_BESTINE_KID_TACTICAL_COR07_02</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>BESTINE_KID_TACTICAL_COR07_02</Reward_Param8>
		<Reward_Param9>IG-88_Loop</Reward_Param9>
		<Reward_Param10>1</Reward_Param10>
		<Prereq>Bestine_Kidnapping_Mission_Start_AI_NOTIFICATION</Prereq>
	</Event>

	<Event Name="Bestine_Kidnapping_Mission_Start_Remove_Text">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>BESTINE_KID_TACTICAL_COR07_02</Event_Param1>
	<!--<Event_Type>STORY_ELAPSED</Event_Type>
		<Event_Param1>5</Event_Param1> -->
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_BESTINE_KID_TACTICAL_COR07_02</Reward_Param1>
		<Reward_Param4>remove</Reward_Param4>
		<Prereq>Bestine_Kidnapping_Mission_Start_DIALOG</Prereq>
	</Event>

	<Event Name="Bestine_Kidnapping_Mission_Start_Remove_Movie">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>STOP_COMMANDBAR_MOVIE</Reward_Type>
		<Prereq>Bestine_Kidnapping_Mission_Start_Remove_Text</Prereq>
	</Event>

<!--WIN Notification Here-->
	<Event Name="Bestine_Kidnapping_Player_Wins_AI_NOTIFICATION">
		<Event_Type>STORY_AI_NOTIFICATION</Event_Type>
		<Event_Param2>Bestine_Kidnapping_Player_Wins_AI_NOTIFICATION</Event_Param2>
	</Event>

	<Event Name="Bestine_Kidnapping_Allow_Victory">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>ENABLE_VICTORY</Reward_Type>
		<Reward_Param1>1</Reward_Param1>
		<Prereq>Bestine_Kidnapping_Player_Wins_AI_NOTIFICATION</Prereq>
	</Event>

<!--LOSE Notification Here-->
	<Event Name="Bestine_Kidnapping_Player_Loses_AI_NOTIFICATION">
		<Event_Type>STORY_AI_NOTIFICATION</Event_Type>
		<Event_Param2>Bestine_Kidnapping_Player_Loses_AI_NOTIFICATION</Event_Param2>
	</Event>

<!--Win Conditions-->
	<Event Name="Bestine_Kidnapping_Player_Wins">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>VICTORY</Reward_Type>
		<Reward_Param1>Underworld</Reward_Param1>
		<Prereq>Bestine_Kidnapping_Player_Wins_AI_NOTIFICATION</Prereq>
	</Event>

	<Event Name="Bestine_Kidnapping_Player_Wins_STORY_VICTORY">
		<Event_Type>STORY_VICTORY</Event_Type>
		<Event_Param1>Underworld</Event_Param1>
	</Event>

	<!--completing remaining objectives-->
	<Event Name="Bestine_Kidnapping_COMPLETE_OBJECTIVE_IG88_Must_Live">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>OBJECTIVE_COMPLETE</Reward_Type>
		<Reward_Param1>TEXT_MUUNILINST_KIDNAPPING_OBJECTIVE_01</Reward_Param1>
		<Prereq>Bestine_Kidnapping_Player_Wins_AI_NOTIFICATION</Prereq>
	</Event>

	<!--completing objective ..capture Garnak Fey
	TEXT_CORRUPTION_BESTINE_STORY_KIDNAP_OBJECTIVE_04
	Escort Ral Falan back to the transport.-->
	<Event Name="Bestine_Kidnapping_COMPLETE_OBJECTIVE_Capture_Ral_Falan">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>OBJECTIVE_COMPLETE</Reward_Type>
		<Reward_Param1>TEXT_CORRUPTION_BESTINE_STORY_KIDNAP_OBJECTIVE_04</Reward_Param1>
		<Prereq>Bestine_Kidnapping_Player_Wins_AI_NOTIFICATION</Prereq>
	</Event>

<!--Loss Conditions-->
	<Event Name="Bestine_Kidnapping_Mission_Loss_Rebel">
		<Event_Type>STORY_AI_NOTIFICATION</Event_Type>
		<Event_Param2>VICTORY_REBEL</Event_Param2>
		<Reward_Type>VICTORY</Reward_Type>
		<Reward_Param1>Rebel</Reward_Param1>
	</Event>

	<Event Name="Bestine_Kidnapping_Mission_Loss_Empire">
		<Event_Type>STORY_AI_NOTIFICATION</Event_Type>
		<Event_Param2>VICTORY_EMPIRE</Event_Param2>
		<Reward_Type>VICTORY</Reward_Type>
		<Reward_Param1>Empire</Reward_Param1>
	</Event>

	<Event Name="Bestine_Kidnapping_Mission_Loss_Hutts">
		<Event_Type>STORY_AI_NOTIFICATION</Event_Type>
		<Event_Param2>VICTORY_HUTTS</Event_Param2>
		<Reward_Type>VICTORY</Reward_Type>
		<Reward_Param1>Hutts</Reward_Param1>
	</Event>

	<Event Name="Bestine_Kidnapping_Mission_Loss_Pirates">
		<Event_Type>STORY_AI_NOTIFICATION</Event_Type>
		<Event_Param2>VICTORY_PIRATES</Event_Param2>
		<Reward_Type>VICTORY</Reward_Type>
		<Reward_Param1>Pirates</Reward_Param1>
	</Event>

	<Event Name="Bestine_Kidnapping_FAIL_OBJECTIVE_IG88_Must_Survive">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>OBJECTIVE_FAILED</Reward_Type>
		<Reward_Param1>TEXT_MUUNILINST_KIDNAPPING_OBJECTIVE_01</Reward_Param1>
		<Prereq>Bestine_Kidnapping_Player_Loses_AI_NOTIFICATION</Prereq>
	</Event>
</Story>

