<?xml version="1.0"?>
<Story>
<!-- To skip to mission 2, enter "setvar Rebel_A01M01_Win 1" in the command console -->
<!-- To skip to mission 3, enter "triggerevent RA1_To_3" in the command console -->
<!--<Event Name="">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>STOP_COMMANDBAR_MOVIE</Reward_Type>
		<Prereq></Prereq>
	</Event>

	<Event_Type>STORY_ELAPSED</Event_Type>
	<Event_Param1>2</Event_Param1>

	<Reward_Type>MULTIMEDIA</Reward_Type>
	<Reward_Param1>TEXT_SPEECH_</Reward_Param1>
	<Reward_Param2>-1</Reward_Param2>
	<Reward_Param8></Reward_Param8>
	<Reward_Param9>_Loop</Reward_Param9>
	<Reward_Param10>1</Reward_Param10>

	<Event_Type>STORY_SPEECH_DONE</Event_Type>
	<Event_Param1></Event_Param1>
	<Reward_Type>SCREEN_TEXT</Reward_Type>
	<Reward_Param1>TEXT_SPEECH_</Reward_Param1>
	<Reward_Param4>remove</Reward_Param4>-->

<!-- Preliminary Setup  -->
	<Event Name="Rebel_ActI_Begin">
		<Event_Type>STORY_ELAPSED</Event_Type>
		<Event_Param1>0</Event_Param1>
	</Event>

	<Event Name="Rebel_ActI_Constrain_Tech">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>SET_MAX_TECH_LEVEL</Reward_Type>
		<Reward_Param1>Rebel</Reward_Param1>
		<Reward_Param2>1</Reward_Param2>
		<Prereq>Rebel_ActI_Begin</Prereq>
	</Event>

	<Event Name="Set_Empire_Act_Counter">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>SET_FLAG</Reward_Type>
		<Reward_Param1>Rebel_Act_Counter</Reward_Param1>
		<Reward_Param2>1</Reward_Param2>
		<Prereq>Rebel_ActI_Begin</Prereq>
	</Event>

	<Event Name="Unlock_Space_Station_01_For_Rebels">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>BUILDABLE_UNIT</Reward_Type>
		<Reward_Param1>Rebel_Star_Base_1</Reward_Param1>
		<Prereq>Rebel_ActI_Begin</Prereq>
	</Event>

	<Event Name="Unlock_Y_Wings_For_Rebels"> <!-- Story Variant -->
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>BUILDABLE_UNIT</Reward_Type>
		<Reward_Param1>Y-Wing_Squadron_Story</Reward_Param1>
		<Prereq>Rebel_ActI_Begin</Prereq>
	</Event>

	<Event Name="Lock_Y_Wings_For_Rebels"> <!-- Lock Normal Unit -->
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>LOCK_UNIT</Reward_Type>
		<Reward_Param1>Y-Wing_Squadron</Reward_Param1>
		<Prereq>Rebel_ActI_Begin</Prereq>
	</Event>

	<Event Name="Lock_X_Wings_For_Rebels">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>LOCK_UNIT</Reward_Type>
		<Reward_Param1>Rebel_X-Wing_Squadron</Reward_Param1>
		<Prereq>Rebel_ActI_Begin</Prereq>
	</Event>

	<Event Name="Lock_MonCal_For_Rebels_ActI">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>LOCK_UNIT</Reward_Type>
		<Reward_Param1>Calamari_Cruiser</Reward_Param1>
		<Prereq>Rebel_ActI_Begin</Prereq>
	</Event>

<!--SoaFE: Lock all New Republic Units and Viscount-->
	<Event Name="Lock_Viscount_For_Rebels">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>LOCK_UNIT</Reward_Type>
		<Reward_Param1>Viscount_Calamari_Cruiser</Reward_Param1>
		<Prereq>Rebel_ActI_Begin</Prereq>
	</Event>

	<Event Name="Lock_Nebula_SD_For_Rebels">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>LOCK_UNIT</Reward_Type>
		<Reward_Param1>UEAW_Nebula_SD</Reward_Param1>
		<Prereq>Rebel_ActI_Begin</Prereq>
	</Event>

<!--Going to Lock Home One Type MC80-->
	<Event Name="Lock_MC80B_For_Rebels">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>LOCK_UNIT</Reward_Type>
		<Reward_Param1>MC80_HomeOneType</Reward_Param1>
		<Prereq>Rebel_ActI_Begin</Prereq>
	</Event>

	<Event Name="Lock_E_Wings_For_Rebels">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>LOCK_UNIT</Reward_Type>
		<Reward_Param1>UEAW_EWing_Squadron</Reward_Param1>
		<Prereq>Rebel_ActI_Begin</Prereq>
	</Event>

<!-- Do not modify this tech level without consulting campaign designers -->
	<Event Name="Empire_ActI_Advance_Empire_Tech">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>SET_TECH_LEVEL</Reward_Type>
		<Reward_Param1>Empire</Reward_Param1>
		<Reward_Param2>1</Reward_Param2>
		<Prereq>Rebel_ActI_Begin</Prereq>
	</Event>

<!-- Do not modify this tech level without consulting campaign designers -->
	<Event Name="Empire_ActI_Advance_Rebel_Tech">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>SET_TECH_LEVEL</Reward_Type>
		<Reward_Param1>Rebel</Reward_Param1>
		<Reward_Param2>0</Reward_Param2>
		<Prereq>Rebel_ActI_Begin</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_One_Flag_Set">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>SET_FLAG</Reward_Type>
		<Reward_Param1>Rebel_A01M01_Win</Reward_Param1>
		<Reward_Param2>0</Reward_Param2>
		<Prereq>Rebel_ActI_Begin</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_Two_Flag_Set">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>SET_FLAG</Reward_Type>
		<Reward_Param1>Rebel_A01M02_Win</Reward_Param1>
		<Reward_Param2>0</Reward_Param2>
		<Prereq>Rebel_ActI_Begin</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_Three_Flag_Set">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>SET_FLAG</Reward_Type>
		<Reward_Param1>Rebel_A01M03_Win</Reward_Param1>
		<Reward_Param2>0</Reward_Param2>
		<Prereq>Rebel_ActI_Begin</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Disable_Victory">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>ENABLE_VICTORY</Reward_Type>
		<Reward_Param1>0</Reward_Param1>
		<Prereq>Rebel_ActI_Begin</Prereq>
	</Event>

