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

	<Event Name="Kessel_Piracy_Mission_Disable_Victory">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>ENABLE_VICTORY</Reward_Type>
		<Reward_Param1>0</Reward_Param1>
		<Prereq>Kessel_Piracy_Mission_Begin</Prereq>
	</Event>

<!--disable retreat ability-->
	<Event Name="Kessel_Piracy_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>Kessel_Piracy_Mission_Begin</Prereq>
	</Event>

<!--disable retreat ability-->
	<Event Name="Kessel_Piracy_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>Kessel_Piracy_Mission_Begin</Prereq>
	</Event>

<!--disable retreat ability-->
	<Event Name="Kessel_Piracy_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>Kessel_Piracy_Mission_Begin</Prereq>
	</Event>

<!--disable retreat ability-->
	<Event Name="Kessel_Piracy_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>Kessel_Piracy_Mission_Begin</Prereq>
	</Event>

	<Event Name="Kessel_Piracy_Mission_Add_Objective_00">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>ADD_OBJECTIVE</Reward_Type>
		<Reward_Param1>TEXT_KESSEL_PIRACY_OBJECTIVE_00</Reward_Param1>
		<Prereq>Kessel_Piracy_Mission_Begin</Prereq>
	</Event>

	<Event Name="Kessel_Piracy_Mission_Add_Objective_01">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>ADD_OBJECTIVE</Reward_Type>
		<Reward_Param1>TEXT_KESSEL_PIRACY_OBJECTIVE_01</Reward_Param1>
		<Prereq>Kessel_Piracy_Mission_Begin</Prereq>
	</Event>

	<Event Name="Kessel_Piracy_Mission_Add_Objective_02">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>ADD_OBJECTIVE</Reward_Type>
		<Reward_Param1>TEXT_KESSEL_PIRACY_OBJECTIVE_02</Reward_Param1>
		<Prereq>Kessel_Piracy_Mission_Begin</Prereq>
	</Event>

	<Event Name="Kessel_Piracy_Mission_Complete_Objective_00">
		<Event_Type>STORY_AI_NOTIFICATION</Event_Type>
		<Event_Param2>COMPLETE_OBJECTIVE_00</Event_Param2>
		<Reward_Type>OBJECTIVE_COMPLETE</Reward_Type>
		<Reward_Param1>TEXT_KESSEL_PIRACY_OBJECTIVE_00</Reward_Param1>
		<Prereq>Kessel_Piracy_Mission_Add_Objective_00</Prereq>
	</Event>

	<Event Name="Kessel_Piracy_Mission_Complete_Objective_02">
		<Event_Type>STORY_AI_NOTIFICATION</Event_Type>
		<Event_Param2>COMPLETE_OBJECTIVE_02</Event_Param2>
		<Reward_Type>OBJECTIVE_COMPLETE</Reward_Type>
		<Reward_Param1>TEXT_KESSEL_PIRACY_OBJECTIVE_02</Reward_Param1>
		<Prereq>Kessel_Piracy_Mission_Add_Objective_02</Prereq>
	</Event>

	<Event Name="Kessel_Piracy_Mission_Enable_Victory">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>ENABLE_VICTORY</Reward_Type>
		<Reward_Param1>1</Reward_Param1>
		<Prereq>Kessel_Piracy_Mission_Complete_Objective_00</Prereq>
	</Event>

	<Event Name="Kessel_Piracy_Mission_Complete_Victory_Trigger">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>VICTORY</Reward_Type>
		<Reward_Param1>Underworld</Reward_Param1>
		<Prereq>Kessel_Piracy_Mission_Enable_Victory</Prereq>
	</Event>

	<Event Name="Kessel_Piracy_Mission_Fail_Objective_00">
		<Event_Type>STORY_AI_NOTIFICATION</Event_Type>
		<Event_Param2>FAIL_OBJECTIVE_00</Event_Param2>
		<Reward_Type>OBJECTIVE_FAILED</Reward_Type>
		<Reward_Param1>TEXT_KESSEL_PIRACY_OBJECTIVE_00</Reward_Param1>
		<Prereq>Kessel_Piracy_Mission_Add_Objective_00</Prereq>
	</Event>

	<Event Name="Kessel_Piracy_Mission_Fail_Objective_01">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>OBJECTIVE_FAILED</Reward_Type>
		<Reward_Param1>TEXT_KESSEL_PIRACY_OBJECTIVE_01</Reward_Param1>
		<Prereq>Kessel_Piracy_Mission_Fail_Objective_00</Prereq>
	</Event>

	<Event Name="Kessel_Piracy_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="Kessel_Piracy_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="Kessel_Piracy_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="Kessel_Piracy_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="Kessel_Piracy_Mission_Re-Enable_Victory_On_Loss">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>ENABLE_VICTORY</Reward_Type>
		<Reward_Param1>1</Reward_Param1>
		<Prereq>Kessel_Piracy_Mission_Loss_Rebel</Prereq>
		<Prereq>Kessel_Piracy_Mission_Loss_Empire</Prereq>
		<Prereq>Kessel_Piracy_Mission_Loss_Hutts</Prereq>
		<Prereq>Kessel_Piracy_Mission_Loss_Pirates</Prereq>
	</Event>

	<!--disable retreat ability-->
	<Event Name="Kessel_Piracy_Allow_Retreat_Empire">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>DISABLE_RETREAT</Reward_Type>
		<Reward_Param1>EMPIRE</Reward_Param1>
		<Reward_Param2>0</Reward_Param2>
		<Prereq>Kessel_Piracy_Mission_Re-Enable_Victory_On_Loss</Prereq>
	</Event>

