<?xml version="1.0"?>
<Story>
<!-- Underworld Act I Mission 03: Communications Breakdown -->
<!-- Mission start setup -->
	<Event Name="Underworld_A01M03_Begin">
		<Event_Type>STORY_ELAPSED</Event_Type>
		<Event_Param1>0</Event_Param1>
	</Event>

	<Event Name="Underworld_A01M03_Autoresolve_Off">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>HIDE_AUTORESOLVE</Reward_Type>
		<Prereq>Underworld_A01M03_Begin</Prereq>
	</Event>

<!-- Turn off advisor -->
	<Event Name="Underworld_A01M03_Turn_Off_Land_Advisor">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>SET_ADVISOR</Reward_Type>
		<Reward_Param1>0</Reward_Param1>
		<Prereq>Underworld_A01M03_Begin</Prereq>
	</Event>

	<Event Name="Underworld_A01M03_Prevent_Victory">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>ENABLE_VICTORY</Reward_Type>
		<Reward_Param1>0</Reward_Param1>
		<Prereq>Underworld_A01M03_Begin</Prereq>
	</Event>

<!-- Introduction Cinematic Dialog
Consortium Soldier: No reports of outgoing transports...nowhere to hide...what is this?-->
	<Event Name="Mission_3_Intro_Dialog_00">
		<Event_Type>STORY_AI_NOTIFICATION</Event_Type>
		<Event_Param2>INTRO_DIALOG_00</Event_Param2>
		<Event_Param1>0</Event_Param1>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_UW_ACT01_M03_01</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>UW_ACT01_M03_01</Reward_Param8>
		<Reward_Param9/>
		<Reward_Param10>0</Reward_Param10>
		<Prereq>Underworld_A01M03_Begin</Prereq>
	</Event>

	<Event Name="Mission_3_Intro_Dialog_00_Speech_Done">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>UW_ACT01_M03_01</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_UW_ACT01_M03_01</Reward_Param1>
		<Reward_Param4>Remove</Reward_Param4>
		<Prereq>Mission_3_Intro_Dialog_00</Prereq>
	</Event>

<!-- 
Urai Fen: This is Jabba's poor excuse for an ambush.  Expect trouble at the landing site.-->
	<Event Name="Mission_3_Intro_Dialog_01">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_UW_ACT01_M03_02</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>UW_ACT01_M03_02</Reward_Param8>
		<Reward_Param9/>
		<Reward_Param10>0</Reward_Param10>
		<Prereq>Mission_3_Intro_Dialog_00_Speech_Done</Prereq>
	</Event>

	<Event Name="Mission_3_Intro_Dialog_01_Speech_Done">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>UW_ACT01_M03_02</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_UW_ACT01_M03_02</Reward_Param1>
		<Reward_Param4>Remove</Reward_Param4>
		<Prereq>Mission_3_Intro_Dialog_01</Prereq>
	</Event>

<!-- 
Consortium Soldier: Uh, sir? We've got a...disturbance...-->
	<Event Name="Mission_3_Intro_Dialog_02">
		<Event_Type>STORY_AI_NOTIFICATION</Event_Type>
		<Event_Param2>INTRO_DIALOG_01</Event_Param2>
		<Event_Param1>0</Event_Param1>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_UW_ACT01_M03_03</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>UW_ACT01_M03_03</Reward_Param8>
		<Reward_Param9/>
		<Reward_Param10>0</Reward_Param10>
		<Prereq>Underworld_A01M03_Begin</Prereq>
	</Event>

	<Event Name="Mission_3_Intro_Dialog_02_Speech_Done">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>UW_ACT01_M03_03</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_UW_ACT01_M03_03</Reward_Param1>
		<Reward_Param4>Remove</Reward_Param4>
		<Prereq>Mission_3_Intro_Dialog_02</Prereq>
	</Event>