<!-- Rebel ACT I Planet Reveals -->
	<Event Name="Rebel_ActI_Reveal_00">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>REVEAL_PLANET</Reward_Type>
		<Reward_Param1>Alderaan_Alive</Reward_Param1><!--SoaFE: Need Alive variant-->
		<Reward_Param2>1</Reward_Param2>
		<Prereq>Rebel_ActI_Begin</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Reveal_01">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>REVEAL_PLANET</Reward_Type>
		<Reward_Param1>Dantooine</Reward_Param1>
		<Reward_Param2>1</Reward_Param2>
		<Prereq>Rebel_ActI_Begin</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Reveal_04">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>REVEAL_PLANET</Reward_Type>
		<Reward_Param1>Korriban</Reward_Param1>
		<Reward_Param2>1</Reward_Param2>
		<Prereq>Rebel_ActI_Begin</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Reveal_05">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>REVEAL_PLANET</Reward_Type>
		<Reward_Param1>Kuat</Reward_Param1>
		<Reward_Param2>1</Reward_Param2>
		<Prereq>Rebel_ActI_Begin</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Reveal_07">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>REVEAL_PLANET</Reward_Type>
		<Reward_Param1>Yavin</Reward_Param1>
		<Reward_Param2>1</Reward_Param2>
		<Prereq>Rebel_ActI_Begin</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Reveal_08">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>REVEAL_PLANET</Reward_Type>
		<Reward_Param1>Myrkr</Reward_Param1>
		<Reward_Param2>1</Reward_Param2>
		<Prereq>Rebel_ActI_Begin</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Reveal_09">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>REVEAL_PLANET</Reward_Type>
		<Reward_Param1>Hapes</Reward_Param1>
		<Reward_Param2>1</Reward_Param2>
		<Prereq>Rebel_ActI_Begin</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Reveal_10">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>REVEAL_PLANET</Reward_Type>
		<Reward_Param1>Onderon</Reward_Param1>
		<Reward_Param2>1</Reward_Param2>
		<Prereq>Rebel_ActI_Begin</Prereq>
	</Event>

	<Event Name="OK_To_Begin_Rebel_ActI">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Prereq>Rebel_ActI_Reveal_00 Rebel_ActI_Reveal_01 Rebel_ActI_Reveal_04 Rebel_ActI_Reveal_05 Rebel_ActI_Reveal_07 Rebel_ActI_Reveal_08 Rebel_ActI_Reveal_09 Rebel_ActI_Reveal_10</Prereq>
	</Event>

<!-- MISSION ONE: Shipyard diversion -->
<!-- Trigger mission 1 -->
	<Event Name="Rebel_ActI_Mission_One_10">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>LINK_TACTICAL</Reward_Type>
		<Reward_Param1>Kuat</Reward_Param1>
		<Reward_Param2>SPACE</Reward_Param2>
		<Reward_Param3>Rebel</Reward_Param3>
		<Reward_Param4>RM01_Space_Planet_Kuat.TED</Reward_Param4>
		<Reward_Param5>Empire</Reward_Param5>
		<Reward_Param6/>
		<Reward_Param7>Story_Plots_Rebel_ActI_M01_SPACE.xml</Reward_Param7>
		<Reward_Param8>1</Reward_Param8>
		<Reward_Param9>0</Reward_Param9>
		<Reward_Param10>1</Reward_Param10>
		<Reward_Param11>0</Reward_Param11>
		<!-- Show the Battle Pending dialog? -->
		<Reward_Param13>0</Reward_Param13>
		<Prereq>OK_To_Begin_Rebel_ActI</Prereq>
		<Branch>BRANCH_RA01M01</Branch>
	</Event>

<!-- Mission 1 failed -->
<!-- Detect mission 1 being lost.  Display text telling the player to try again -->
	<Event Name="Rebel_ActI_Mission_One_Failed">
		<Event_Type>STORY_MISSION_LOST</Event_Type>
		<Event_Param1>Story_Plots_Rebel_ActI_M01_SPACE.xml</Event_Param1>
		<Prereq>Rebel_ActI_Mission_One_10</Prereq>
		<Branch>BRANCH_RA01M01</Branch>
	</Event>

<!-- Wait until the battle summary dialog is closed -->
	<Event Name="Rebel_ActI_Mission_One_Failed_01">
		<Event_Type>STORY_GENERIC</Event_Type>
		<Event_Param1>battle_end_closed</Event_Param1>
		<Prereq>Rebel_ActI_Mission_One_Failed</Prereq>
		<Branch>BRANCH_RA01M01</Branch>
	</Event>

<!-- Re-enable mission 1 -->
	<Event Name="Rebel_ActI_Mission_One_Failed_04">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>RESET_BRANCH</Reward_Type>
		<Reward_Param1>BRANCH_RA01M01</Reward_Param1>
		<Reward_Param2>Rebel_ActI_Mission_One_10</Reward_Param2>
		<Prereq>Rebel_ActI_Mission_One_Failed_01</Prereq>
		<Branch>BRANCH_RA01M01</Branch>
	</Event>

<!-- Mission 1 ends successfully -->
	<Event Name="Rebel_ActI_Mission_One_Holocron_Entry">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Prereq>Rebel_ActI_Mission_One_10</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_One_20">
		<Event_Type>STORY_FLAG</Event_Type>
		<Event_Param1>Rebel_A01M01_Win</Event_Param1>
		<Event_Param2>1</Event_Param2>
		<Event_Param3>GREATER_THAN_EQUAL_TO</Event_Param3>
		<Reward_Type>STORY_GOAL_COMPLETED</Reward_Type>
		<Reward_Param1>RA01M01</Reward_Param1>
	</Event>

	<Event Name="Rebel_ActI_Mission_One_21">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>SPAWN_HERO</Reward_Type>
		<Reward_Param1>Droids_Team</Reward_Param1>
		<Reward_Param2>Alderaan_Alive</Reward_Param2><!--SoaFE: Need Alive variant-->
		<Prereq>Rebel_ActI_Mission_One_20</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_One_Spawn_MonMothma">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>SPAWN_HERO</Reward_Type>
		<Reward_Param1>Mon_Mothma_Team</Reward_Param1>
		<Reward_Param2>Dantooine</Reward_Param2>
		<Prereq>Rebel_ActI_Mission_One_20</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_One_22">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>UNIQUE_UNIT</Reward_Type>
		<Reward_Param1>Sundered_Heart</Reward_Param1>
		<Reward_Param2>Alderaan_Alive</Reward_Param2><!--SoaFE: Need Alive variant-->
		<Prereq>Rebel_ActI_Mission_One_20</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_One_Remove_Droids_Slice_Ability">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>REMOVE_POWER_FROM_ALL</Reward_Type>
		<Reward_Param1>Droid_R2D2</Reward_Param1>
		<Reward_Param2>R2D2_SLICER</Reward_Param2>
		<Prereq>Rebel_ActI_Mission_One_22</Prereq>
	</Event>