<!--disable retreat ability-->
	<Event Name="Kessel_Piracy_Allow_Retreat_Rebel">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>DISABLE_RETREAT</Reward_Type>
		<Reward_Param1>REBEL</Reward_Param1>
		<Reward_Param2>0</Reward_Param2>
		<Prereq>Kessel_Piracy_Mission_Re-Enable_Victory_On_Loss</Prereq>
	</Event>

<!--All Mission Dialog Goes Here-->
<!--TEXT_SPEECH_UW_CLD_04
IG-88:	I am tasked to enter the Kessel system and locate an Imperial Communication Satellite.
		With that unit in our control, enemy fleet movement will be revealed, as well as allowing
		us to direct enemy ship movements to the Zann space docks to steal vessels at will.
		The broken networking will cause some cruise ships to be lost. Other units will run out
		of supplies as the beacon is no longer sending them in the right direction. That is a
		small price to pay to make sure the consortium gets what it needs.-->
	<Event Name="Kessel_Piracy_Mission_Speech_Line_00">
		<Event_Type>STORY_AI_NOTIFICATION</Event_Type>
		<Event_Param2>TEXT_SPEECH_UW_CLD_04</Event_Param2>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_UW_CLD_04</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>UW_CLD_04</Reward_Param8>
		<Reward_Param9>IG-88_Loop</Reward_Param9>
		<Reward_Param10>1</Reward_Param10>
		<Prereq>Kessel_Piracy_Mission_Begin</Prereq>
	</Event>

	<Event Name="Kessel_Piracy_Mission_Speech_Line_00_Remove_Text">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>UW_CLD_04</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_UW_CLD_04</Reward_Param1>
		<Reward_Param4>remove</Reward_Param4>
		<Prereq>Kessel_Piracy_Mission_Speech_Line_00</Prereq>
	</Event>

	<Event Name="Kessel_Piracy_Mission_Speech_Line_00_Remove_Movie">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>STOP_COMMANDBAR_MOVIE</Reward_Type>
		<Prereq>Kessel_Piracy_Mission_Speech_Line_00_Remove_Text</Prereq>
	</Event>
</Story>