<!-- 
Urai Fen: I can only imagine. Maintain defenses here - I will reestablish a reinforcement point.-->
	<Event Name="Mission_3_Intro_Dialog_03">
		<Event_Type>STORY_AI_NOTIFICATION</Event_Type>
		<Event_Param2>INTRO_DIALOG_02</Event_Param2>
		<Event_Param1>0</Event_Param1>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_UW_ACT01_M03_04</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>UW_ACT01_M03_04</Reward_Param8>
		<Reward_Param9/>
		<Reward_Param10>0</Reward_Param10>
		<Prereq>Underworld_A01M03_Begin</Prereq>
	</Event>

	<Event Name="Mission_3_Intro_Dialog_03_Speech_Done">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>UW_ACT01_M03_04</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_UW_ACT01_M03_04</Reward_Param1>
		<Reward_Param4>Remove</Reward_Param4>
		<Prereq>Mission_3_Intro_Dialog_03</Prereq>
	</Event>

	<Event Name="UM03_ADD_OBJECTIVE_Recapture_Point">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>ADD_OBJECTIVE</Reward_Type>
		<Reward_Param1>TEXT_UW_ACT01_M03_GOAL_01</Reward_Param1>
		<Prereq>Underworld_A01M03_Begin</Prereq>
	</Event>

	<Event Name="UM03_ADD_OBJECTIVE_Urai">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>ADD_OBJECTIVE</Reward_Type>
		<Reward_Param1>TEXT_UW_ACT01_M04_GOAL_04</Reward_Param1>
		<Prereq>Underworld_A01M03_Begin</Prereq>
	</Event>

	<Event Name="UM03_Give_Urai_Stealth_Hint">
		<Event_Type>STORY_ELAPSED</Event_Type>
		<Event_Param1>5</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_UW_ACT01_M03_HINT_01</Reward_Param1>
		<Reward_Param2>10</Reward_Param2>
		<Prereq>Mission_3_Intro_Dialog_03_Speech_Done</Prereq>
	</Event>

<!-- Midtro Cinematic Elements
Hutt Soldier: There he is, just like Jabba said. Only a coward sneaks into battle!-->
	<Event Name="Mission_3_Midtro_Dialog_00">
		<Event_Type>STORY_AI_NOTIFICATION</Event_Type>
		<Event_Param2>MIDTRO_DIALOG_00</Event_Param2>
		<Event_Param1>0</Event_Param1>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_UW_ACT01_M03_05</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>UW_ACT01_M03_05</Reward_Param8>
		<Reward_Param9/>
		<Reward_Param10>0</Reward_Param10>
		<Prereq>Underworld_A01M03_Begin</Prereq>
	</Event>

	<Event Name="Mission_3_Midtro_Dialog_00_Speech_Done">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>UW_ACT01_M03_05</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_UW_ACT01_M03_05</Reward_Param1>
		<Reward_Param4>Remove</Reward_Param4>
		<Prereq>Mission_3_Midtro_Dialog_00</Prereq>
	</Event>

<!--
Urai Fen: My, we are ripe with hypocrisy. Where were you when we landed?-->
	<Event Name="Mission_3_Midtro_Dialog_01">
		<Event_Type>STORY_AI_NOTIFICATION</Event_Type>
		<Event_Param2>MIDTRO_DIALOG_01</Event_Param2>
		<Event_Param1>0</Event_Param1>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_UW_ACT01_M03_06</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>UW_ACT01_M03_06</Reward_Param8>
		<Reward_Param9/>
		<Reward_Param10>0</Reward_Param10>
		<Prereq>Underworld_A01M03_Begin</Prereq>
	</Event>

	<Event Name="Mission_3_Midtro_Dialog_01_Speech_Done">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>UW_ACT01_M03_06</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_UW_ACT01_M03_06</Reward_Param1>
		<Reward_Param4>Remove</Reward_Param4>
		<Prereq>Mission_3_Midtro_Dialog_01</Prereq>
	</Event>

<!-- 
Hutt Soldier: Enough talk! Double pay for the one who takes his head!-->
	<Event Name="Mission_3_Midtro_Dialog_02">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_UW_ACT01_M03_07</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>UW_ACT01_M03_07</Reward_Param8>
		<Reward_Param9/>
		<Reward_Param10>0</Reward_Param10>
		<Prereq>Mission_3_Midtro_Dialog_01_Speech_Done</Prereq>
	</Event>

	<Event Name="Mission_3_Midtro_Dialog_02_Speech_Done">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>UW_ACT01_M03_07</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_UW_ACT01_M03_07</Reward_Param1>
		<Reward_Param4>Remove</Reward_Param4>
		<Prereq>Mission_3_Midtro_Dialog_02</Prereq>
	</Event>

	<Event Name="M03_COMPLETE_OBJECTIVE_Recapture_Point">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>OBJECTIVE_COMPLETE</Reward_Type>
		<Reward_Param1>TEXT_UW_ACT01_M03_GOAL_01</Reward_Param1>
		<Prereq>Mission_3_Midtro_Dialog_02_Speech_Done</Prereq>
	</Event>

	<Event Name="UM03_ADD_OBJECTIVE_Destroy_Hutts">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>ADD_OBJECTIVE</Reward_Type>
		<Reward_Param1>TEXT_UW_ACT01_M03_GOAL_02</Reward_Param1>
		<Prereq>Mission_3_Midtro_Dialog_02_Speech_Done</Prereq>
	</Event>

	<Event Name="UM03_Give_Urai_Stun_Hint">
		<Event_Type>STORY_ELAPSED</Event_Type>
		<Event_Param1>5</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_UW_ACT01_M03_HINT_02</Reward_Param1>
		<Reward_Param2>10</Reward_Param2>
		<Prereq>Mission_3_Midtro_Dialog_02_Speech_Done</Prereq>
	</Event>