<!-- Begin Post Mission One dialog; Mon Mothma Speaks 
TEXT_SPEECH_REBEL_ACT01_MISSION_ONE_19
Mon Mothma: The Tyranny and its fleet will most likely remain at their post while it is repaired.
The devastation of Kuat shipyard should prove to be a lengthy distraction. -->
	<Event Name="Rebel_ActI_Mission_One_Post_Mission_Speech_00">
		<Event_Type>STORY_ELAPSED</Event_Type>
		<Event_Param1>2</Event_Param1>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_ONE_19</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>REBEL_ACT01_MISSION_ONE_19</Reward_Param8>
		<Reward_Param9>Mon_Mothma_Loop</Reward_Param9>
		<Reward_Param10>1</Reward_Param10>
		<Prereq>Rebel_ActI_Mission_One_21 Rebel_ActI_Mission_One_22</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_One_Post_Mission_Speech_00_Remove_Text">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>REBEL_ACT01_MISSION_ONE_19</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_ONE_19</Reward_Param1>
		<Reward_Param4>remove</Reward_Param4>
		<Prereq>Rebel_ActI_Mission_One_Post_Mission_Speech_00</Prereq>
	</Event>

<!-- Antilles Speaks 
TEXT_SPEECH_REBEL_ACT01_MISSION_ONE_20
Antilles: Then we've got some X-wings on Fresia to attend to.-->
	<Event Name="Rebel_ActI_Mission_One_Post_Mission_Speech_01">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_ONE_20</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>REBEL_ACT01_MISSION_ONE_20</Reward_Param8>
		<Reward_Param9>Antillies_Loop</Reward_Param9>
		<Reward_Param10>1</Reward_Param10>
		<Prereq>Rebel_ActI_Mission_One_Post_Mission_Speech_00_Remove_Text</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_One_Post_Mission_Speech_01_Remove_Text">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>REBEL_ACT01_MISSION_ONE_20</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_ONE_20</Reward_Param1>
		<Reward_Param4>remove</Reward_Param4>
		<Prereq>Rebel_ActI_Mission_One_Post_Mission_Speech_01</Prereq>
	</Event>

<!-- Rebel Pilot Speaks 
TEXT_SPEECH_REBEL_ACT01_MISSION_ONE_21
Rebel Pilot: Captain!  Scanners show the Tyranny deployed numerous sentry drones
just before it left for Kuat - the Fresian system is locked down!-->
	<Event Name="Rebel_ActI_Mission_One_Post_Mission_Speech_02">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_ONE_21</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>REBEL_ACT01_MISSION_ONE_21</Reward_Param8>
		<Reward_Param9>Wedge_Loop</Reward_Param9>
		<Reward_Param10>1</Reward_Param10>
		<Prereq>Rebel_ActI_Mission_One_Post_Mission_Speech_01_Remove_Text</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_One_Post_Mission_Speech_02_Remove_Text">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>REBEL_ACT01_MISSION_ONE_21</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_ONE_21</Reward_Param1>
		<Reward_Param4>remove</Reward_Param4>
		<Prereq>Rebel_ActI_Mission_One_Post_Mission_Speech_02</Prereq>
	</Event>

<!-- Antilles Speaks 
TEXT_SPEECH_REBEL_ACT01_MISSION_ONE_22
Antilles: Blast!  We'd have the entire Imperial fleet in our laps before we could blink!-->
	<Event Name="Rebel_ActI_Mission_One_Post_Mission_Speech_03">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_ONE_22</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>REBEL_ACT01_MISSION_ONE_22</Reward_Param8>
		<Reward_Param9>Antillies_Loop</Reward_Param9>
		<Reward_Param10>1</Reward_Param10>
		<Prereq>Rebel_ActI_Mission_One_Post_Mission_Speech_02_Remove_Text</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_One_Post_Mission_Speech_03_Remove_Text">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>REBEL_ACT01_MISSION_ONE_22</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_ONE_22</Reward_Param1>
		<Reward_Param4>remove</Reward_Param4>
		<Prereq>Rebel_ActI_Mission_One_Post_Mission_Speech_03</Prereq>
	</Event>

<!-- C-3P0 Speaks 
TEXT_SPEECH_REBEL_ACT01_MISSION_ONE_23
C-3PO: Excuse me sir, but I believe Artoo could slice the Imperial station uplink on Wayland and register your ships.
Then the Fresian sentries would clear you to the surface. -->
	<Event Name="Rebel_ActI_Mission_One_Post_Mission_Speech_04">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_ONE_23</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>REBEL_ACT01_MISSION_ONE_23</Reward_Param8>
		<Reward_Param9>C3PO_Loop</Reward_Param9>
		<Reward_Param10>1</Reward_Param10>
		<Prereq>Rebel_ActI_Mission_One_Post_Mission_Speech_03_Remove_Text</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_One_Post_Mission_Speech_04_Remove_Text">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>REBEL_ACT01_MISSION_ONE_23</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_ONE_23</Reward_Param1>
		<Reward_Param4>remove</Reward_Param4>
		<Prereq>Rebel_ActI_Mission_One_Post_Mission_Speech_04</Prereq>
	</Event>

<!-- Antilles Speaks 
TEXT_SPEECH_REBEL_ACT01_MISSION_ONE_24
Antilles: Not a bad plan, Threepio. But a you droids will never get there on your own. 
You'll need a sizeable escort of ground troops to have any chance at all.-->
	<Event Name="Rebel_ActI_Mission_One_Post_Mission_Speech_05">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_ONE_24</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>REBEL_ACT01_MISSION_ONE_24</Reward_Param8>
		<Reward_Param9>Antillies_Loop</Reward_Param9>
		<Reward_Param10>1</Reward_Param10>
		<Prereq>Rebel_ActI_Mission_One_Post_Mission_Speech_04_Remove_Text</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_One_Post_Mission_Speech_05_Remove_Text">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>REBEL_ACT01_MISSION_ONE_24</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_ONE_24</Reward_Param1>
		<Reward_Param4>remove</Reward_Param4>
		<Prereq>Rebel_ActI_Mission_One_Post_Mission_Speech_05</Prereq>
	</Event>

<!-- C3P0 Speaks 
TEXT_SPEECH_REBEL_ACT01_MISSION_ONE_29
C-3PO: But, sir, I think my presence there won't be necessary…-->
	<Event Name="Rebel_ActI_Post_Mission_One_C3PO_Speech_New01">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_ONE_29</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>REBEL_ACT01_MISSION_ONE_29</Reward_Param8>
		<Reward_Param9>C3PO_Loop</Reward_Param9>
		<Reward_Param10>1</Reward_Param10>
		<Prereq>Rebel_ActI_Mission_One_Post_Mission_Speech_05_Remove_Text</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Post_Mission_One_C3PO_Speech_New01_Remove_Text">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>REBEL_ACT01_MISSION_ONE_29</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_ONE_29</Reward_Param1>
		<Reward_Param4>Remove</Reward_Param4>
		<Prereq>Rebel_ActI_Post_Mission_One_C3PO_Speech_New01</Prereq>
	</Event>

