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

	<Event Name="Fondor_Piracy_Mission_Prevent_Victory">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>ENABLE_VICTORY</Reward_Type>
		<Reward_Param1>0</Reward_Param1>
		<Prereq>Fondor_Piracy_Mission_Begin</Prereq>
	</Event>

	<Event Name="Fondor_Piracy_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>Fondor_Piracy_Mission_Begin</Prereq>
	</Event>

	<Event Name="Fondor_Piracy_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>Fondor_Piracy_Mission_Begin</Prereq>
	</Event>

	<Event Name="Fondor_Piracy_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>Fondor_Piracy_Mission_Begin</Prereq>
	</Event>

	<Event Name="Fondor_Piracy_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>Fondor_Piracy_Mission_Begin</Prereq>
	</Event>

<!--Mission objectives
TEXT_KUAT_KIDNAPPING_OBJECTIVE_01		Bossk must survive
TEXT_SPEECH_FONDOR_PIR_OBJECTIVE_02		Destroy the enemy space station.-->

	<Event Name="Fondor_Piracy_ADD_OBJECTIVE_Bossk_Must_Survive">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>ADD_OBJECTIVE</Reward_Type>
		<Reward_Param1>TEXT_KUAT_KIDNAPPING_OBJECTIVE_01</Reward_Param1>
		<Prereq>Fondor_Piracy_Mission_Begin</Prereq>
	</Event>

	<!--TEXT_CORRUPTION_UTAPAU_STORY_KIDNAP_OBJECTIVE_02
	Secure the Fey Compound by destroying all defenders and defense turrets.-->
	<Event Name="Fondor_Piracy_ADD_OBJECTIVE_Destroy_The_SpaceStation">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>ADD_OBJECTIVE</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_FONDOR_PIR_OBJECTIVE_02</Reward_Param1>
		<Prereq>Fondor_Piracy_ADD_OBJECTIVE_Bossk_Must_Survive</Prereq>
	</Event>

<!--All Mission Dialog Goes Here-->
<!--MISSION START Dialog Goes Here-->
	<!--TEXT_SPEECH_FONDOR_PIR_TACTICAL_COR21_02
	Bossk: The Fondor space stations are extremely powerful.
	We must maneuver our forces to destroy one completely.-->
	<Event Name="Fondor_Piracy_Mission_Start_AI_NOTIFICATION">
		<Event_Type>STORY_AI_NOTIFICATION</Event_Type>
		<Event_Param2>Fondor_Piracy_Mission_Start_AI_NOTIFICATION</Event_Param2>
	</Event>

	<Event Name="Fondor_Piracy_Mission_Start_DIALOG">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_FONDOR_PIR_TACTICAL_COR21_02</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param7>ALIEN_SPEECH</Reward_Param7>
		<Reward_Param8>FONDOR_PIR_TACTICAL_COR21_02</Reward_Param8>
		<Reward_Param9>Bossk_Loop</Reward_Param9>
		<Reward_Param10>1</Reward_Param10>
		<Prereq>Fondor_Piracy_Mission_Start_AI_NOTIFICATION</Prereq>
	</Event>

	<Event Name="Fondor_Piracy_Mission_Start_Remove_Text">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>FONDOR_PIR_TACTICAL_COR21_02</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_FONDOR_PIR_TACTICAL_COR21_02</Reward_Param1>
		<Reward_Param4>remove</Reward_Param4>
		<Prereq>Fondor_Piracy_Mission_Start_DIALOG</Prereq>
	</Event>

	<Event Name="Fondor_Piracy_Mission_Start_Remove_Movie">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>STOP_COMMANDBAR_MOVIE</Reward_Type>
		<Prereq>Fondor_Piracy_Mission_Start_Remove_Text</Prereq>
	</Event>

<!--WIN Dialog Goes Here-->
	<Event Name="Fondor_Piracy_Player_Wins_AI_NOTIFICATION">
		<Event_Type>STORY_AI_NOTIFICATION</Event_Type>
		<Event_Param2>Fondor_Piracy_Player_Wins_AI_NOTIFICATION</Event_Param2>
	</Event>

<!--LOSE Dialog Goes Here-->
	<Event Name="Fondor_Piracy_Player_Loses_AI_NOTIFICATION">
		<Event_Type>STORY_AI_NOTIFICATION</Event_Type>
		<Event_Param2>Fondor_Piracy_Player_Loses_AI_NOTIFICATION</Event_Param2>
	</Event>

	<Event Name="Fondor_Piracy_Mission_RE_ENABLE_Victory">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>ENABLE_VICTORY</Reward_Type>
		<Reward_Param1>1</Reward_Param1>
		<Prereq>Fondor_Piracy_Player_Wins_AI_NOTIFICATION</Prereq>
		<Prereq>Fondor_Piracy_Player_Loses_AI_NOTIFICATION</Prereq>
	</Event>

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

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

	<!--completing remaining objectives-->
	<Event Name="Fondor_Piracy_COMPLETE_OBJECTIVE_Bossk_Must_Survive">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>OBJECTIVE_COMPLETE</Reward_Type>
		<Reward_Param1>TEXT_KUAT_KIDNAPPING_OBJECTIVE_01</Reward_Param1>
		<Prereq>Fondor_Piracy_Player_Wins_AI_NOTIFICATION</Prereq>
	</Event>

	<!--TEXT_CORRUPTION_UTAPAU_STORY_KIDNAP_OBJECTIVE_02
	Secure the Fey Compound by destroying all defenders and defense turrets.-->
	<Event Name="Fondor_Piracy_COMPLETE_OBJECTIVE_Destroy_The_SpaceStation">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>OBJECTIVE_COMPLETE</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_FONDOR_PIR_OBJECTIVE_02</Reward_Param1>
		<Prereq>Fondor_Piracy_Player_Wins_AI_NOTIFICATION</Prereq>
	</Event>

<!--Loss Conditions-->
	<Event Name="Fondor_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="Fondor_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="Fondor_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="Fondor_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="Fondor_Piracy_FAIL_OBJECTIVE_Bossk_Must_Survive">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>OBJECTIVE_FAILED</Reward_Type>
		<Reward_Param1>TEXT_KUAT_KIDNAPPING_OBJECTIVE_01</Reward_Param1>
		<Prereq>Fondor_Piracy_Player_Loses_AI_NOTIFICATION</Prereq>
	</Event>
</Story>