<!--
Urai Fen: The reinforcement point is ours. Bring in all remaining ground forces. Remember, we need that Comm Station intact.-->
	<Event Name="Mission_3_Midtro_Dialog_Done">
		<Event_Type>STORY_AI_NOTIFICATION</Event_Type>
		<Event_Param2>MIDTRO_DIALOG_DONE</Event_Param2>
		<Event_Param1>0</Event_Param1>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_UW_ACT01_M03_08</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>UW_ACT01_M03_08</Reward_Param8>
		<Reward_Param9/>
		<Reward_Param10>0</Reward_Param10>
		<Prereq>Underworld_A01M03_Begin</Prereq>
	</Event>

	<Event Name="Mission_3_Midtro_Dialog_Done_Speech_Done">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>UW_ACT01_M03_08</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_UW_ACT01_M03_08</Reward_Param1>
		<Reward_Param4>Remove</Reward_Param4>
		<Prereq>Mission_3_Midtro_Dialog_Done</Prereq>
	</Event>

<!-- LUA relays Victory -->
	<Event Name="LUA_M03_Victory_Reporting">
		<Event_Type>STORY_AI_NOTIFICATION</Event_Type>
		<Event_Param2>UM03_ENDMISSION_VICTORY</Event_Param2>
	</Event>

	<Event Name="Underworld_M03_Victory">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>VICTORY</Reward_Type>
		<Reward_Param1>Underworld</Reward_Param1>
		<Prereq>LUA_M03_Victory_Reporting</Prereq>
	</Event>

	<Event Name="Underworld_M03_Set_Victory_Flag">
		<Event_Type>STORY_VICTORY</Event_Type>
		<Event_Param1>Underworld</Event_Param1>
		<Reward_Type>SET_FLAG</Reward_Type>
		<Reward_Param1>Underworld_Mission_03_Win</Reward_Param1>
		<Reward_Param2>1</Reward_Param2>
	</Event>

	<Event Name="Underworld_A01M03_Re-Enable_Retreat">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>DISABLE_RETREAT</Reward_Type>
		<Reward_Param1>UNDERWORLD</Reward_Param1>
		<Reward_Param2>0</Reward_Param2>
		<Prereq>Underworld_M03_Set_Victory_Flag</Prereq>
	</Event>

	<Event Name="M03_COMPLETE_OBJECTIVE_Destroy_Hutts">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>OBJECTIVE_COMPLETE</Reward_Type>
		<Reward_Param1>TEXT_UW_ACT01_M03_GOAL_02</Reward_Param1>
		<Prereq>LUA_M03_Victory_Reporting</Prereq>
	</Event>

	<Event Name="M03_COMPLETE_OBJECTIVE_Urai">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>OBJECTIVE_COMPLETE</Reward_Type>
		<Reward_Param1>TEXT_UW_ACT01_M04_GOAL_04</Reward_Param1>
		<Prereq>LUA_M03_Victory_Reporting</Prereq>
	</Event>

<!-- URAI DIES GAME OVER! -->
	<Event Name="Get_M03_Lose_Message_From_Lua">
		<Event_Type>STORY_AI_NOTIFICATION</Event_Type>
		<Event_Param2>UM03_ENDMISSION_DEFEAT</Event_Param2>
	</Event>

	<Event Name="M03_Failed_Urai_Must_Survive">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>OBJECTIVE_FAILED</Reward_Type>
		<Reward_Param1>TEXT_UW_ACT01_M04_GOAL_04</Reward_Param1>
		<Prereq>Get_M03_Lose_Message_From_Lua</Prereq>
	</Event>

	<Event Name="M03_Urai_Dead_You_Lose">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>VICTORY</Reward_Type>
		<Reward_Param1>Hutts</Reward_Param1>
		<Prereq>Get_M03_Lose_Message_From_Lua</Prereq>
	</Event>
</Story>