<!-- R2-D2 Speaks DO NOT DISPLAY R2'S TEXT LINES-->
	<Event Name="Rebel_ActI_Mission_One_Post_Mission_Speech_06">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param8>REBEL_ACT01_MISSION_ONE_25</Reward_Param8>
		<Reward_Param9>R2D2_Loop</Reward_Param9>
		<Reward_Param10>1</Reward_Param10>
		<Prereq>Rebel_ActI_Post_Mission_One_C3PO_Speech_New01_Remove_Text</Prereq>
	</Event>

<!-- Antilles Speaks 
TEXT_SPEECH_REBEL_ACT01_MISSION_ONE_26
Antilles: You can't come up with a plan and let someone else take all the credit, Threepio. 
We can't attack Fresia if you and Artoo don't hack the Imperial network on Wayland.
We're counting on you.-->
	<Event Name="Rebel_ActI_Mission_One_Post_Mission_Speech_07">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>REBEL_ACT01_MISSION_ONE_25</Event_Param1>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_ONE_26</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>REBEL_ACT01_MISSION_ONE_26</Reward_Param8>
		<Reward_Param9>Antillies_Loop</Reward_Param9>
		<Reward_Param10>1</Reward_Param10>
		<Prereq>Rebel_ActI_Mission_One_Post_Mission_Speech_06</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_One_Post_Mission_Speech_07_Remove_Text">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>REBEL_ACT01_MISSION_ONE_26</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_ONE_26</Reward_Param1>
		<Reward_Param4>remove</Reward_Param4>
		<Prereq>Rebel_ActI_Mission_One_Post_Mission_Speech_07</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_One_Post_Mission_Speech_Remove_Movie">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>STOP_COMMANDBAR_MOVIE</Reward_Type>
		<Prereq>Rebel_ActI_Mission_One_Post_Mission_Speech_07_Remove_Text</Prereq>
	</Event>

<!-- MISSION TWO: Interpreting the network -->
	<Event Name="Rebel_ActI_Mission_Two_Reveal_Wayland_00">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>REVEAL_PLANET</Reward_Type>
		<Reward_Param1>Wayland</Reward_Param1>
		<Reward_Param2>1</Reward_Param2>
		<Prereq>Rebel_ActI_Mission_One_Post_Mission_Speech_Remove_Movie</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_Two_00">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Prereq>Rebel_ActI_Mission_One_Post_Mission_Speech_Remove_Movie</Prereq>
		<Story_Dialog>Dialog_Rebel_Story_Campaign</Story_Dialog>
		<Story_Chapter>0</Story_Chapter>
		<Story_Tag>Rebel_Mission_Two_Tag</Story_Tag>
		<Story_Dialog_Popup>False</Story_Dialog_Popup>
	</Event>

<!-- jdg adding in R2 mission task message
TEXT_STORY_REBEL_ACT01_MISSION_TWO_46
Task: Escort R2D2 and C3PO to the surface of Wayland.-->
	<Event Name="Rebel_ActI_Mission_One_Post_Mission_Give_M02_Task">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_STORY_REBEL_ACT01_MISSION_TWO_46</Reward_Param1>
		<Reward_Param2>10</Reward_Param2>
		<Reward_Param7>Task</Reward_Param7><!-- TASK color coding - Blue -->
		<Prereq>Rebel_ActI_Mission_Two_Reveal_Wayland_00</Prereq>
		<Prereq>Rebel_ActI_Mission_Two_Failed_01a_Remove_Movie</Prereq>
		<Branch>BRANCH_RA01M02</Branch>
	</Event>

<!-- jdg - adding in flash event for Wayland -->
	<Event Name="Empire_ActI_Mission_Two_Flash_Wayland">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>FLASH_PLANET_GUI</Reward_Type>
		<Reward_Param1>Wayland</Reward_Param1>
		<Reward_Param2>FLASH_PLANET</Reward_Param2>
		<Reward_Param4>Wayland_GUI_Flash</Reward_Param4>
		<Reward_Param5>True</Reward_Param5>
		<Prereq>Rebel_ActI_Mission_One_Post_Mission_Give_M02_Task</Prereq>
		<!-- <Branch>BRANCH_RA01M02</Branch>-->
	</Event>

<!--Bounce message going to Wayland - changing to R2D2 protesting
TEXT_STORY_REBEL_ACT01_MISSION_TWO_46 - text message
REBEL_ACT01_MISSION_TWO_04 - good
REBEL_ACT01_MISSION_TWO_18 - good
REBEL_ACT02_MISSION_FIVE_13 - good
REBEL_ACT02_MISSION_FIVE_19 - good-->
	<Event Name="Rebel_ActI_Mission_Two_Reveal_Wayland_02">
		<Event_Type>STORY_INVASION_BOUNCED</Event_Type>
		<Event_Param1>Wayland</Event_Param1>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_STORY_REBEL_ACT01_MISSION_TWO_46</Reward_Param1>
		<Reward_Param2>10</Reward_Param2>
		<Reward_Param7>Task</Reward_Param7><!-- TASK color coding - Blue -->
		<Reward_Param8>REBEL_ACT01_MISSION_TWO_04</Reward_Param8>
		<Reward_Param9>R2D2_Loop</Reward_Param9>
		<Reward_Param10>1</Reward_Param10>
		<Perpetual>True</Perpetual>
		<Prereq>Rebel_ActI_Mission_Two_Reveal_Wayland_00</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_Two_R2D2_Protest02">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>REBEL_ACT01_MISSION_TWO_04</Event_Param1>
		<Reward_Type>STOP_COMMANDBAR_MOVIE</Reward_Type>
		<Perpetual>True</Perpetual>
		<Prereq>Rebel_ActI_Mission_Two_Reveal_Wayland_02</Prereq>
	</Event>

<!-- Trigger mission 2 -->
	<Event Name="Rebel_ActI_Mission_Two_10">
		<Event_Type>STORY_DEPLOY</Event_Type>
		<Event_Param1>Droids_Team</Event_Param1>
		<Event_Param2>Wayland</Event_Param2>
		<Reward_Type>LINK_TACTICAL</Reward_Type>
		<Reward_Param1>Wayland</Reward_Param1>
		<Reward_Param2>GROUND</Reward_Param2>
		<Reward_Param3>Rebel</Reward_Param3>
		<Reward_Param4>RM02_Interpreting_the_Network.TED</Reward_Param4>
		<Reward_Param5>Empire</Reward_Param5>
		<Reward_Param6>Droids_Team</Reward_Param6>
		<Reward_Param7>Story_Plots_Rebel_ActI_M02_LAND.xml</Reward_Param7>
		<Reward_Param8>1</Reward_Param8>
		<Reward_Param9>0</Reward_Param9>
		<Reward_Param10>1</Reward_Param10>
		<Reward_Param11>0</Reward_Param11>
		<Reward_Param12>RETREAT_PLAYER</Reward_Param12>
		<Prereq>Rebel_ActI_Mission_Two_Reveal_Wayland_00</Prereq>
		<Branch>BRANCH_RA01M02_QUICKSTART</Branch>
	</Event>

<!-- Mission 2 failed -->
<!-- Detect mission 2 being lost.  Display text telling the player to try again -->
	<Event Name="Rebel_ActI_Mission_Two_Failed">
		<Event_Type>STORY_MISSION_LOST</Event_Type>
		<Event_Param1>Story_Plots_Rebel_ActI_M02_LAND.xml</Event_Param1>
		<Prereq>Rebel_ActI_Mission_Two_10</Prereq>
		<Branch>BRANCH_RA01M02</Branch>
	</Event>

	<Event Name="Rebel_ActI_Mission_Two_Failed_Respawn">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>FORCE_RESPAWN</Reward_Type>
		<Reward_Param1>Droids_Team</Reward_Param1>
		<Prereq>Rebel_ActI_Mission_Two_Failed</Prereq>
		<Branch>BRANCH_RA01M02</Branch>
	</Event>

<!-- Wait until the battle summary dialog is closed -->
	<Event Name="Rebel_ActI_Mission_Two_Failed_01_Start_Dialog">
		<Event_Type>STORY_GENERIC</Event_Type>
		<Event_Param1>battle_end_closed</Event_Param1>
		<Prereq>Rebel_ActI_Mission_Two_Failed</Prereq>
		<Branch>BRANCH_RA01M02</Branch>
	</Event>

	<Event Name="Rebel_ActI_Mission_Two_Failed_04_Quickstart">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>RESET_BRANCH</Reward_Type>
		<Reward_Param1>BRANCH_RA01M02_QUICKSTART</Reward_Param1>
		<Prereq>Rebel_ActI_Mission_Two_Failed_01_Start_Dialog</Prereq>
		<Branch>BRANCH_RA01M02</Branch>
	</Event>

	<Event Name="Rebel_ActI_Mission_Two_Failed_01">
		<Event_Type>STORY_ELAPSED</Event_Type>
		<Event_Param1>2</Event_Param1>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_TWO_41</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>REBEL_ACT01_MISSION_TWO_41</Reward_Param8>
		<Reward_Param9>Antillies_Loop</Reward_Param9>
		<Reward_Param10>1</Reward_Param10>
		<Prereq>Rebel_ActI_Mission_Two_Failed_01_Start_Dialog</Prereq>
		<Branch>BRANCH_RA01M02</Branch>
	</Event>

	<Event Name="Rebel_ActI_Mission_Two_Failed_01a">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>REBEL_ACT01_MISSION_TWO_41</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_TWO_41</Reward_Param1>
		<Reward_Param4>remove</Reward_Param4>
		<Prereq>Rebel_ActI_Mission_Two_Failed_01</Prereq>
		<Branch>BRANCH_RA01M02</Branch>
	</Event>

	<Event Name="Rebel_ActI_Mission_Two_Failed_01a_Remove_Movie">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>STOP_COMMANDBAR_MOVIE</Reward_Type>
		<Prereq>Rebel_ActI_Mission_Two_Failed_01a</Prereq>
		<Branch>BRANCH_RA01M02</Branch>
	</Event>

<!-- Re-enable mission 2 -->
	<Event Name="Rebel_ActI_Mission_Two_Failed_04">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>RESET_BRANCH</Reward_Type>
		<Reward_Param1>BRANCH_RA01M02</Reward_Param1>
		<Prereq>Rebel_ActI_Mission_Two_Failed_01a_Remove_Movie</Prereq>
		<Branch>BRANCH_RA01M02</Branch>
	</Event>

<!-- Mission 2 ends successfully -->
	<Event Name="Rebel_ActI_Mission_Two_20">
		<Event_Type>STORY_FLAG</Event_Type>
		<Event_Param1>Rebel_A01M02_Win</Event_Param1>
		<Event_Param2>1</Event_Param2>
		<Event_Param3>GREATER_THAN_EQUAL_TO</Event_Param3>
		<Reward_Type>STORY_GOAL_COMPLETED</Reward_Type>
		<Reward_Param1>Rebel_Mission_Two_Tag</Reward_Param1>
	</Event>

	<Event Name="Rebel_ActI_Mission_Two_RemoveFlash_Wayland">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>HIDE_TUTORIAL_CURSOR</Reward_Type>
		<Reward_Param1>Wayland_GUI_Flash</Reward_Param1>
		<Prereq>Rebel_ActI_Mission_Two_20</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_Two_Win_Disable_Branch">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>DISABLE_BRANCH</Reward_Type>
		<Reward_Param1>BRANCH_RA01M02</Reward_Param1>
		<Reward_Param2>1</Reward_Param2>
		<Prereq>Rebel_ActI_Mission_Two_20</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_Two_Win_Disable_Branch_Quickstart">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>DISABLE_BRANCH</Reward_Type>
		<Reward_Param1>BRANCH_RA01M02_QUICKSTART</Reward_Param1>
		<Reward_Param2>1</Reward_Param2>
		<Prereq>Rebel_ActI_Mission_Two_Win_Disable_Branch</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_Two_Unlock_Wayland">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>SET_PLANET_RESTRICTED</Reward_Type>
		<Reward_Param1>Wayland</Reward_Param1>
		<Reward_Param2>0</Reward_Param2>
		<Prereq>Rebel_ActI_Mission_Two_20</Prereq>
	</Event>

<!-- Antilles Speaks 
TEXT_SPEECH_REBEL_ACT01_MISSION_TWO_31
Antilles: Looks like the droids got us more data than we bargained for.
I've got technical plans here that we can put to good use!-->
	<Event Name="Rebel_ActI_Mission_Two_Post_Mission_Speech_00_Start_Dialog">
		<Event_Type>STORY_GENERIC</Event_Type>
		<Event_Param1>battle_end_closed</Event_Param1>
		<Prereq>Rebel_ActI_Mission_Two_20</Prereq>
	</Event>

<!-- MISSION THREE: Theft of the X-wing -->
<!-- Pilot Speaks 
TEXT_SPEECH_REBEL_ACT01_MISSION_THREE_03
Rebel Pilot: The pilots are ready to go, sir. -->
	<Event Name="Rebel_ActI_Mission_Three_Pre_Mission_Speech_00">
		<Event_Type>STORY_ELAPSED</Event_Type>
		<Event_Param1>2</Event_Param1>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_THREE_03</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>REBEL_ACT01_MISSION_THREE_03</Reward_Param8>
		<Reward_Param9>Wedge_Loop</Reward_Param9>
		<Reward_Param10>1</Reward_Param10>
		<Prereq>Rebel_ActI_Mission_Two_Post_Mission_Speech_00_Start_Dialog</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_Three_Pre_Mission_Speech_00_Remove_Text">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>REBEL_ACT01_MISSION_THREE_03</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_THREE_03</Reward_Param1>
		<Reward_Param4>remove</Reward_Param4>
		<Prereq>Rebel_ActI_Mission_Three_Pre_Mission_Speech_00</Prereq>
	</Event>

<!-- Antilles Speaks 
TEXT_SPEECH_REBEL_ACT01_MISSION_THREE_04
Antilles: With the sensors blind to our ships, we should be able to sneak right down to Fresia and grab those X-wings.-->
	<Event Name="Rebel_ActI_Mission_Three_Pre_Mission_Speech_01">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_THREE_04</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>REBEL_ACT01_MISSION_THREE_04</Reward_Param8>
		<Reward_Param9>Antillies_Loop</Reward_Param9>
		<Reward_Param10>1</Reward_Param10>
		<Prereq>Rebel_ActI_Mission_Three_Pre_Mission_Speech_00_Remove_Text</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_Three_Pre_Mission_Speech_01_Remove_Text">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>REBEL_ACT01_MISSION_THREE_04</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_THREE_04</Reward_Param1>
		<Reward_Param4>remove</Reward_Param4>
		<Prereq>Rebel_ActI_Mission_Three_Pre_Mission_Speech_01</Prereq>
	</Event>

<!-- Pilot Speaks 
TEXT_SPEECH_REBEL_ACT01_MISSION_THREE_05
Rebel Pilot: You sure the sensors are down?-->
	<Event Name="Rebel_ActI_Mission_Three_Pre_Mission_Speech_02">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_THREE_05</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>REBEL_ACT01_MISSION_THREE_05</Reward_Param8>
		<Reward_Param9>Wedge_Loop</Reward_Param9>
		<Reward_Param10>1</Reward_Param10>
		<Prereq>Rebel_ActI_Mission_Three_Pre_Mission_Speech_01_Remove_Text</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_Three_Pre_Mission_Speech_02_Remove_Text">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>REBEL_ACT01_MISSION_THREE_05</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_THREE_05</Reward_Param1>
		<Reward_Param4>remove</Reward_Param4>
		<Prereq>Rebel_ActI_Mission_Three_Pre_Mission_Speech_02</Prereq>
	</Event>

<!-- Antilles Speaks 
TEXT_SPEECH_REBEL_ACT01_MISSION_THREE_06
Antilles: Only one way to find out.  Assemble the troops and let's go!-->
	<Event Name="Rebel_ActI_Mission_Three_Pre_Mission_Speech_03">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_THREE_06</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>REBEL_ACT01_MISSION_THREE_06</Reward_Param8>
		<Reward_Param9>Antillies_Loop</Reward_Param9>
		<Reward_Param10>1</Reward_Param10>
		<Prereq>Rebel_ActI_Mission_Three_Pre_Mission_Speech_02_Remove_Text</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_Three_Pre_Mission_Speech_03_Remove_Text">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>REBEL_ACT01_MISSION_THREE_06</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_THREE_06</Reward_Param1>
		<Reward_Param4>remove</Reward_Param4>
		<Prereq>Rebel_ActI_Mission_Three_Pre_Mission_Speech_03</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_Three_Pre_Mission_Speech_03b_Remove_Movie">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>STOP_COMMANDBAR_MOVIE</Reward_Type>
		<Prereq>Rebel_ActI_Mission_Three_Pre_Mission_Speech_03_Remove_Text</Prereq>
	</Event>

<!-- Story dialog for mission 3 -->
	<Event Name="Rebel_ActI_Mission_Three_00">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Prereq>Rebel_ActI_Mission_Three_Pre_Mission_Speech_03b_Remove_Movie</Prereq>
		<Story_Dialog>Dialog_Rebel_Story_Campaign</Story_Dialog>
		<Story_Chapter>1</Story_Chapter>
		<Story_Tag>Rebel_Mission_Three_Tag</Story_Tag>
		<Story_Dialog_Popup>False</Story_Dialog_Popup>
	</Event>

	<Event Name="Rebel_ActI_Mission_Three_Reveal_Fresia_00">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>REVEAL_PLANET</Reward_Type>
		<Reward_Param1>Fresia</Reward_Param1>
		<Reward_Param2>1</Reward_Param2>
		<Prereq>Rebel_ActI_Mission_Three_00</Prereq>
	</Event>

<!-- jdg - adding in flash event for Fresia -->
	<Event Name="Empire_ActI_Mission_Two_Flash_Fresia">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>FLASH_PLANET_GUI</Reward_Type>
		<Reward_Param1>Fresia</Reward_Param1>
		<Reward_Param2>FLASH_PLANET</Reward_Param2>
		<Reward_Param4>Fresia_GUI_Flash</Reward_Param4>
		<Reward_Param5>True</Reward_Param5>
		<Prereq>Rebel_ActI_Mission_Three_Reveal_Fresia_00</Prereq>
		<!--<Branch>BRANCH_RA01M03</Branch> -->
	</Event>

<!-- jdg - Fresia task message
TEXT_STORY_REBEL_ACT01_MISSION_THREE_34
Task: Build a ground assualt force and goto Fresia.-->
	<Event Name="Empire_ActI_Mission_Two_Fresia_Task_Message">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_STORY_REBEL_ACT01_MISSION_THREE_34</Reward_Param1>
		<Reward_Param2>10</Reward_Param2>
		<Reward_Param7>Task</Reward_Param7><!-- TASK color coding - Blue -->
		<Branch>BRANCH_RA01M03</Branch>
		<Prereq>Empire_ActI_Mission_Two_Flash_Fresia</Prereq>
		<Prereq>Rebel_ActI_Mission_Three_Failed_01a_Remove_Movie</Prereq>
	</Event>

<!-- Antilles Speaks 
TEXT_SPEECH_REBEL_ACT01_MISSION_THREE_07
Antilles: There's no alarm on any Imperial comm. channel. We're clear. Move out, team.-->
	<Event Name="Rebel_ActI_Mission_Three_Fresia_Humor_00">
		<Event_Type>STORY_ENTER</Event_Type>
		<Event_Param1>Fresia</Event_Param1>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_THREE_07</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>REBEL_ACT01_MISSION_THREE_07</Reward_Param8>
		<Reward_Param9>Antillies_Loop</Reward_Param9>
		<Reward_Param10>1</Reward_Param10>
		<Prereq>Rebel_ActI_Mission_Three_00</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_Three_Fresia_Humor_01">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>REBEL_ACT01_MISSION_THREE_07</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_THREE_07</Reward_Param1>
		<Reward_Param4>Remove</Reward_Param4>
		<Prereq>Rebel_ActI_Mission_Three_Fresia_Humor_00</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_Three_Fresia_Humor_01_Remove_Movie">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>STOP_COMMANDBAR_MOVIE</Reward_Type>
		<Prereq>Rebel_ActI_Mission_Three_Fresia_Humor_01</Prereq>
	</Event>

<!-- Trigger mission 3 -->
	<Event Name="Rebel_ActI_Mission_Three_10">
		<Event_Type>STORY_LAND_ON</Event_Type>
		<Event_Param1>Fresia</Event_Param1>
		<Reward_Type>LINK_TACTICAL</Reward_Type>
		<Reward_Param1>Fresia</Reward_Param1>
		<Reward_Param2>GROUND</Reward_Param2>
		<Reward_Param3>Rebel</Reward_Param3>
		<Reward_Param4>RM03_Theft_of_the_X-wing.TED</Reward_Param4>
		<Reward_Param5>Empire</Reward_Param5>
		<Reward_Param6/>
		<Reward_Param7>Story_Plots_Rebel_ActI_M03_LAND.xml</Reward_Param7>
		<Reward_Param8>1</Reward_Param8>
		<Reward_Param9>0</Reward_Param9>
		<Reward_Param10>1</Reward_Param10>
		<Reward_Param11>0</Reward_Param11>
		<Reward_Param12>RETREAT_PLAYER</Reward_Param12>
		<Prereq>Rebel_ActI_Mission_Three_00</Prereq>
		<Branch>BRANCH_RA01M03_QUICKSTART</Branch>
	</Event>

<!-- Mission 3 failed -->
<!-- Detect mission 1 being lost.  Display text telling the player to try again -->
	<Event Name="Rebel_ActI_Mission_Three_Failed">
		<Event_Type>STORY_MISSION_LOST</Event_Type>
		<Event_Param1>Story_Plots_Rebel_ActI_M03_LAND.xml</Event_Param1>
		<Prereq>Rebel_ActI_Mission_Three_10</Prereq>
		<Branch>BRANCH_RA01M03</Branch>
	</Event>

<!-- Wait until the battle summary dialog is closed -->
	<Event Name="Rebel_ActI_Mission_Three_Failed_01_Start_Dialog">
		<Event_Type>STORY_GENERIC</Event_Type>
		<Event_Param1>battle_end_closed</Event_Param1>
		<Prereq>Rebel_ActI_Mission_Three_Failed</Prereq>
		<Branch>BRANCH_RA01M03</Branch>
	</Event>

	<Event Name="Rebel_ActI_Mission_Three_Failed_04_Quickstart">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>RESET_BRANCH</Reward_Type>
		<Reward_Param1>BRANCH_RA01M03_QUICKSTART</Reward_Param1>
		<Prereq>Rebel_ActI_Mission_Three_Failed_01_Start_Dialog</Prereq>
		<Branch>BRANCH_RA01M03</Branch>
	</Event>

	<Event Name="Rebel_ActI_Mission_Three_Failed_01">
		<Event_Type>STORY_ELAPSED</Event_Type>
		<Event_Param1>2</Event_Param1>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_THREE_21</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>REBEL_ACT01_MISSION_THREE_21</Reward_Param8>
		<Reward_Param9>Antillies_Loop</Reward_Param9>
		<Reward_Param10>1</Reward_Param10>
		<Prereq>Rebel_ActI_Mission_Three_Failed_01_Start_Dialog</Prereq>
		<Branch>BRANCH_RA01M03</Branch>
	</Event>

	<Event Name="Rebel_ActI_Mission_Three_Failed_01a">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>REBEL_ACT01_MISSION_THREE_21</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_THREE_21</Reward_Param1>
		<Reward_Param4>Remove</Reward_Param4>
		<Prereq>Rebel_ActI_Mission_Three_Failed_01</Prereq>
		<Branch>BRANCH_RA01M03</Branch>
	</Event>

	<Event Name="Rebel_ActI_Mission_Three_Failed_01a_Remove_Movie">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>STOP_COMMANDBAR_MOVIE</Reward_Type>
		<Prereq>Rebel_ActI_Mission_Three_Failed_01a</Prereq>
		<Branch>BRANCH_RA01M03</Branch>
	</Event>

<!-- Re-enable mission 3 -->
	<Event Name="Rebel_ActI_Mission_Three_Failed_04">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>RESET_BRANCH</Reward_Type>
		<Reward_Param1>BRANCH_RA01M03</Reward_Param1>
		<Prereq>Rebel_ActI_Mission_Three_Failed_01a_Remove_Movie</Prereq>
		<Branch>BRANCH_RA01M03</Branch>
	</Event>

<!-- Mission 3 ends successfully -->
	<Event Name="Rebel_ActI_Mission_Three_20">
		<Event_Type>STORY_FLAG</Event_Type>
		<Event_Param1>Rebel_A01M03_Win</Event_Param1>
		<Event_Param2>1</Event_Param2>
		<Event_Param3>GREATER_THAN_EQUAL_TO</Event_Param3>
		<Reward_Type>STORY_GOAL_COMPLETED</Reward_Type>
		<Reward_Param1>Rebel_Mission_Three_Tag</Reward_Param1>
	</Event>

	<Event Name="Rebel_ActI_Mission_Three_RemoveFlash_Fresia">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>HIDE_TUTORIAL_CURSOR</Reward_Type>
		<Reward_Param1>Fresia_GUI_Flash</Reward_Param1>
		<Prereq>Rebel_ActI_Mission_Three_20</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_Three_Win_Disable_Branch">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>DISABLE_BRANCH</Reward_Type>
		<Reward_Param1>BRANCH_RA01M03</Reward_Param1>
		<Reward_Param2>1</Reward_Param2>
		<Prereq>Rebel_ActI_Mission_Three_20</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_Three_Win_Disable_Branch_Quickstart">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>DISABLE_BRANCH</Reward_Type>
		<Reward_Param1>BRANCH_RA01M03_QUICKSTART</Reward_Param1>
		<Reward_Param2>1</Reward_Param2>
		<Prereq>Rebel_ActI_Mission_Three_Win_Disable_Branch</Prereq>
	</Event>

<!-- Mon Mothma Speaks 
Mon Mothma: Those craft may help us but I fear for the citizens of Fresia and Incom's scientists.
The Empire may make an example of them to keep other systems in line...-->
	<Event Name="Rebel_ActI_Mission_Three_Post_Mission_Speech_01_Start_Dialog">
		<Event_Type>STORY_GENERIC</Event_Type>
		<Event_Param1>battle_end_closed</Event_Param1>
		<Prereq>Rebel_ActI_Mission_Three_20</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_Three_Post_Mission_Speech_01">
		<Event_Type>STORY_ELAPSED</Event_Type>
		<Event_Param1>2</Event_Param1>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_THREE_25</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>REBEL_ACT01_MISSION_THREE_25</Reward_Param8>
		<Reward_Param9>Mon_Mothma_Loop</Reward_Param9>
		<Reward_Param10>1</Reward_Param10>
		<Prereq>Rebel_ActI_Mission_Three_Post_Mission_Speech_01_Start_Dialog</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_Three_Post_Mission_Speech_01_Remove_Text">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>REBEL_ACT01_MISSION_THREE_25</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_THREE_25</Reward_Param1>
		<Reward_Param4>remove</Reward_Param4>
		<Prereq>Rebel_ActI_Mission_Three_Post_Mission_Speech_01</Prereq>
	</Event>

<!-- Antilles Speaks 
TEXT_SPEECH_REBEL_ACT01_MISSION_THREE_26
Antilles: Well, then we start planning on defending Fresia. We can't let that happen.-->
	<Event Name="Rebel_ActI_Mission_Three_Post_Mission_Speech_02">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>MULTIMEDIA</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_THREE_26</Reward_Param1>
		<Reward_Param2>-1</Reward_Param2>
		<Reward_Param8>REBEL_ACT01_MISSION_THREE_26</Reward_Param8>
		<Reward_Param9>Antillies_Loop</Reward_Param9>
		<Reward_Param10>1</Reward_Param10>
		<Prereq>Rebel_ActI_Mission_Three_Post_Mission_Speech_01_Remove_Text</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_Three_Post_Mission_Speech_02_Remove_Text">
		<Event_Type>STORY_SPEECH_DONE</Event_Type>
		<Event_Param1>REBEL_ACT01_MISSION_THREE_26</Event_Param1>
		<Reward_Type>SCREEN_TEXT</Reward_Type>
		<Reward_Param1>TEXT_SPEECH_REBEL_ACT01_MISSION_THREE_26</Reward_Param1>
		<Reward_Param4>remove</Reward_Param4>
		<Prereq>Rebel_ActI_Mission_Three_Post_Mission_Speech_02</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_Three_Post_Mission_Speech_02a_Remove_Movie">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>STOP_COMMANDBAR_MOVIE</Reward_Type>
		<Prereq>Rebel_ActI_Mission_Three_Post_Mission_Speech_02_Remove_Text</Prereq>
	</Event>

<!-- Unlock the X-wings for the player -->
	<Event Name="Rebel_ActI_Mission_Three_Unlock_XWings">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>BUILDABLE_UNIT</Reward_Type>
		<Reward_Param1>Rebel_X-Wing_Squadron</Reward_Param1>
		<Reward_Param2>Z95_Headhunter_Rebel_Squadron</Reward_Param2>
		<Prereq>Rebel_ActI_Mission_Three_Post_Mission_Speech_01</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_Three_Free_Xwing_00">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>UNIQUE_UNIT</Reward_Type>
		<Reward_Param1>Rebel_X-Wing_Squadron</Reward_Param1>
		<Reward_Param2>Alderaan_Alive</Reward_Param2><!--SoaFE: Need Alive variant-->
		<Prereq>Rebel_ActI_Mission_Three_Post_Mission_Speech_01</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_Three_Free_Xwing_01">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>UNIQUE_UNIT</Reward_Type>
		<Reward_Param1>Rebel_X-Wing_Squadron</Reward_Param1>
		<Reward_Param2>Alderaan_Alive</Reward_Param2><!--SoaFE: Need Alive variant-->
		<Prereq>Rebel_ActI_Mission_Three_Post_Mission_Speech_01</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_Three_Free_Xwing_02">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>UNIQUE_UNIT</Reward_Type>
		<Reward_Param1>Rebel_X-Wing_Squadron</Reward_Param1>
		<Reward_Param2>Alderaan_Alive</Reward_Param2><!--SoaFE: Need Alive variant-->
		<Prereq>Rebel_ActI_Mission_Three_Post_Mission_Speech_01</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_Three_Free_Xwing_03">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>UNIQUE_UNIT</Reward_Type>
		<Reward_Param1>Rebel_X-Wing_Squadron</Reward_Param1>
		<Reward_Param2>Alderaan_Alive</Reward_Param2><!--SoaFE: Need Alive variant-->
		<Prereq>Rebel_ActI_Mission_Three_Post_Mission_Speech_01</Prereq>
	</Event>

	<Event Name="Rebel_ActI_Mission_Three_Free_Xwing_04">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>UNIQUE_UNIT</Reward_Type>
		<Reward_Param1>Rebel_X-Wing_Squadron</Reward_Param1>
		<Reward_Param2>Alderaan_Alive</Reward_Param2><!--SoaFE: Need Alive variant-->
		<Prereq>Rebel_ActI_Mission_Three_Post_Mission_Speech_01</Prereq>
	</Event>

<!-- Open Act II once completing mission 3 -->
	<Event Name="Rebel_ActI_Open_Act_II_01">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>STORY_ELEMENT</Reward_Type>
		<Reward_Param1>Story_Campaign_Rebel_Act_II</Reward_Param1>
		<Prereq>Rebel_ActI_Mission_Three_Post_Mission_Speech_02a_Remove_Movie</Prereq>
	</Event>

	<Event Name="Empire_ActI_Open_Act_II_02">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>INCREMENT_FLAG</Reward_Type>
		<Reward_Param1>Rebel_Act_Counter</Reward_Param1>
		<Reward_Param2>1</Reward_Param2>
		<Prereq>Rebel_ActI_Open_Act_II_01</Prereq>
	</Event>

<!-- End of ACT I -->

<!-- For testing -->
<!-- Jump to mission 3 -->
<!-- Flag mission 1 as won -->
	<Event Name="RA1_To_3">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>SET_FLAG</Reward_Type>
		<Reward_Param1>Rebel_A01M01_Win</Reward_Param1>
		<Reward_Param2>1</Reward_Param2>
	</Event>

<!-- This will add the mission two dialog immediately instead of after a delay -->
	<Event Name="Rebel_A1_Jump_To_3_00">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>TRIGGER_EVENT</Reward_Type>
		<Reward_Param1>Rebel_ActI_Mission_Two_00</Reward_Param1>
		<Reward_Param2>1</Reward_Param2>
		<Prereq>RA1_To_3</Prereq>
	</Event>

<!-- Flag mission 2 as won -->
	<Event Name="Rebel_A1_Jump_To_3_01">
		<Event_Type>STORY_TRIGGER</Event_Type>
		<Reward_Type>SET_FLAG</Reward_Type>
		<Reward_Param1>Rebel_A01M02_Win</Reward_Param1>
		<Reward_Param2>1</Reward_Param2>
		<Prereq>Rebel_A1_Jump_To_3_00</Prereq>
	</Event>
</Story>


