Initial commit
This commit is contained in:
135
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_ACCUMULATE_CREDITS.LUA
Normal file
135
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_ACCUMULATE_CREDITS.LUA
Normal file
@@ -0,0 +1,135 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Accumulate_Credits.lua#14 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Accumulate_Credits.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: Dan_Etter $
|
||||
--
|
||||
-- $Change: 34008 $
|
||||
--
|
||||
-- $DateTime: 2005/12/02 10:41:38 $
|
||||
--
|
||||
-- $Revision: #14 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
Category = "Intervention_Accumulate_Credits"
|
||||
|
||||
dialog = nil
|
||||
plot = nil
|
||||
event = nil
|
||||
reward_unit = nil
|
||||
reward_location = nil
|
||||
|
||||
reward_table = { Find_Object_Type("Rebel_Heavy_Tank_Brigade"),
|
||||
Find_Object_Type("Rebel_Light_Tank_Brigade"),
|
||||
Find_Object_Type("Rebel_Speeder_Wing"),
|
||||
Find_Object_Type("Rebel_Heavy_Tank_Brigade"),
|
||||
Find_Object_Type("Rebel_Infantry_Squad"),
|
||||
Find_Object_Type("Rebel_Tank_Buster_Squad"),
|
||||
Find_Object_Type("Rebel_Infiltrator_Team"),
|
||||
|
||||
Find_Object_Type("Calamari_Cruiser"),
|
||||
Find_Object_Type("A_Wing_Squadron"),
|
||||
Find_Object_Type("Rebel_X-Wing_Squadron"),
|
||||
Find_Object_Type("Y-Wing_Squadron"),
|
||||
Find_Object_Type("Corellian_Corvette"),
|
||||
Find_Object_Type("Corellian_Gunboat"),
|
||||
Find_Object_Type("Marauder_Missile_Cruiser"),
|
||||
Find_Object_Type("Nebulon_B_Frigate"),
|
||||
Find_Object_Type("Alliance_Assault_Frigate"),
|
||||
|
||||
Find_Object_Type("Imperial_Artillery_Corp"),
|
||||
Find_Object_Type("Imperial_Heavy_Scout_Squad"),
|
||||
Find_Object_Type("Imperial_Anti_Aircraft_Company"),
|
||||
Find_Object_Type("Imperial_Armor_Group"),
|
||||
Find_Object_Type("Imperial_Heavy_Assault_Company"),
|
||||
Find_Object_Type("Imperial_Anti_Infantry_Brigade"),
|
||||
Find_Object_Type("Imperial_Stormtrooper_Squad"),
|
||||
Find_Object_Type("Imperial_Light_Scout_Squad"),
|
||||
|
||||
Find_Object_Type("Broadside_Class_Cruiser"),
|
||||
Find_Object_Type("Interdictor_Cruiser"),
|
||||
Find_Object_Type("Tartan_Patrol_Cruiser"),
|
||||
Find_Object_Type("Victory_Destroyer"),
|
||||
Find_Object_Type("Acclamator_Assault_Ship"),
|
||||
Find_Object_Type("Star_Destroyer"),
|
||||
Find_Object_Type("TIE_Scout_Squadron"), }
|
||||
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
if PlayerObject.Get_Faction_Name() == "EMPIRE" then
|
||||
dialog = "Dialog_E_Intervention_Accumulate_Credits"
|
||||
elseif PlayerObject.Get_Faction_Name() == "REBEL" then
|
||||
dialog = "Dialog_R_Intervention_Accumulate_Credits"
|
||||
else
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
reward_unit, reward_count = Select_Reward_Unit(reward_table, PlayerObject, 500 * (PlayerObject.Get_Tech_Level() + 1))
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Accumulate_Credits.xml")
|
||||
|
||||
event = plot.Get_Event("Accumulate_Credits_00")
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_CREDIT_TARGET", 10000)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", reward_unit, reward_count)
|
||||
|
||||
reward_location = FindTarget(Intervention, "One", "Friendly", 1.0)
|
||||
|
||||
event = plot.Get_Event("Accumulate_Credits_01")
|
||||
event.Set_Reward_Parameter(0, reward_unit)
|
||||
event.Set_Reward_Parameter(1, reward_location)
|
||||
event.Set_Reward_Parameter(2, reward_count)
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", reward_unit, reward_count)
|
||||
|
||||
event = plot.Get_Event("Accumulate_Credits_03")
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
|
||||
plot.Activate()
|
||||
|
||||
Wait_On_Flag("ACCUMULATE_CREDITS_NOTIFICATION_00", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
@@ -0,0 +1,154 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Build_Heavy_Vehicle_Factories.lua#13 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Build_Heavy_Vehicle_Factories.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: oksana_kubushyna $
|
||||
--
|
||||
-- $Change: 24968 $
|
||||
--
|
||||
-- $DateTime: 2005/08/26 13:28:21 $
|
||||
--
|
||||
-- $Revision: #13 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
|
||||
Category = "Intervention_Build_Heavy_Vehicle_Factories"
|
||||
|
||||
dialog = nil
|
||||
reward_unit = nil
|
||||
build_object = nil
|
||||
factory_count = nil
|
||||
plot = nil
|
||||
event = nil
|
||||
reward_location = nil
|
||||
|
||||
reward_table = { Find_Object_Type("Rebel_Heavy_Tank_Brigade"),
|
||||
Find_Object_Type("Rebel_Light_Tank_Brigade"),
|
||||
Find_Object_Type("Rebel_Speeder_Wing"),
|
||||
Find_Object_Type("Rebel_Heavy_Tank_Brigade"),
|
||||
Find_Object_Type("Rebel_Infantry_Squad"),
|
||||
Find_Object_Type("Rebel_Tank_Buster_Squad"),
|
||||
Find_Object_Type("Rebel_Infiltrator_Team"),
|
||||
|
||||
Find_Object_Type("Imperial_Artillery_Corp"),
|
||||
Find_Object_Type("Imperial_Heavy_Scout_Squad"),
|
||||
Find_Object_Type("Imperial_Anti_Aircraft_Company"),
|
||||
Find_Object_Type("Imperial_Armor_Group"),
|
||||
Find_Object_Type("Imperial_Heavy_Assault_Company"),
|
||||
Find_Object_Type("Imperial_Anti_Infantry_Brigade"),
|
||||
Find_Object_Type("Imperial_Stormtrooper_Squad"),
|
||||
Find_Object_Type("Imperial_Light_Scout_Squad"), }
|
||||
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
if PlayerObject.Get_Faction_Name() == "EMPIRE" then
|
||||
dialog = "Dialog_E_Intervention_Build_Generic_Structure"
|
||||
build_object = Find_Object_Type("E_Ground_Heavy_Vehicle_Factory")
|
||||
elseif PlayerObject.Get_Faction_Name() == "REBEL" then
|
||||
dialog = "Dialog_R_Intervention_Build_Generic_Structure"
|
||||
build_object = Find_Object_Type("R_Ground_Heavy_Vehicle_Factory")
|
||||
else
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
reward_unit, reward_count = Select_Reward_Unit(reward_table, PlayerObject, 500 * PlayerObject.Get_Tech_Level())
|
||||
|
||||
|
||||
--determine how many factories should be built
|
||||
factory_count = EvaluatePerception("Intervention_Helper_Heavy_Vehicle_Factories_To_Build", PlayerObject)
|
||||
|
||||
--find the xml defined plot for building a generic structure and fill in the skeleton so that
|
||||
--it asks the player to build the appropraite number of ion cannons
|
||||
plot = Get_Story_Plot("Intervention_Build_Generic_Structure.xml")
|
||||
|
||||
--Setup the first event to pop up a dialog and give the player some money to spend on the factories
|
||||
event = plot.Get_Event("Build_Generic_Structure_00")
|
||||
event.Set_Reward_Parameter(0, factory_count * 1500)
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_QUANTITY", factory_count)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_STRUCTURE", build_object)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", reward_unit, reward_count)
|
||||
|
||||
--Set up the second event to fire when we build the correct number of ion cannons
|
||||
event = plot.Get_Event("Build_Generic_Structure_01")
|
||||
event.Set_Event_Parameter(0, build_object)
|
||||
event.Set_Event_Parameter(1, factory_count)
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
|
||||
--Start the plot
|
||||
plot.Activate()
|
||||
|
||||
--Wait on notification from the story system that the task has been accomplished
|
||||
Wait_On_Flag("BUILD_GENERIC_STRUCTURE_NOTIFICATION_00", nil)
|
||||
|
||||
--Find a suitable place to station the reward units
|
||||
reward_location = FindTarget(Intervention, "Intervention_Helper_Has_Heavy_Vehicle_Factory", "Friendly", 1.0)
|
||||
while not reward_location do
|
||||
Sleep(1)
|
||||
reward_location = FindTarget(Intervention, "Intervention_Helper_Has_Heavy_Vehicle_Factory", "Friendly", 1.0)
|
||||
end
|
||||
|
||||
--Set up an event to spawn the reward unit at the selected location and congratulate the player
|
||||
event = plot.Get_Event("Build_Generic_Structure_02")
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", reward_unit, reward_count)
|
||||
|
||||
event = plot.Get_Event("Build_Generic_Structure_03")
|
||||
event.Set_Reward_Parameter(0, reward_unit)
|
||||
event.Set_Reward_Parameter(1, reward_location)
|
||||
event.Set_Reward_Parameter(2, reward_count)
|
||||
|
||||
event = plot.Get_Event("Build_Generic_Structure_04")
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
|
||||
--Fire this story event to allow the plot to continue and run the event we just set up
|
||||
Story_Event("BUILD_GENERIC_STRUCTURE_NOTIFICATION_01")
|
||||
|
||||
--Wait until the plot informs us that it's done, stop and reset it, then sleep for a while before we exit
|
||||
--to prevent interventions from spawning back-to-back
|
||||
Wait_On_Flag("BUILD_GENERIC_STRUCTURE_NOTIFICATION_02", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
139
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_BUILD_ION_CANNONS.LUA
Normal file
139
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_BUILD_ION_CANNONS.LUA
Normal file
@@ -0,0 +1,139 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Build_Ion_Cannons.lua#12 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Build_Ion_Cannons.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: oksana_kubushyna $
|
||||
--
|
||||
-- $Change: 24968 $
|
||||
--
|
||||
-- $DateTime: 2005/08/26 13:28:21 $
|
||||
--
|
||||
-- $Revision: #12 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
|
||||
Category = "Intervention_Build_Ion_Cannons"
|
||||
|
||||
reward_unit = nil
|
||||
plot = nil
|
||||
event = nil
|
||||
ion_cannon_count = nil
|
||||
reward_location = nil
|
||||
|
||||
reward_table = { Find_Object_Type("Rebel_Heavy_Tank_Brigade"),
|
||||
Find_Object_Type("Rebel_Light_Tank_Brigade"),
|
||||
Find_Object_Type("Rebel_Speeder_Wing"),
|
||||
Find_Object_Type("Rebel_Heavy_Tank_Brigade"),
|
||||
Find_Object_Type("Rebel_Infantry_Squad"),
|
||||
Find_Object_Type("Rebel_Tank_Buster_Squad"),
|
||||
Find_Object_Type("Rebel_Infiltrator_Team"),
|
||||
|
||||
Find_Object_Type("Imperial_Artillery_Corp"),
|
||||
Find_Object_Type("Imperial_Heavy_Scout_Squad"),
|
||||
Find_Object_Type("Imperial_Anti_Aircraft_Company"),
|
||||
Find_Object_Type("Imperial_Armor_Group"),
|
||||
Find_Object_Type("Imperial_Heavy_Assault_Company"),
|
||||
Find_Object_Type("Imperial_Anti_Infantry_Brigade"),
|
||||
Find_Object_Type("Imperial_Stormtrooper_Squad"),
|
||||
Find_Object_Type("Imperial_Light_Scout_Squad"), }
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
--Select a reward (currently fixed)
|
||||
reward_unit, reward_count = Select_Reward_Unit(reward_table, PlayerObject, 200 * PlayerObject.Get_Tech_Level())
|
||||
|
||||
--determine how many ion cannons should be built
|
||||
ion_cannon_count = EvaluatePerception("Intervention_Helper_Ion_Cannons_To_Build", PlayerObject)
|
||||
|
||||
--find the xml defined plot for building a generic structure and fill in the skeleton so that
|
||||
--it asks the player to build the appropraite number of ion cannons
|
||||
plot = Get_Story_Plot("Intervention_Build_Generic_Structure.xml")
|
||||
|
||||
--Setup the first event to pop up a dialog and give the player some money to spend on the cannons
|
||||
event = plot.Get_Event("Build_Generic_Structure_00")
|
||||
event.Set_Reward_Parameter(0, ion_cannon_count * 1000)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_QUANTITY", ion_cannon_count)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_STRUCTURE", "TEXT_GROUND_ION_CANNON")
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", reward_unit, reward_count)
|
||||
|
||||
--Set up the second event to fire when we build the correct number of ion cannons
|
||||
event = plot.Get_Event("Build_Generic_Structure_01")
|
||||
event.Set_Event_Parameter(0, "Ground_Ion_Cannon")
|
||||
event.Set_Event_Parameter(1, ion_cannon_count)
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
|
||||
--Start the plot
|
||||
plot.Activate()
|
||||
|
||||
--Wait on notification from the story system that the task has been accomplished
|
||||
Wait_On_Flag("BUILD_GENERIC_STRUCTURE_NOTIFICATION_00", nil)
|
||||
|
||||
--Find a suitable place to station the reward units
|
||||
reward_location = FindTarget(Intervention, "Intervention_Helper_Has_Ion_Cannon", "Friendly", 1.0)
|
||||
while not reward_location do
|
||||
Sleep(1)
|
||||
reward_location = FindTarget(Intervention, "Intervention_Helper_Has_Ion_Cannon", "Friendly", 1.0)
|
||||
end
|
||||
|
||||
--Set up an event to spawn the reward unit at the selected location and congratulate the player
|
||||
event = plot.Get_Event("Build_Generic_Structure_02")
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", reward_unit, reward_count)
|
||||
|
||||
event = plot.Get_Event("Build_Generic_Structure_03")
|
||||
event.Set_Reward_Parameter(0, reward_unit)
|
||||
event.Set_Reward_Parameter(1, reward_location)
|
||||
event.Set_Reward_Parameter(2, reward_count)
|
||||
|
||||
event = plot.Get_Event("Build_Generic_Structure_04")
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
|
||||
--Fire this story event to allow the plot to continue and run the event we just set up
|
||||
Story_Event("BUILD_GENERIC_STRUCTURE_NOTIFICATION_01")
|
||||
|
||||
--Wait until the plot informs us that it's done, stop and reset it, then sleep for a while before we exit
|
||||
--to prevent interventions from spawning back-to-back
|
||||
Wait_On_Flag("BUILD_GENERIC_STRUCTURE_NOTIFICATION_02", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
105
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_BUILD_LAND_UNITS.LUA
Normal file
105
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_BUILD_LAND_UNITS.LUA
Normal file
@@ -0,0 +1,105 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Build_Land_Units.lua#10 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Build_Land_Units.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: James_Yarrow $
|
||||
--
|
||||
-- $Change: 23281 $
|
||||
--
|
||||
-- $DateTime: 2005/08/06 14:49:58 $
|
||||
--
|
||||
-- $Revision: #10 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
|
||||
Category = "Intervention_Build_Land_Units"
|
||||
|
||||
plot = nil
|
||||
required_count = nil
|
||||
event = nil
|
||||
build_object = nil
|
||||
dialog = nil
|
||||
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
if PlayerObject.Get_Faction_Name() == "EMPIRE" then
|
||||
dialog = "Dialog_E_Intervention_Build_Units"
|
||||
build_object = Find_Object_Type("Imperial_Stormtrooper_Squad")
|
||||
elseif PlayerObject.Get_Faction_Name() == "REBEL" then
|
||||
dialog = "Dialog_R_Intervention_Build_Units"
|
||||
build_object = Find_Object_Type("Rebel_Infantry_Squad")
|
||||
else
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Build_Units.xml")
|
||||
|
||||
required_count = GameRandom(3, 8)
|
||||
|
||||
event = plot.Get_Event("Build_Units_00")
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_QUANTITY", required_count)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_UNIT", build_object)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", "TEXT_CREDITS", required_count * 500)
|
||||
|
||||
event = plot.Get_Event("Build_Units_01")
|
||||
event.Set_Event_Parameter(0, build_object)
|
||||
event.Set_Event_Parameter(1, required_count)
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", "TEXT_CREDITS", required_count * 500)
|
||||
|
||||
event = plot.Get_Event("Build_Units_02")
|
||||
event.Set_Reward_Parameter(0, required_count * 500)
|
||||
|
||||
event = plot.Get_Event("Build_Units_03")
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
|
||||
--Start the plot
|
||||
plot.Activate()
|
||||
|
||||
Wait_On_Flag("BUILD_UNITS_NOTIFICATION_00", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
@@ -0,0 +1,153 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Build_Light_Vehicle_Factories.lua#12 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Build_Light_Vehicle_Factories.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: oksana_kubushyna $
|
||||
--
|
||||
-- $Change: 24968 $
|
||||
--
|
||||
-- $DateTime: 2005/08/26 13:28:21 $
|
||||
--
|
||||
-- $Revision: #12 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
|
||||
Category = "Intervention_Build_Light_Vehicle_Factories"
|
||||
|
||||
dialog = nil
|
||||
reward_unit = nil
|
||||
build_object = nil
|
||||
factory_count = nil
|
||||
plot = nil
|
||||
event = nil
|
||||
reward_location = nil
|
||||
|
||||
reward_table = { Find_Object_Type("Rebel_Heavy_Tank_Brigade"),
|
||||
Find_Object_Type("Rebel_Light_Tank_Brigade"),
|
||||
Find_Object_Type("Rebel_Speeder_Wing"),
|
||||
Find_Object_Type("Rebel_Heavy_Tank_Brigade"),
|
||||
Find_Object_Type("Rebel_Infantry_Squad"),
|
||||
Find_Object_Type("Rebel_Tank_Buster_Squad"),
|
||||
Find_Object_Type("Rebel_Infiltrator_Team"),
|
||||
|
||||
Find_Object_Type("Imperial_Artillery_Corp"),
|
||||
Find_Object_Type("Imperial_Heavy_Scout_Squad"),
|
||||
Find_Object_Type("Imperial_Anti_Aircraft_Company"),
|
||||
Find_Object_Type("Imperial_Armor_Group"),
|
||||
Find_Object_Type("Imperial_Heavy_Assault_Company"),
|
||||
Find_Object_Type("Imperial_Anti_Infantry_Brigade"),
|
||||
Find_Object_Type("Imperial_Stormtrooper_Squad"),
|
||||
Find_Object_Type("Imperial_Light_Scout_Squad"), }
|
||||
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
if PlayerObject.Get_Faction_Name() == "EMPIRE" then
|
||||
dialog = "Dialog_E_Intervention_Build_Generic_Structure"
|
||||
build_object = Find_Object_Type("E_Ground_Light_Vehicle_Factory")
|
||||
elseif PlayerObject.Get_Faction_Name() == "REBEL" then
|
||||
dialog = "Dialog_R_Intervention_Build_Generic_Structure"
|
||||
build_object = Find_Object_Type("R_Ground_Light_Vehicle_Factory")
|
||||
else
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
reward_unit, reward_count = Select_Reward_Unit(reward_table, PlayerObject, 400 * PlayerObject.Get_Tech_Level())
|
||||
|
||||
--determine how many factories should be built
|
||||
factory_count = EvaluatePerception("Intervention_Helper_Light_Vehicle_Factories_To_Build", PlayerObject)
|
||||
|
||||
--find the xml defined plot for building a generic structure and fill in the skeleton so that
|
||||
--it asks the player to build the appropraite number of ion cannons
|
||||
plot = Get_Story_Plot("Intervention_Build_Generic_Structure.xml")
|
||||
|
||||
--Setup the first event to pop up a dialog and give the player some money to spend on the factories
|
||||
event = plot.Get_Event("Build_Generic_Structure_00")
|
||||
event.Set_Reward_Parameter(0, factory_count * 50)
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_QUANTITY", factory_count)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_STRUCTURE", build_object)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", reward_unit, reward_count)
|
||||
|
||||
--Set up the second event to fire when we build the correct number of ion cannons
|
||||
event = plot.Get_Event("Build_Generic_Structure_01")
|
||||
event.Set_Event_Parameter(0, build_object)
|
||||
event.Set_Event_Parameter(1, factory_count)
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
|
||||
--Start the plot
|
||||
plot.Activate()
|
||||
|
||||
--Wait on notification from the story system that the task has been accomplished
|
||||
Wait_On_Flag("BUILD_GENERIC_STRUCTURE_NOTIFICATION_00", nil)
|
||||
|
||||
--Find a suitable place to station the reward units
|
||||
reward_location = FindTarget(Intervention, "Intervention_Helper_Has_Light_Vehicle_Factory", "Friendly", 1.0)
|
||||
while not reward_location do
|
||||
Sleep(1)
|
||||
reward_location = FindTarget(Intervention, "Intervention_Helper_Has_Light_Vehicle_Factory", "Friendly", 1.0)
|
||||
end
|
||||
|
||||
--Set up an event to spawn the reward unit at the selected location and congratulate the player
|
||||
event = plot.Get_Event("Build_Generic_Structure_02")
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", reward_unit, reward_count)
|
||||
|
||||
event = plot.Get_Event("Build_Generic_Structure_03")
|
||||
event.Set_Reward_Parameter(0, reward_unit)
|
||||
event.Set_Reward_Parameter(1, reward_location)
|
||||
event.Set_Reward_Parameter(2, reward_count)
|
||||
|
||||
event = plot.Get_Event("Build_Generic_Structure_04")
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
|
||||
--Fire this story event to allow the plot to continue and run the event we just set up
|
||||
Story_Event("BUILD_GENERIC_STRUCTURE_NOTIFICATION_01")
|
||||
|
||||
--Wait until the plot informs us that it's done, stop and reset it, then sleep for a while before we exit
|
||||
--to prevent interventions from spawning back-to-back
|
||||
Wait_On_Flag("BUILD_GENERIC_STRUCTURE_NOTIFICATION_02", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
105
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_BUILD_SPACE_UNITS.LUA
Normal file
105
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_BUILD_SPACE_UNITS.LUA
Normal file
@@ -0,0 +1,105 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Build_Space_Units.lua#11 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Build_Space_Units.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: James_Yarrow $
|
||||
--
|
||||
-- $Change: 23281 $
|
||||
--
|
||||
-- $DateTime: 2005/08/06 14:49:58 $
|
||||
--
|
||||
-- $Revision: #11 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
|
||||
Category = "Intervention_Build_Space_Units"
|
||||
|
||||
plot = nil
|
||||
required_count = nil
|
||||
event = nil
|
||||
build_object = nil
|
||||
dialog = nil
|
||||
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
if PlayerObject.Get_Faction_Name() == "EMPIRE" then
|
||||
dialog = "Dialog_E_Intervention_Build_Units"
|
||||
build_object = Find_Object_Type("Tartan_Patrol_Cruiser")
|
||||
required_count = GameRandom(1, 3)
|
||||
elseif PlayerObject.Get_Faction_Name() == "REBEL" then
|
||||
dialog = "Dialog_R_Intervention_Build_Units"
|
||||
build_object = Find_Object_Type("Rebel_X-Wing_Squadron")
|
||||
required_count = GameRandom(3, 8)
|
||||
else
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Build_Units.xml")
|
||||
event = plot.Get_Event("Build_Units_00")
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_QUANTITY", required_count)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_UNIT", build_object)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", "TEXT_CREDITS", required_count * 500)
|
||||
|
||||
event = plot.Get_Event("Build_Units_01")
|
||||
event.Set_Event_Parameter(0, build_object)
|
||||
event.Set_Event_Parameter(1, required_count)
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", "TEXT_CREDITS", required_count * 500)
|
||||
|
||||
event = plot.Get_Event("Build_Units_02")
|
||||
event.Set_Reward_Parameter(0, required_count * 500)
|
||||
|
||||
event = plot.Get_Event("Build_Units_03")
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
|
||||
--Start the plot
|
||||
plot.Activate()
|
||||
|
||||
Wait_On_Flag("BUILD_UNITS_NOTIFICATION_00", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
82
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_CONFRONT_BOBA.LUA
Normal file
82
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_CONFRONT_BOBA.LUA
Normal file
@@ -0,0 +1,82 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Confront_Boba.lua#1 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Confront_Boba.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: Dan_Etter $
|
||||
--
|
||||
-- $Change: 25292 $
|
||||
--
|
||||
-- $DateTime: 2005/08/30 09:04:16 $
|
||||
--
|
||||
-- $Revision: #1 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
require("pgspawnunits")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
Category = "Intervention_Confront_Boba"
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Confront_Boba.xml")
|
||||
|
||||
credits = 3000
|
||||
|
||||
event = plot.Get_Event("Confront_Boba_00")
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", "TEXT_CREDITS", credits)
|
||||
|
||||
event = plot.Get_Event("Confront_Boba_01")
|
||||
event.Set_Reward_Parameter(0, credits)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", "TEXT_CREDITS", credits)
|
||||
|
||||
empire_player = Find_Player("EMPIRE")
|
||||
|
||||
han = SpawnList( {"Boba_Fett_Team_NoStealth"}, Target, empire_player, false, false )
|
||||
|
||||
plot.Activate()
|
||||
|
||||
Wait_On_Flag("CONFRONT_BOBA_NOTIFICATION_00", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
@@ -0,0 +1,141 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Conquer_Pirate_Planet.lua#14 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Conquer_Pirate_Planet.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: Dan_Etter $
|
||||
--
|
||||
-- $Change: 33933 $
|
||||
--
|
||||
-- $DateTime: 2005/12/01 16:36:13 $
|
||||
--
|
||||
-- $Revision: #14 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
|
||||
Category = "Intervention_Conquer_Pirate_Planet | Intervention_Conquer_Enemy_Planet"
|
||||
|
||||
plot = nil
|
||||
reward_unit = nil
|
||||
event = nil
|
||||
dialog = nil
|
||||
|
||||
reward_table = { Find_Object_Type("Rebel_Heavy_Tank_Brigade"),
|
||||
Find_Object_Type("Rebel_Light_Tank_Brigade"),
|
||||
Find_Object_Type("Rebel_Speeder_Wing"),
|
||||
Find_Object_Type("Rebel_Heavy_Tank_Brigade"),
|
||||
Find_Object_Type("Rebel_Infantry_Squad"),
|
||||
Find_Object_Type("Rebel_Tank_Buster_Squad"),
|
||||
Find_Object_Type("Rebel_Infiltrator_Team"),
|
||||
|
||||
Find_Object_Type("Calamari_Cruiser"),
|
||||
Find_Object_Type("A_Wing_Squadron"),
|
||||
Find_Object_Type("Rebel_X-Wing_Squadron"),
|
||||
Find_Object_Type("Y-Wing_Squadron"),
|
||||
Find_Object_Type("Corellian_Corvette"),
|
||||
Find_Object_Type("Corellian_Gunboat"),
|
||||
Find_Object_Type("Marauder_Missile_Cruiser"),
|
||||
Find_Object_Type("Nebulon_B_Frigate"),
|
||||
Find_Object_Type("Alliance_Assault_Frigate"),
|
||||
|
||||
Find_Object_Type("Imperial_Artillery_Corp"),
|
||||
Find_Object_Type("Imperial_Heavy_Scout_Squad"),
|
||||
Find_Object_Type("Imperial_Anti_Aircraft_Company"),
|
||||
Find_Object_Type("Imperial_Armor_Group"),
|
||||
Find_Object_Type("Imperial_Heavy_Assault_Company"),
|
||||
Find_Object_Type("Imperial_Anti_Infantry_Brigade"),
|
||||
Find_Object_Type("Imperial_Stormtrooper_Squad"),
|
||||
Find_Object_Type("Imperial_Light_Scout_Squad"),
|
||||
|
||||
Find_Object_Type("Broadside_Class_Cruiser"),
|
||||
Find_Object_Type("Interdictor_Cruiser"),
|
||||
Find_Object_Type("Tartan_Patrol_Cruiser"),
|
||||
Find_Object_Type("Victory_Destroyer"),
|
||||
Find_Object_Type("Acclamator_Assault_Ship"),
|
||||
Find_Object_Type("Star_Destroyer"),
|
||||
Find_Object_Type("TIE_Scout_Squadron"), }
|
||||
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
if PlayerObject.Get_Faction_Name() == "EMPIRE" then
|
||||
dialog = "Dialog_E_Intervention_Conquer_Pirate_Planet"
|
||||
elseif PlayerObject.Get_Faction_Name() == "REBEL" then
|
||||
dialog = "Dialog_R_Intervention_Conquer_Pirate_Planet"
|
||||
else
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
reward_unit, reward_count = Select_Reward_Unit(reward_table, PlayerObject, 500 * (PlayerObject.Get_Tech_Level() + 1))
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Conquer_Planet.xml")
|
||||
|
||||
event = plot.Get_Event("Conquer_Planet_00")
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", reward_unit, reward_count)
|
||||
|
||||
event = plot.Get_Event("Conquer_Planet_01")
|
||||
event.Set_Event_Parameter(0, Target)
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", reward_unit, reward_count)
|
||||
|
||||
event = plot.Get_Event("Conquer_Planet_02")
|
||||
event.Set_Reward_Parameter(0, reward_unit)
|
||||
event.Set_Reward_Parameter(1, Target)
|
||||
event.Set_Reward_Parameter(2, reward_count)
|
||||
|
||||
event = plot.Get_Event("Conquer_Planet_03")
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
event.Set_Reward_Parameter(2, Target)
|
||||
|
||||
--Start the plot
|
||||
plot.Activate()
|
||||
|
||||
Wait_On_Flag("CONQUER_PLANET_NOTIFICATION_00", Target)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
end
|
||||
|
||||
function Intervention_Original_Target_Owner_Changed(tf, old_player, new_player)
|
||||
--Take no action
|
||||
end
|
||||
90
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_CREDIT_WINDFALL.LUA
Normal file
90
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_CREDIT_WINDFALL.LUA
Normal file
@@ -0,0 +1,90 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Credit_Windfall.lua#5 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Credit_Windfall.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: James_Yarrow $
|
||||
--
|
||||
-- $Change: 33437 $
|
||||
--
|
||||
-- $DateTime: 2005/11/28 17:40:14 $
|
||||
--
|
||||
-- $Revision: #5 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
Category = "Intervention_Credit_Windfall"
|
||||
|
||||
dialog = nil
|
||||
plot = nil
|
||||
event = nil
|
||||
credits = nil
|
||||
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
if PlayerObject.Get_Faction_Name() == "EMPIRE" then
|
||||
dialog = "Dialog_E_Intervention_Credit_Windfall"
|
||||
elseif PlayerObject.Get_Faction_Name() == "REBEL" then
|
||||
dialog = "Dialog_R_Intervention_Credit_Windfall"
|
||||
else
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
credits = (PlayerObject.Get_Tech_Level() + 1) * 1000
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Windfall.xml")
|
||||
|
||||
event = plot.Get_Event("Windfall_00")
|
||||
event.Set_Reward_Type("CREDITS")
|
||||
event.Set_Reward_Parameter(0, credits)
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", "TEXT_CREDITS", credits)
|
||||
|
||||
event = plot.Get_Event("Windfall_01")
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
|
||||
plot.Activate()
|
||||
|
||||
Wait_On_Flag("WINDFALL_NOTIFICATION_00", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
@@ -0,0 +1,90 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Empire_Oppression.lua#1 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Empire_Oppression.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: Dan_Etter $
|
||||
--
|
||||
-- $Change: 25292 $
|
||||
--
|
||||
-- $DateTime: 2005/08/30 09:04:16 $
|
||||
--
|
||||
-- $Revision: #1 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
require("pgspawnunits")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
Category = "Intervention_Empire_Oppression"
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Empire_Oppression.xml")
|
||||
|
||||
smuggler = Find_Object_Type("Smuggler_Team_R")
|
||||
bounty_hunter = Find_Object_Type("Bounty_Hunter_Team_R")
|
||||
|
||||
event = plot.Get_Event("Empire_Oppression_00")
|
||||
event.Set_Reward_Parameter(0, Target)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", smuggler, 1)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", bounty_hunter, 1)
|
||||
|
||||
event = plot.Get_Event("Empire_Oppression_01")
|
||||
event.Set_Event_Parameter(0, Target)
|
||||
event.Set_Reward_Parameter(0, smuggler)
|
||||
event.Set_Reward_Parameter(1, Target)
|
||||
event.Set_Reward_Parameter(2, 1)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", smuggler, 1)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", bounty_hunter, 1)
|
||||
|
||||
event = plot.Get_Event("Empire_Oppression_02")
|
||||
event.Set_Reward_Parameter(0, bounty_hunter)
|
||||
event.Set_Reward_Parameter(1, Target)
|
||||
event.Set_Reward_Parameter(2, 1)
|
||||
|
||||
plot.Activate()
|
||||
|
||||
Wait_On_Flag("EMPIRE_OPPRESSION_NOTIFICATION_00", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
88
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_FLEET_RESCUE.LUA
Normal file
88
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_FLEET_RESCUE.LUA
Normal file
@@ -0,0 +1,88 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Fleet_Rescue.lua#1 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Fleet_Rescue.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: Dan_Etter $
|
||||
--
|
||||
-- $Change: 25292 $
|
||||
--
|
||||
-- $DateTime: 2005/08/30 09:04:16 $
|
||||
--
|
||||
-- $Revision: #1 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
require("pgspawnunits")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
Category = "Intervention_Fleet_Rescue"
|
||||
|
||||
reward_table = { Find_Object_Type("Corellian_Corvette"),
|
||||
Find_Object_Type("Corellian_Gunboat"),
|
||||
Find_Object_Type("Nebulon_B_Frigate"),
|
||||
Find_Object_Type("Marauder_Missile_Cruiser"), }
|
||||
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Fleet_Rescue.xml")
|
||||
|
||||
rebel_player = Find_Player("REBEL")
|
||||
|
||||
unit, count = Select_Reward_Unit(reward_table, rebel_player, 2000 * rebel_player.Get_Tech_Level())
|
||||
|
||||
event = plot.Get_Event("Fleet_Rescue_00")
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
|
||||
event = plot.Get_Event("Fleet_Rescue_01")
|
||||
event.Set_Event_Parameter(0, Target)
|
||||
event.Set_Reward_Parameter(0, unit)
|
||||
event.Set_Reward_Parameter(1, Target)
|
||||
event.Set_Reward_Parameter(2, count)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", unit, count)
|
||||
|
||||
plot.Activate()
|
||||
|
||||
Wait_On_Flag("FLEET_RESCUE_NOTIFICATION_00", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
108
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_HUNT_CAPITAL_SHIPS.LUA
Normal file
108
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_HUNT_CAPITAL_SHIPS.LUA
Normal file
@@ -0,0 +1,108 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Hunt_Capital_Ships.lua#1 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Hunt_Capital_Ships.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: James_Yarrow $
|
||||
--
|
||||
-- $Change: 22903 $
|
||||
--
|
||||
-- $DateTime: 2005/08/02 10:46:55 $
|
||||
--
|
||||
-- $Revision: #1 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
Category = "Intervention_Hunt_Capital_Ships"
|
||||
|
||||
dialog = nil
|
||||
plot = nil
|
||||
event = nil
|
||||
target_unit = nil
|
||||
reward_unit = nil
|
||||
reward_location = nil
|
||||
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
if PlayerObject.Get_Faction_Name() == "EMPIRE" then
|
||||
dialog = "Dialog_E_Intervention_Hunt_Capital_Ships"
|
||||
reward_unit = Find_Object_Type("Star_Destroyer")
|
||||
target_unit = Find_Object_Type("Calamari_Cruiser")
|
||||
elseif PlayerObject.Get_Faction_Name() == "REBEL" then
|
||||
dialog = "Dialog_R_Intervention_Hunt_Capital_Ships"
|
||||
reward_unit = Find_Object_Type("Calamari_Cruiser")
|
||||
target_unit = Find_Object_Type("Star_Destroyer")
|
||||
else
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Hunt_Capital_Ships.xml")
|
||||
|
||||
event = plot.Get_Event("Hunt_Capital_Ships_00")
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", reward_unit, 1)
|
||||
|
||||
event = plot.Get_Event("Hunt_Capital_Ships_01")
|
||||
event.Set_Event_Parameter(0, target_unit)
|
||||
|
||||
reward_location = FindTarget(Intervention, "Is_Home_Planet", "Friendly", 1.0)
|
||||
if not reward_location then
|
||||
reward_location = FindTarget(Intervention, "One", "Friendly", 1.0)
|
||||
end
|
||||
|
||||
event = plot.Get_Event("Hunt_Capital_Ships_02")
|
||||
event.Set_Reward_Parameter(0, reward_unit)
|
||||
event.Set_Reward_Parameter(1, reward_location)
|
||||
event.Set_Reward_Parameter(2, 1)
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", reward_unit, 1)
|
||||
|
||||
event = plot.Get_Event("Hunt_Capital_Ships_03")
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
|
||||
plot.Activate()
|
||||
|
||||
Wait_On_Flag("HUNT_CAPITAL_SHIPS_NOTIFICATION_00", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
79
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_IMPERIAL_TRAITOR.LUA
Normal file
79
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_IMPERIAL_TRAITOR.LUA
Normal file
@@ -0,0 +1,79 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Imperial_Traitor.lua#1 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Imperial_Traitor.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: Dan_Etter $
|
||||
--
|
||||
-- $Change: 25292 $
|
||||
--
|
||||
-- $DateTime: 2005/08/30 09:04:16 $
|
||||
--
|
||||
-- $Revision: #1 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
require("pgspawnunits")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
Category = "Intervention_Imperial_Traitor"
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Imperial_Traitor.xml")
|
||||
|
||||
credits = (PlayerObject.Get_Tech_Level() + 1) * 750
|
||||
|
||||
event = plot.Get_Event("Imperial_Traitor_00")
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", "TEXT_CREDITS", credits)
|
||||
|
||||
event = plot.Get_Event("Imperial_Traitor_01")
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", "TEXT_CREDITS", credits)
|
||||
event.Set_Event_Parameter(0, Target)
|
||||
event.Set_Reward_Parameter(0, credits)
|
||||
|
||||
plot.Activate()
|
||||
|
||||
Wait_On_Flag("IMPERIAL_TRAITOR_NOTIFICATION_00", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
121
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_INDIGENOUS_REVOLT.LUA
Normal file
121
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_INDIGENOUS_REVOLT.LUA
Normal file
@@ -0,0 +1,121 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Indigenous_Revolt.lua#2 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Indigenous_Revolt.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: Steve_Copeland $
|
||||
--
|
||||
-- $Change: 35533 $
|
||||
--
|
||||
-- $DateTime: 2005/12/19 10:40:49 $
|
||||
--
|
||||
-- $Revision: #2 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
Category = "Intervention_Indigenous_Revolt"
|
||||
|
||||
dialog = nil
|
||||
plot = nil
|
||||
event = nil
|
||||
indigenous_type = nil
|
||||
indigenous_spawner = nil
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
if PlayerObject.Get_Faction_Name() == "REBEL" then
|
||||
dialog = "Dialog_R_Intervention_Indigenous_Revolt"
|
||||
else
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
indigenous_type = Target.Get_Affiliated_Indigenous_Type(PlayerObject)
|
||||
if not indigenous_type then
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
if indigenous_type.Get_Name() == "EWOK_HUNTER" then
|
||||
indigenous_spawner = "EWOK_SPAWN_HOUSE"
|
||||
elseif indigenous_type.Get_Name() == "WOOKIE_WARRIOR" then
|
||||
indigenous_spawner = "WOOKIEE_SPAWN_HOUSE"
|
||||
elseif indigenous_type.Get_Name() == "JAWA_SCOUT" then
|
||||
indigenous_spawner = "JAWA_SANDCRAWLER"
|
||||
else
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Indigenous_Revolt.xml")
|
||||
|
||||
event = plot.Get_Event("Indigenous_Revolt_00")
|
||||
event.Set_Reward_Parameter(0, Target)
|
||||
event.Set_Reward_Parameter(1, indigenous_spawner)
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
|
||||
event = plot.Get_Event("Indigenous_Revolt_01")
|
||||
event.Set_Event_Parameter(0, Target)
|
||||
|
||||
event = plot.Get_Event("Indigenous_Revolt_03")
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
event.Set_Reward_Parameter(2, Target)
|
||||
|
||||
event = plot.Get_Event("Indigenous_Revolt_05")
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
|
||||
event = plot.Get_Event("Indigenous_Revolt_06")
|
||||
event.Set_Reward_Parameter(0, Target)
|
||||
event.Set_Reward_Parameter(1, indigenous_spawner)
|
||||
|
||||
event = plot.Get_Event("Indigenous_Revolt_07")
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
event.Set_Reward_Parameter(2, Target)
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
|
||||
plot.Activate()
|
||||
|
||||
Wait_On_Flag("INDIGENOUS_REVOLT_NOTIFICATION_00", Target)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
115
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_LAND_UNIT_WINDFALL.LUA
Normal file
115
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_LAND_UNIT_WINDFALL.LUA
Normal file
@@ -0,0 +1,115 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Land_Unit_Windfall.lua#8 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Land_Unit_Windfall.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: James_Yarrow $
|
||||
--
|
||||
-- $Change: 33437 $
|
||||
--
|
||||
-- $DateTime: 2005/11/28 17:40:14 $
|
||||
--
|
||||
-- $Revision: #8 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
Category = "Intervention_Land_Unit_Windfall"
|
||||
|
||||
dialog = nil
|
||||
plot = nil
|
||||
event = nil
|
||||
unit = nil
|
||||
spawn_location = nil
|
||||
|
||||
reward_table = { Find_Object_Type("Rebel_Heavy_Tank_Brigade"),
|
||||
Find_Object_Type("Rebel_Light_Tank_Brigade"),
|
||||
Find_Object_Type("Rebel_Speeder_Wing"),
|
||||
Find_Object_Type("Rebel_Heavy_Tank_Brigade"),
|
||||
Find_Object_Type("Rebel_Infantry_Squad"),
|
||||
Find_Object_Type("Rebel_Tank_Buster_Squad"),
|
||||
Find_Object_Type("Rebel_Infiltrator_Team"),
|
||||
|
||||
Find_Object_Type("Imperial_Artillery_Corp"),
|
||||
Find_Object_Type("Imperial_Heavy_Scout_Squad"),
|
||||
Find_Object_Type("Imperial_Anti_Aircraft_Company"),
|
||||
Find_Object_Type("Imperial_Armor_Group"),
|
||||
Find_Object_Type("Imperial_Heavy_Assault_Company"),
|
||||
Find_Object_Type("Imperial_Anti_Infantry_Brigade"),
|
||||
Find_Object_Type("Imperial_Stormtrooper_Squad"),
|
||||
Find_Object_Type("Imperial_Light_Scout_Squad"), }
|
||||
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
if PlayerObject.Get_Faction_Name() == "EMPIRE" then
|
||||
dialog = "Dialog_E_Intervention_Unit_Windfall"
|
||||
elseif PlayerObject.Get_Faction_Name() == "REBEL" then
|
||||
dialog = "Dialog_R_Intervention_Unit_Windfall"
|
||||
else
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
unit, count = Select_Reward_Unit(reward_table, PlayerObject, 200 * PlayerObject.Get_Tech_Level())
|
||||
|
||||
while not spawn_location do
|
||||
spawn_location = FindTarget(Intervention, "Major_Intervention_Value", "Friendly", 1.0)
|
||||
Sleep(1)
|
||||
end
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Windfall.xml")
|
||||
|
||||
event = plot.Get_Event("Windfall_00")
|
||||
event.Set_Reward_Type("UNIQUE_UNIT")
|
||||
event.Set_Reward_Parameter(0, unit)
|
||||
event.Set_Reward_Parameter(1, spawn_location)
|
||||
event.Set_Reward_Parameter(2, count)
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", unit, count)
|
||||
|
||||
event = plot.Get_Event("Windfall_01")
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
|
||||
plot.Activate()
|
||||
|
||||
Wait_On_Flag("WINDFALL_NOTIFICATION_00", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
107
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_PIRATE_AMBUSH.LUA
Normal file
107
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_PIRATE_AMBUSH.LUA
Normal file
@@ -0,0 +1,107 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Pirate_Ambush.lua#1 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Pirate_Ambush.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: Dan_Etter $
|
||||
--
|
||||
-- $Change: 25292 $
|
||||
--
|
||||
-- $DateTime: 2005/08/30 09:04:16 $
|
||||
--
|
||||
-- $Revision: #1 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
require("pgspawnunits")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
Category = "Intervention_Pirate_Ambush"
|
||||
|
||||
reward_table = { Find_Object_Type("Imperial_Artillery_Corp"),
|
||||
Find_Object_Type("Imperial_Heavy_Scout_Squad"),
|
||||
Find_Object_Type("Imperial_Anti_Aircraft_Company"),
|
||||
Find_Object_Type("Imperial_Armor_Group"),
|
||||
Find_Object_Type("Imperial_Heavy_Assault_Company"),
|
||||
Find_Object_Type("Imperial_Anti_Infantry_Brigade"),
|
||||
Find_Object_Type("Imperial_Stormtrooper_Squad"),
|
||||
Find_Object_Type("Imperial_Light_Scout_Squad"),
|
||||
Find_Object_Type("Broadside_Class_Cruiser"),
|
||||
Find_Object_Type("Interdictor_Cruiser"),
|
||||
Find_Object_Type("Tartan_Patrol_Cruiser"),
|
||||
Find_Object_Type("Victory_Destroyer"),
|
||||
Find_Object_Type("Acclamator_Assault_Ship"),
|
||||
Find_Object_Type("Star_Destroyer"),
|
||||
Find_Object_Type("TIE_Scout_Squadron"), }
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Pirate_Ambush.xml")
|
||||
|
||||
empire_player = Find_Player("EMPIRE")
|
||||
|
||||
unit, count = Select_Reward_Unit(reward_table, empire_player, 1500 * empire_player.Get_Tech_Level())
|
||||
|
||||
plot.Activate()
|
||||
|
||||
Wait_On_Flag("PIRATE_AMBUSH_NOTIFICATION_00", nil)
|
||||
|
||||
spawn_location = FindTarget.Reachable_Target(empire_player, "Intervention_Helper_Weakly_Defended_Space", "Friendly", "Any", 1.0)
|
||||
|
||||
event = plot.Get_Event("Pirate_Ambush_02")
|
||||
event.Set_Reward_Parameter(0, unit)
|
||||
event.Set_Reward_Parameter(1, spawn_location.Get_Game_Object())
|
||||
event.Set_Reward_Parameter(2, count)
|
||||
|
||||
pirate_player = Find_Player("PIRATES")
|
||||
pirate_fleet = {
|
||||
"Pirate_Frigate",
|
||||
"Pirate_Frigate",
|
||||
"Pirate_Fighter_Squadron",
|
||||
"Pirate_Fighter_Squadron",
|
||||
"Pirate_Fighter_Squadron",
|
||||
}
|
||||
|
||||
SpawnList( pirate_fleet, spawn_location.Get_Game_Object(), pirate_player, false, false )
|
||||
|
||||
spawn_location.Get_Game_Object ().Force_Test_Space_Conflict ()
|
||||
|
||||
Wait_On_Flag("PIRATE_AMBUSH_NOTIFICATION_01", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
98
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_PIRATE_DEFECTION.LUA
Normal file
98
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_PIRATE_DEFECTION.LUA
Normal file
@@ -0,0 +1,98 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Pirate_Defection.lua#1 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Pirate_Defection.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: Dan_Etter $
|
||||
--
|
||||
-- $Change: 25292 $
|
||||
--
|
||||
-- $DateTime: 2005/08/30 09:04:16 $
|
||||
--
|
||||
-- $Revision: #1 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
require("pgspawnunits")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
Category = "Intervention_Pirate_Defection"
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Pirate_Defection.xml")
|
||||
|
||||
pirate_player = Find_Player("PIRATES")
|
||||
|
||||
ATAT = Find_Object_Type("Imperial_Heavy_Assault_Company")
|
||||
|
||||
event = plot.Get_Event("Pirate_Defection_00")
|
||||
event.Set_Reward_Parameter(0, Target)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", ATAT, 1)
|
||||
|
||||
event = plot.Get_Event("Pirate_Defection_01")
|
||||
event.Set_Event_Parameter(0, Target)
|
||||
event.Set_Reward_Parameter(0, ATAT)
|
||||
event.Set_Reward_Parameter(1, Target)
|
||||
event.Set_Reward_Parameter(2, 1)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", ATAT, 1)
|
||||
|
||||
|
||||
plot.Activate()
|
||||
|
||||
Wait_On_Flag("PIRATE_DEFECTION_NOTIFICATION_00", nil)
|
||||
|
||||
Squad0 = SpawnList( {"Pirate_Soldier_Squad"}, Target, pirate_player, false, false )
|
||||
Squad1 = SpawnList( {"Pirate_Soldier_Squad"}, Target, pirate_player, false, false )
|
||||
Squad2 = SpawnList( {"Pirate_Soldier_Squad"}, Target, pirate_player, false, false )
|
||||
Squad3 = SpawnList( {"Pirate_Soldier_Squad"}, Target, pirate_player, false, false )
|
||||
Squad4 = SpawnList( {"Pirate_PLEX_Squad"}, Target, pirate_player, false, false )
|
||||
Squad5 = SpawnList( {"Pirate_PLEX_Squad"}, Target, pirate_player, false, false )
|
||||
Squad6 = SpawnList( {"Pirate_Skiff_Team"}, Target, pirate_player, false, false )
|
||||
Squad7 = SpawnList( {"Pirate_Skiff_Team"}, Target, pirate_player, false, false )
|
||||
Squad8 = SpawnList( {"Pirate_Swamp_Speeder_Team"}, Target, pirate_player, false, false )
|
||||
Squad9 = SpawnList( {"Pirate_Swamp_Speeder_Team"}, Target, pirate_player, false, false )
|
||||
|
||||
Wait_On_Flag("PIRATE_DEFECTION_NOTIFICATION_01", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
106
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_PIRATE_ENLIGHTENMENT.LUA
Normal file
106
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_PIRATE_ENLIGHTENMENT.LUA
Normal file
@@ -0,0 +1,106 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Pirate_Enlightenment.lua#2 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Pirate_Enlightenment.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: James_Yarrow $
|
||||
--
|
||||
-- $Change: 34855 $
|
||||
--
|
||||
-- $DateTime: 2005/12/10 13:03:09 $
|
||||
--
|
||||
-- $Revision: #2 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
require("pgspawnunits")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
Category = "Intervention_Pirate_Enlightenment"
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Pirate_Enlightenment.xml")
|
||||
|
||||
credits = (PlayerObject.Get_Tech_Level() + 1) * 1000
|
||||
|
||||
empire_player = Find_Player("EMPIRE")
|
||||
empire_fleet = {
|
||||
"Acclamator_Assault_Ship",
|
||||
"Broadside_Class_Cruiser",
|
||||
}
|
||||
|
||||
pirate_player = Find_Player("PIRATES")
|
||||
pirate_fleet = {
|
||||
"Pirate_Frigate",
|
||||
"Pirate_Frigate",
|
||||
"Pirate_Frigate",
|
||||
}
|
||||
|
||||
event = plot.Get_Event("Pirate_Enlightenment_00")
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
|
||||
event = plot.Get_Event("Pirate_Enlightenment_01")
|
||||
event.Set_Event_Parameter(0, Target)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
|
||||
event = plot.Get_Event("Pirate_Enlightenment_02_Win")
|
||||
event.Set_Reward_Parameter(0, credits)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", "TEXT_CREDITS", credits)
|
||||
|
||||
|
||||
plot.Activate()
|
||||
Wait_On_Flag("PIRATE_ENLIGHTENMENT_NOTIFICATION_00", nil)
|
||||
|
||||
SpawnList( empire_fleet, Target, empire_player, false, false )
|
||||
|
||||
Target.Force_Test_Space_Conflict ()
|
||||
|
||||
Wait_On_Flag("PIRATE_ENLIGHTENMENT_NOTIFICATION_01", nil)
|
||||
|
||||
SpawnList( pirate_fleet, Target, pirate_player, false, false )
|
||||
|
||||
Target.Force_Test_Space_Conflict ()
|
||||
|
||||
Wait_On_Flag("PIRATE_ENLIGHTENMENT_NOTIFICATION_END", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
@@ -0,0 +1,88 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Pirate_Enlightenment_b.lua#1 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Pirate_Enlightenment_b.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: Dan_Etter $
|
||||
--
|
||||
-- $Change: 25292 $
|
||||
--
|
||||
-- $DateTime: 2005/08/30 09:04:16 $
|
||||
--
|
||||
-- $Revision: #1 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
require("pgspawnunits")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
Category = "Intervention_Pirate_Enlightenment_b"
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Pirate_Enlightenment_b.xml")
|
||||
|
||||
empire_player = Find_Player("EMPIRE")
|
||||
empire_fleet = {
|
||||
"Imperial_Stormtrooper_Squad",
|
||||
"Broadside_Class_Cruiser",
|
||||
}
|
||||
|
||||
event = plot.Get_Event("Pirate_Enlightenment_b_00")
|
||||
event.Set_Reward_Parameter(0, Target)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
|
||||
event = plot.Get_Event("Pirate_Enlightenment_b_01")
|
||||
event.Set_Reward_Parameter(0, Target)
|
||||
|
||||
event = plot.Get_Event("Pirate_Enlightenment_b_02")
|
||||
event.Set_Event_Parameter(0, Target)
|
||||
|
||||
|
||||
plot.Activate()
|
||||
Wait_On_Flag("PIRATE_ENLIGHTENMENT_B_NOTIFICATION_00", nil)
|
||||
|
||||
SpawnList( empire_fleet, Target, empire_player, false, false )
|
||||
|
||||
Target.Force_Test_Space_Conflict ()
|
||||
|
||||
Wait_On_Flag("PIRATE_ENLIGHTENMENT_B_NOTIFICATION_END", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
81
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_PIRATE_RESCUE.LUA
Normal file
81
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_PIRATE_RESCUE.LUA
Normal file
@@ -0,0 +1,81 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Pirate_Rescue.lua#2 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Pirate_Rescue.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: Dan_Etter $
|
||||
--
|
||||
-- $Change: 34264 $
|
||||
--
|
||||
-- $DateTime: 2005/12/05 15:41:53 $
|
||||
--
|
||||
-- $Revision: #2 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
require("pgspawnunits")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
Category = "Intervention_Pirate_Rescue"
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Pirate_Rescue.xml")
|
||||
|
||||
venator = Find_Object_Type("Rebel_Pirate_Frigate")
|
||||
|
||||
event = plot.Get_Event("Pirate_Rescue_00")
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", venator, 1)
|
||||
|
||||
event = plot.Get_Event("Pirate_Rescue_01")
|
||||
event.Set_Event_Parameter(0, Target)
|
||||
event.Set_Reward_Parameter(0, venator)
|
||||
event.Set_Reward_Parameter(1, Target)
|
||||
event.Set_Reward_Parameter(2, 1)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", venator, 1)
|
||||
|
||||
plot.Activate()
|
||||
|
||||
Wait_On_Flag("PIRATE_RESCUE_NOTIFICATION_00", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
88
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_PLANET_WINDFALL.LUA
Normal file
88
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_PLANET_WINDFALL.LUA
Normal file
@@ -0,0 +1,88 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Planet_Windfall.lua#5 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Planet_Windfall.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: James_Yarrow $
|
||||
--
|
||||
-- $Change: 33437 $
|
||||
--
|
||||
-- $DateTime: 2005/11/28 17:40:14 $
|
||||
--
|
||||
-- $Revision: #5 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
Category = "Intervention_Planet_Windfall"
|
||||
|
||||
dialog = nil
|
||||
plot = nil
|
||||
event = nil
|
||||
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
if PlayerObject.Get_Faction_Name() == "EMPIRE" then
|
||||
dialog = "Dialog_E_Intervention_Planet_Windfall"
|
||||
elseif PlayerObject.Get_Faction_Name() == "REBEL" then
|
||||
dialog = "Dialog_R_Intervention_Planet_Windfall"
|
||||
else
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Windfall.xml")
|
||||
|
||||
event = plot.Get_Event("Windfall_00")
|
||||
event.Set_Reward_Type("PLANET_FACTION")
|
||||
event.Set_Reward_Parameter(0, Target)
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
|
||||
event = plot.Get_Event("Windfall_01")
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
|
||||
plot.Activate()
|
||||
|
||||
Wait_On_Flag("WINDFALL_NOTIFICATION_00", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
104
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_REBEL_REVOLT.LUA
Normal file
104
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_REBEL_REVOLT.LUA
Normal file
@@ -0,0 +1,104 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Rebel_Revolt.lua#4 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Rebel_Revolt.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: James_Yarrow $
|
||||
--
|
||||
-- $Change: 34302 $
|
||||
--
|
||||
-- $DateTime: 2005/12/05 18:27:40 $
|
||||
--
|
||||
-- $Revision: #4 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
require("pgspawnunits")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
Category = "Intervention_Rebel_Revolt"
|
||||
|
||||
reward_table = { Find_Object_Type("Imperial_Artillery_Corp"),
|
||||
Find_Object_Type("Imperial_Heavy_Scout_Squad"),
|
||||
Find_Object_Type("Imperial_Anti_Aircraft_Company"),
|
||||
Find_Object_Type("Imperial_Armor_Group"),
|
||||
Find_Object_Type("Imperial_Heavy_Assault_Company"),
|
||||
Find_Object_Type("Imperial_Anti_Infantry_Brigade"),
|
||||
Find_Object_Type("Broadside_Class_Cruiser"),
|
||||
Find_Object_Type("Interdictor_Cruiser"),
|
||||
Find_Object_Type("Tartan_Patrol_Cruiser"),
|
||||
Find_Object_Type("Victory_Destroyer"),
|
||||
Find_Object_Type("Acclamator_Assault_Ship"),
|
||||
Find_Object_Type("Star_Destroyer"), }
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Rebel_Revolt.xml")
|
||||
|
||||
rebel_player = Find_Player("REBEL")
|
||||
empire_player = Find_Player("EMPIRE")
|
||||
|
||||
unit, count = Select_Reward_Unit(reward_table, empire_player, 1500 * empire_player.Get_Tech_Level())
|
||||
|
||||
reward_unit1 = Find_Object_Type("Rebel_Infantry_Squad")
|
||||
reward_unit2 = Find_Object_Type("Rebel_Tank_Buster_Squad")
|
||||
|
||||
event = plot.Get_Event("Rebel_Revolt_00")
|
||||
event.Set_Reward_Parameter(0, Target)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", unit, count)
|
||||
|
||||
event = plot.Get_Event("Rebel_Revolt_01")
|
||||
event.Set_Event_Parameter(0, Target)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", unit, count)
|
||||
|
||||
|
||||
plot.Activate()
|
||||
|
||||
Wait_On_Flag("REBEL_REVOLT_SPAWN_UNITS", nil)
|
||||
Target.Change_Owner(rebel_player)
|
||||
enemy_units1 = Spawn_Unit(reward_unit1, Target, rebel_player)
|
||||
enemy_units2 = Spawn_Unit(reward_unit2, Target, rebel_player)
|
||||
|
||||
Wait_On_Flag("REBEL_REVOLT_NOTIFICATION_00", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
83
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_REBEL_SABOTAGE.LUA
Normal file
83
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_REBEL_SABOTAGE.LUA
Normal file
@@ -0,0 +1,83 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Rebel_Sabotage.lua#1 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Rebel_Sabotage.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: Dan_Etter $
|
||||
--
|
||||
-- $Change: 25292 $
|
||||
--
|
||||
-- $DateTime: 2005/08/30 09:04:16 $
|
||||
--
|
||||
-- $Revision: #1 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
require("pgspawnunits")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
Category = "Intervention_Rebel_Sabotage"
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Rebel_Sabotage.xml")
|
||||
|
||||
credits = (PlayerObject.Get_Tech_Level() + 1) * 250
|
||||
|
||||
rebel_player = Find_Player("REBEL")
|
||||
|
||||
Commander = SpawnList( {"Fleet_Com_Rebel_Team"}, Target, rebel_player, false, false )
|
||||
|
||||
event = plot.Get_Event("Rebel_Sabotage_00")
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", "TEXT_CREDITS", credits)
|
||||
|
||||
event = plot.Get_Event("Rebel_Sabotage_01")
|
||||
event.Set_Event_Parameter(1, Target)
|
||||
event.Set_Reward_Parameter(0, credits)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", "TEXT_CREDITS", credits)
|
||||
|
||||
plot.Activate()
|
||||
|
||||
Wait_On_Flag("REBEL_SABOTAGE_NOTIFICATION_00", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
78
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_REBEL_SMUGGLER.LUA
Normal file
78
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_REBEL_SMUGGLER.LUA
Normal file
@@ -0,0 +1,78 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Rebel_Smuggler.lua#2 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Rebel_Smuggler.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: Dan_Etter $
|
||||
--
|
||||
-- $Change: 25292 $
|
||||
--
|
||||
-- $DateTime: 2005/08/30 09:04:16 $
|
||||
--
|
||||
-- $Revision: #2 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
require("pgspawnunits")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
Category = "Intervention_Rebel_Smuggler"
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Rebel_Smuggler.xml")
|
||||
|
||||
event = plot.Get_Event("Rebel_Smuggler_00")
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
|
||||
event = plot.Get_Event("Rebel_Smuggler_01")
|
||||
event.Set_Reward_Parameter(0, Target)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
|
||||
rebel_player = Find_Player("REBEL")
|
||||
|
||||
han = SpawnList( {"Han_Solo_Team"}, Target, rebel_player, false, false )
|
||||
|
||||
plot.Activate()
|
||||
|
||||
Wait_On_Flag("REBEL_SMUGGLER_NOTIFICATION_00", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
98
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_REFUGEE_ESCORT.LUA
Normal file
98
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_REFUGEE_ESCORT.LUA
Normal file
@@ -0,0 +1,98 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Refugee_Escort.lua#1 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Refugee_Escort.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: Dan_Etter $
|
||||
--
|
||||
-- $Change: 25292 $
|
||||
--
|
||||
-- $DateTime: 2005/08/30 09:04:16 $
|
||||
--
|
||||
-- $Revision: #1 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
require("pgspawnunits")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
Category = "Intervention_Refugee_Escort"
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Refugee_Escort.xml")
|
||||
|
||||
credits = (PlayerObject.Get_Tech_Level() + 1) * 750
|
||||
|
||||
rebel_player = Find_Player("REBEL")
|
||||
|
||||
home_location = FindTarget.Reachable_Target(rebel_player, "One", "Friendly", "Any", .045)
|
||||
|
||||
event = plot.Get_Event("Refugee_Escort_00")
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_MON_EVENT_REFUGEE_LOCATION", Target)
|
||||
event.Add_Dialog_Text("TEXT_MON_EVENT_REFUGEE_DESTINATION", home_location.Get_Game_Object())
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", "TEXT_CREDITS", credits)
|
||||
|
||||
event = plot.Get_Event("Refugee_Escort_00a")
|
||||
event.Set_Reward_Parameter(0, Target)
|
||||
|
||||
event = plot.Get_Event("Refugee_Escort_01")
|
||||
event.Set_Event_Parameter(1, home_location.Get_Game_Object())
|
||||
event.Set_Reward_Parameter(0, credits)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_MON_EVENT_REFUGEE_LOCATION", Target)
|
||||
event.Add_Dialog_Text("TEXT_MON_EVENT_REFUGEE_DESTINATION", home_location.Get_Game_Object())
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", "TEXT_CREDITS", credits)
|
||||
|
||||
plot.Activate()
|
||||
|
||||
Wait_On_Flag("REFUGEE_ESCORT_NOTIFICATION_00", nil)
|
||||
|
||||
refugee = SpawnList( {"Rebel_Refugee_Team"}, Target, rebel_player, false, false )
|
||||
|
||||
Wait_On_Flag("REFUGEE_ESCORT_NOTIFICATION_01", nil)
|
||||
|
||||
for i,unit in pairs(refugee) do
|
||||
unit.Despawn()
|
||||
end
|
||||
|
||||
Wait_On_Flag("REFUGEE_ESCORT_NOTIFICATION_02", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
127
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_SCOUT.LUA
Normal file
127
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_SCOUT.LUA
Normal file
@@ -0,0 +1,127 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Scout.lua#10 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Scout.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: James_Yarrow $
|
||||
--
|
||||
-- $Change: 32646 $
|
||||
--
|
||||
-- $DateTime: 2005/11/18 11:33:49 $
|
||||
--
|
||||
-- $Revision: #10 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
Category = "Intervention_Scout"
|
||||
|
||||
plot = nil
|
||||
event = nil
|
||||
dialog = nil
|
||||
second_target = nil
|
||||
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
if PlayerObject.Get_Faction_Name() == "EMPIRE" then
|
||||
dialog = "Dialog_E_Intervention_Scout"
|
||||
elseif PlayerObject.Get_Faction_Name() == "REBEL" then
|
||||
dialog = "Dialog_R_Intervention_Scout"
|
||||
else
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Scout.xml")
|
||||
|
||||
event = plot.Get_Event("Scout_00")
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
|
||||
event = plot.Get_Event("Scout_01")
|
||||
event.Set_Event_Parameter(0, Target)
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
|
||||
plot.Activate()
|
||||
|
||||
Wait_On_Flag("SCOUT_NOTIFICATION_00", nil)
|
||||
|
||||
second_target = FindTarget(Intervention, "Intervention_Helper_Good_Scout_Target", "Enemy", 0.5)
|
||||
|
||||
if not second_target or second_target == Target then
|
||||
event = plot.Get_Event("Scout_06")
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION_COMPLETE", Target)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", "TEXT_CREDITS", 1000)
|
||||
Story_Event("SCOUT_NOTIFICATION_03")
|
||||
Wait_On_Flag("SCOUT_NOTIFICATION_02")
|
||||
plot.Suspend()
|
||||
plot.Reset()
|
||||
End_Intervention()
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
event = plot.Get_Event("Scout_02")
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION_COMPLETE", Target)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", second_target)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", "TEXT_CREDITS", 1000)
|
||||
|
||||
event = plot.Get_Event("Scout_03")
|
||||
event.Set_Event_Parameter(0, second_target)
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", "TEXT_CREDITS", 1000)
|
||||
|
||||
event = plot.Get_Event("Scout_05")
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
|
||||
Story_Event("SCOUT_NOTIFICATION_01")
|
||||
|
||||
Wait_On_Flag("SCOUT_NOTIFICATION_02", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
|
||||
function Intervention_Original_Target_Owner_Changed(tf, old_player, new_player)
|
||||
--Take no action
|
||||
end
|
||||
74
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_SHOW_OF_STRENGTH.LUA
Normal file
74
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_SHOW_OF_STRENGTH.LUA
Normal file
@@ -0,0 +1,74 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Show_of_Strength.lua#1 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Show_of_Strength.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: Dan_Etter $
|
||||
--
|
||||
-- $Change: 25292 $
|
||||
--
|
||||
-- $DateTime: 2005/08/30 09:04:16 $
|
||||
--
|
||||
-- $Revision: #1 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
require("pgspawnunits")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
Category = "Intervention_Show_of_Strength"
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Show_of_Strength.xml")
|
||||
|
||||
event = plot.Get_Event("Show_of_Strength_00")
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_FACTION_SWITCH", Target)
|
||||
|
||||
event = plot.Get_Event("Show_of_Strength_01")
|
||||
event.Set_Reward_Parameter(0, Target)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_FACTION_SWITCH_COMPLETE", Target)
|
||||
|
||||
plot.Activate()
|
||||
|
||||
Wait_On_Flag("SHOW_OF_STRENGTH_NOTIFICATION_00", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
115
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_SPACE_UNIT_WINDFALL.LUA
Normal file
115
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_SPACE_UNIT_WINDFALL.LUA
Normal file
@@ -0,0 +1,115 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Space_Unit_Windfall.lua#6 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Space_Unit_Windfall.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: James_Yarrow $
|
||||
--
|
||||
-- $Change: 33437 $
|
||||
--
|
||||
-- $DateTime: 2005/11/28 17:40:14 $
|
||||
--
|
||||
-- $Revision: #6 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
Category = "Intervention_Credit_Windfall"
|
||||
|
||||
dialog = nil
|
||||
plot = nil
|
||||
event = nil
|
||||
unit = nil
|
||||
spawn_location = nil
|
||||
|
||||
reward_table = { Find_Object_Type("Calamari_Cruiser"),
|
||||
Find_Object_Type("A_Wing_Squadron"),
|
||||
Find_Object_Type("Rebel_X-Wing_Squadron"),
|
||||
Find_Object_Type("Y-Wing_Squadron"),
|
||||
Find_Object_Type("Corellian_Corvette"),
|
||||
Find_Object_Type("Corellian_Gunboat"),
|
||||
Find_Object_Type("Marauder_Missile_Cruiser"),
|
||||
Find_Object_Type("Nebulon_B_Frigate"),
|
||||
Find_Object_Type("Alliance_Assault_Frigate"),
|
||||
|
||||
Find_Object_Type("Broadside_Class_Cruiser"),
|
||||
Find_Object_Type("Interdictor_Cruiser"),
|
||||
Find_Object_Type("Tartan_Patrol_Cruiser"),
|
||||
Find_Object_Type("Victory_Destroyer"),
|
||||
Find_Object_Type("Acclamator_Assault_Ship"),
|
||||
Find_Object_Type("Star_Destroyer"),
|
||||
Find_Object_Type("TIE_Scout_Squadron"), }
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
if PlayerObject.Get_Faction_Name() == "EMPIRE" then
|
||||
dialog = "Dialog_E_Intervention_Unit_Windfall"
|
||||
elseif PlayerObject.Get_Faction_Name() == "REBEL" then
|
||||
dialog = "Dialog_R_Intervention_Unit_Windfall"
|
||||
else
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
unit, count = Select_Reward_Unit(reward_table, PlayerObject, 500 * PlayerObject.Get_Tech_Level())
|
||||
|
||||
while not spawn_location do
|
||||
spawn_location = FindTarget(Intervention, "Major_Intervention_Value", "Friendly", 1.0)
|
||||
Sleep(1)
|
||||
end
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Windfall.xml")
|
||||
|
||||
event = plot.Get_Event("Windfall_00")
|
||||
event.Set_Reward_Type("UNIQUE_UNIT")
|
||||
event.Set_Reward_Parameter(0, unit)
|
||||
event.Set_Reward_Parameter(1, spawn_location)
|
||||
event.Set_Reward_Parameter(2, count)
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", unit, count)
|
||||
|
||||
event = plot.Get_Event("Windfall_01")
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
|
||||
plot.Activate()
|
||||
|
||||
Wait_On_Flag("WINDFALL_NOTIFICATION_00", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
89
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_TECH_WINDFALL.LUA
Normal file
89
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_TECH_WINDFALL.LUA
Normal file
@@ -0,0 +1,89 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Tech_Windfall.lua#2 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Tech_Windfall.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: James_Yarrow $
|
||||
--
|
||||
-- $Change: 23760 $
|
||||
--
|
||||
-- $DateTime: 2005/08/12 19:54:09 $
|
||||
--
|
||||
-- $Revision: #2 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
Category = "Intervention_Tech_Windfall"
|
||||
|
||||
dialog = nil
|
||||
plot = nil
|
||||
event = nil
|
||||
tech_level = nil
|
||||
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
--Begin_Intervention()
|
||||
|
||||
if PlayerObject.Get_Faction_Name() == "EMPIRE" then
|
||||
dialog = "Dialog_E_Intervention_Tech_Windfall"
|
||||
elseif PlayerObject.Get_Faction_Name() == "REBEL" then
|
||||
dialog = "Dialog_R_Intervention_Tech_Windfall"
|
||||
else
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
tech_level = (PlayerObject.Get_Tech_Level() + 1)
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Windfall.xml")
|
||||
|
||||
event = plot.Get_Event("Windfall_00")
|
||||
event.Set_Reward_Type("SET_TECH_LEVEL")
|
||||
event.Set_Reward_Parameter(0, PlayerObject.Get_Faction_Name())
|
||||
event.Set_Reward_Parameter(1, tech_level)
|
||||
event.Set_Dialog(dialog)
|
||||
|
||||
event = plot.Get_Event("Windfall_01")
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
|
||||
plot.Activate()
|
||||
|
||||
Wait_On_Flag("WINDFALL_NOTIFICATION_00", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
@@ -0,0 +1,114 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Upgrade_Space_Station.lua#11 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Upgrade_Space_Station.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: James_Yarrow $
|
||||
--
|
||||
-- $Change: 27338 $
|
||||
--
|
||||
-- $DateTime: 2005/09/15 18:30:58 $
|
||||
--
|
||||
-- $Revision: #11 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
|
||||
Category = "Intervention_Upgrade_Space_Station"
|
||||
|
||||
plot = nil
|
||||
event = nil
|
||||
dialog = nil
|
||||
base_type = nil
|
||||
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
if PlayerObject.Get_Faction_Name() == "EMPIRE" then
|
||||
dialog = "Dialog_E_Intervention_Upgrade_Space_Station"
|
||||
elseif PlayerObject.Get_Faction_Name() == "REBEL" then
|
||||
dialog = "Dialog_R_Intervention_Upgrade_Space_Station"
|
||||
else
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
base_type = Target.Get_Next_Starbase_Type()
|
||||
|
||||
if not TestValid(base_type) then
|
||||
End_Intervention()
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Upgrade_Space_Station.xml")
|
||||
|
||||
event = plot.Get_Event("Upgrade_Space_Station_00")
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_STRUCTURE", base_type)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", "TEXT_CREDITS", 1000)
|
||||
|
||||
event = plot.Get_Event("Upgrade_Space_Station_01")
|
||||
event.Set_Event_Parameter(0, Target)
|
||||
event.Set_Event_Parameter(1, base_type.Get_Base_Level())
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", "TEXT_CREDITS", 1000)
|
||||
|
||||
event = plot.Get_Event("Upgrade_Space_Station_03")
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
event.Set_Reward_Parameter(2, Target)
|
||||
|
||||
plot.Activate()
|
||||
|
||||
Wait_On_Flag("UPGRADE_SPACE_STATION_NOTIFICATION_00", Target)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
|
||||
function Intervention_Original_Target_Owner_Changed(tf, old_player, new_player)
|
||||
--Cancel the mission, then reset the plot and quit
|
||||
event = plot.Get_Event("Upgrade_Space_Station_04")
|
||||
event.Set_Event_Parameter(0, Target)
|
||||
Story_Event("UPGRADE_SPACE_STATION_NOTIFICATION_ABORT", Target)
|
||||
plot.Suspend()
|
||||
plot.Reset()
|
||||
ScriptExit()
|
||||
end
|
||||
100
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_VADER_FAVOR.LUA
Normal file
100
DATA/SCRIPTS/INTERVENTIONS/INTERVENTION_VADER_FAVOR.LUA
Normal file
@@ -0,0 +1,100 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Vader_Favor.lua#1 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Intervention_Vader_Favor.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: Dan_Etter $
|
||||
--
|
||||
-- $Change: 25292 $
|
||||
--
|
||||
-- $DateTime: 2005/08/30 09:04:16 $
|
||||
--
|
||||
-- $Revision: #1 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pginterventions")
|
||||
require("pgspawnunits")
|
||||
|
||||
function Declare_Goal_Type()
|
||||
Category = "Intervention_Vader_Favor"
|
||||
|
||||
reward_table = { Find_Object_Type("Imperial_Artillery_Corp"),
|
||||
Find_Object_Type("Imperial_Heavy_Scout_Squad"),
|
||||
Find_Object_Type("Imperial_Armor_Group"),
|
||||
Find_Object_Type("Imperial_Anti_Infantry_Brigade"), }
|
||||
end
|
||||
|
||||
function Intervention_Thread()
|
||||
|
||||
Begin_Intervention()
|
||||
|
||||
plot = Get_Story_Plot("Intervention_Vader_Favor.xml")
|
||||
|
||||
empire_player = Find_Player("EMPIRE")
|
||||
|
||||
unit, count = Select_Reward_Unit(reward_table, empire_player, 2000 * empire_player.Get_Tech_Level())
|
||||
|
||||
event = plot.Get_Event("Vader_Favor_00")
|
||||
event.Set_Reward_Parameter(0, Target)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", unit, count)
|
||||
|
||||
event = plot.Get_Event("Vader_Favor_00_restricted")
|
||||
event.Set_Event_Parameter(0, Target)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
|
||||
event = plot.Get_Event("Vader_Favor_01")
|
||||
event.Set_Event_Parameter(1, Target)
|
||||
event.Set_Reward_Parameter(0, Target)
|
||||
|
||||
event = plot.Get_Event("Vader_Favor_02")
|
||||
event.Set_Event_Parameter(0, Target)
|
||||
|
||||
event = plot.Get_Event("Vader_Favor_03")
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_REWARD", unit, count)
|
||||
event.Set_Reward_Parameter(0, unit)
|
||||
event.Set_Reward_Parameter(1, Target)
|
||||
event.Set_Reward_Parameter(2, count)
|
||||
|
||||
plot.Activate()
|
||||
|
||||
Wait_On_Flag("VADER_FAVOR_NOTIFICATION_00", nil)
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
End_Intervention()
|
||||
|
||||
end
|
||||
138
DATA/SCRIPTS/INTERVENTIONS/SANDBOX_EVENT_CONTRIVED_ATTACK.LUA
Normal file
138
DATA/SCRIPTS/INTERVENTIONS/SANDBOX_EVENT_CONTRIVED_ATTACK.LUA
Normal file
@@ -0,0 +1,138 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Sandbox_Event_Contrived_Attack.lua#5 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Sandbox_Event_Contrived_Attack.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: James_Yarrow $
|
||||
--
|
||||
-- $Change: 34107 $
|
||||
--
|
||||
-- $DateTime: 2005/12/02 17:34:04 $
|
||||
--
|
||||
-- $Revision: #5 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pgevents")
|
||||
require("pginterventions")
|
||||
|
||||
function Definitions()
|
||||
Category = "Sandbox_Event_Contrived_Attack"
|
||||
|
||||
dialog = nil
|
||||
plot = nil
|
||||
event = nil
|
||||
|
||||
MinContrastScale = 1.0
|
||||
MaxContrastScale = 1.4
|
||||
TaskForce = {
|
||||
{
|
||||
"MainForce"
|
||||
,"TaskForceRequired"
|
||||
,"DenyHeroAttach"
|
||||
,"Fighter | Bomber | Corvette | Frigate | Capital = 100%"
|
||||
},
|
||||
}
|
||||
AllowFreeStoreUnits = false
|
||||
MagicPlan = true
|
||||
MagicPlanStealing = false
|
||||
end
|
||||
|
||||
function MainForce_Thread()
|
||||
|
||||
MainForce.Set_As_Goal_System_Removable(false)
|
||||
|
||||
if EvaluatePerception("Is_Sandbox_Event_Allowed", PlayerObject) == 0 then
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
--Note this script is run by the enemy of the player that receives the story dialog
|
||||
if PlayerObject.Get_Faction_Name() == "EMPIRE" then
|
||||
dialog = "Dialog_R_Sandbox_Event_Contrived_Attack"
|
||||
elseif PlayerObject.Get_Faction_Name() == "REBEL" then
|
||||
dialog = "Dialog_E_Sandbox_Event_Contrived_Attack"
|
||||
else
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
plot = Get_Story_Plot("Sandbox_Event_Contrived_Attack.xml")
|
||||
|
||||
event = plot.Get_Event("Contrived_Attack_00")
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
|
||||
event = plot.Get_Event("Contrived_Attack_02")
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
|
||||
event = plot.Get_Event("Contrived_Attack_04")
|
||||
event.Set_Dialog(dialog)
|
||||
|
||||
event = plot.Get_Event("Contrived_Attack_07")
|
||||
event.Set_Dialog(dialog)
|
||||
|
||||
event = plot.Get_Event("Contrived_Attack_05")
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
|
||||
event = plot.Get_Event("Contrived_Attack_08")
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
|
||||
plot.Activate()
|
||||
|
||||
Sleep(45)
|
||||
Story_Event("CONTRIVED_ATTACK_NOTIFICATION_00")
|
||||
Sleep(15)
|
||||
|
||||
BlockOnCommand(MainForce.Produce_Force(Target))
|
||||
BlockOnCommand(MainForce.Force_Test_Space_Conflict())
|
||||
|
||||
if MainForce.Get_Force_Count() == 0 then
|
||||
Story_Event("CONTRIVED_ATTACK_NOTIFICATION_01")
|
||||
else
|
||||
Story_Event("CONTRIVED_ATTACK_NOTIFICATION_02")
|
||||
end
|
||||
|
||||
while not Check_Story_Flag(PlayerObject, "CONTRIVED_ATTACK_NOTIFICATION_03", nil, true) do
|
||||
Sleep(1)
|
||||
end
|
||||
|
||||
plot.Suspend()
|
||||
|
||||
plot.Reset()
|
||||
|
||||
MainForce.Release_Forces(1.0)
|
||||
|
||||
Sleep(600)
|
||||
end
|
||||
|
||||
function MainForce_No_Units_Remaining()
|
||||
--Do nothing - in particular don't use the default behavior of quitting the plan
|
||||
end
|
||||
142
DATA/SCRIPTS/INTERVENTIONS/SANDBOX_EVENT_FLEET_RAMPAGE.LUA
Normal file
142
DATA/SCRIPTS/INTERVENTIONS/SANDBOX_EVENT_FLEET_RAMPAGE.LUA
Normal file
@@ -0,0 +1,142 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Sandbox_Event_Fleet_Rampage.lua#4 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Sandbox_Event_Fleet_Rampage.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: James_Yarrow $
|
||||
--
|
||||
-- $Change: 34107 $
|
||||
--
|
||||
-- $DateTime: 2005/12/02 17:34:04 $
|
||||
--
|
||||
-- $Revision: #4 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pgevents")
|
||||
require("pginterventions")
|
||||
require("pgcommands")
|
||||
|
||||
function Definitions()
|
||||
Category = "Sandbox_Event_Fleet_Rampage"
|
||||
|
||||
dialog = nil
|
||||
plot = nil
|
||||
event = nil
|
||||
destroyed_count = nil
|
||||
original_count = nil
|
||||
perception_name = nil
|
||||
|
||||
MinContrastScale = 3.0
|
||||
MaxContrastScale = 3.0
|
||||
TaskForce = {
|
||||
{
|
||||
"MainForce"
|
||||
,"TaskForceRequired"
|
||||
,"DenyHeroAttach"
|
||||
,"Fighter | Bomber | Corvette | Frigate | Capital = 100%"
|
||||
,"Accuser_Star_Destroyer | Home_One = 100%"
|
||||
},
|
||||
}
|
||||
|
||||
RequiredCategories = { "SpaceHero" }
|
||||
AllowFreeStoreUnits = false
|
||||
MagicPlan = true
|
||||
MagicPlanStealing = false
|
||||
end
|
||||
|
||||
function MainForce_Thread()
|
||||
|
||||
MainForce.Set_As_Goal_System_Removable(false)
|
||||
|
||||
if EvaluatePerception("Is_Sandbox_Event_Allowed", PlayerObject) == 0 then
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
--Note this script is run by the enemy of the player that receives the story dialog
|
||||
if PlayerObject.Get_Faction_Name() == "EMPIRE" then
|
||||
dialog = "Dialog_R_Sandbox_Event_Fleet_Rampage"
|
||||
perception_name = "Has_Accuser"
|
||||
elseif PlayerObject.Get_Faction_Name() == "REBEL" then
|
||||
dialog = "Dialog_E_Sandbox_Event_Fleet_Rampage"
|
||||
perception_name = "Has_Home_One"
|
||||
else
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
plot = Get_Story_Plot("Sandbox_Event_Fleet_Rampage.xml")
|
||||
|
||||
event = plot.Get_Event("Fleet_Rampage_00")
|
||||
event.Set_Dialog(dialog)
|
||||
event = plot.Get_Event("Fleet_Rampage_01")
|
||||
event.Set_Dialog(dialog)
|
||||
event = plot.Get_Event("Fleet_Rampage_02")
|
||||
event.Set_Dialog(dialog)
|
||||
event = plot.Get_Event("Fleet_Rampage_03")
|
||||
event.Set_Dialog(dialog)
|
||||
|
||||
plot.Activate()
|
||||
|
||||
Sleep(1)
|
||||
|
||||
AssembleForce(MainForce)
|
||||
destroyed_count = 0
|
||||
original_count = MainForce.Get_Force_Count()
|
||||
|
||||
while TestValid(Target) and MainForce.Get_Force_Count() > 0 do
|
||||
BlockOnCommand(MainForce.Move_To(Target))
|
||||
|
||||
if GameRandom.Get_Float() < 0.33 then
|
||||
Story_Event("FLEET_RAMPAGE_NOTIFICATION_02")
|
||||
end
|
||||
|
||||
Target = FindTarget(MainForce, "Trigger_Fleet_Rampage", "Enemy", 0.5)
|
||||
end
|
||||
|
||||
plot.Suspend()
|
||||
plot.Reset()
|
||||
MainForce.Release_Forces(1.0)
|
||||
Sleep(300)
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
function MainForce_Original_Target_Owner_Changed(tf, old_player, new_player)
|
||||
end
|
||||
|
||||
function MainForce_Unit_Destroyed(tf)
|
||||
destroyed_count = destroyed_count + 1
|
||||
|
||||
if EvaluatePerception(perception_name, PlayerObject, Target) == 0 then
|
||||
Story_Event("FLEET_RAMPAGE_NOTIFICATION_00")
|
||||
MainForce.Release_Forces(1.0)
|
||||
elseif destroyed_count > original_count / 2 then
|
||||
Story_Event("FLEET_RAMPAGE_NOTIFICATION_01")
|
||||
MainForce.Release_Forces(1.0)
|
||||
end
|
||||
end
|
||||
131
DATA/SCRIPTS/INTERVENTIONS/SANDBOX_EVENT_HERO_GATHERING.LUA
Normal file
131
DATA/SCRIPTS/INTERVENTIONS/SANDBOX_EVENT_HERO_GATHERING.LUA
Normal file
@@ -0,0 +1,131 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Sandbox_Event_Hero_Gathering.lua#4 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Sandbox_Event_Hero_Gathering.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: James_Yarrow $
|
||||
--
|
||||
-- $Change: 34107 $
|
||||
--
|
||||
-- $DateTime: 2005/12/02 17:34:04 $
|
||||
--
|
||||
-- $Revision: #4 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pgevents")
|
||||
require("pginterventions")
|
||||
|
||||
function Definitions()
|
||||
Category = "Sandbox_Event_Hero_Gathering"
|
||||
|
||||
dialog = nil
|
||||
plot = nil
|
||||
event = nil
|
||||
start_time = nil
|
||||
|
||||
TaskForce = {
|
||||
{
|
||||
"MainForce"
|
||||
,"TaskForceRequired"
|
||||
,"DenyHeroAttach"
|
||||
,"Darth_Team | Obi_Wan_Team = 1"
|
||||
,"Boba_Fett_Team | Han_Solo_Team = 1"
|
||||
,"General_Veers_Team | Droids_Team = 1"
|
||||
},
|
||||
}
|
||||
AllowFreeStoreUnits = false
|
||||
MagicPlan = true
|
||||
MagicPlanStealing = false
|
||||
end
|
||||
|
||||
function MainForce_Thread()
|
||||
|
||||
MainForce.Set_As_Goal_System_Removable(false)
|
||||
|
||||
if EvaluatePerception("Is_Sandbox_Event_Allowed", PlayerObject) == 0 then
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
--Note this script is run by the enemy of the player that receives the story dialog
|
||||
if PlayerObject.Get_Faction_Name() == "EMPIRE" then
|
||||
dialog = "Dialog_R_Sandbox_Event_Hero_Gathering"
|
||||
elseif PlayerObject.Get_Faction_Name() == "REBEL" then
|
||||
dialog = "Dialog_E_Sandbox_Event_Hero_Gathering"
|
||||
else
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
plot = Get_Story_Plot("Sandbox_Event_Hero_Gathering.xml")
|
||||
|
||||
event = plot.Get_Event("Hero_Gathering_00")
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
|
||||
event = plot.Get_Event("Hero_Gathering_01")
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
|
||||
event = plot.Get_Event("Hero_Gathering_06")
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
|
||||
BlockOnCommand(MainForce.Produce_Force(Target))
|
||||
LandUnits(MainForce)
|
||||
plot.Activate()
|
||||
|
||||
start_time = GetCurrentTime()
|
||||
while true do
|
||||
if Check_Story_Flag(PlayerObject, "HERO_GATHERING_NOTIFICATION_01", nil, true) then
|
||||
plot.Suspend()
|
||||
plot.Reset()
|
||||
Sleep(300)
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
if EvaluatePerception("Trigger_Hero_Gathering", PlayerObject, Target) == 0 then
|
||||
Story_Event("HERO_GATHERING_NOTIFICATION_00")
|
||||
plot.Suspend()
|
||||
plot.Reset()
|
||||
Sleep(300)
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
Sleep(1)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function MainForce_Original_Target_Owner_Changed(tf, old_player, new_player)
|
||||
end
|
||||
|
||||
function MainForce_No_Units_Remaining()
|
||||
--Do nothing - in particular don't use the default behavior of quitting the plan
|
||||
end
|
||||
@@ -0,0 +1,137 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Sandbox_Event_Planet_Ownership_Flip.lua#3 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Sandbox_Event_Planet_Ownership_Flip.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: James_Yarrow $
|
||||
--
|
||||
-- $Change: 34107 $
|
||||
--
|
||||
-- $DateTime: 2005/12/02 17:34:04 $
|
||||
--
|
||||
-- $Revision: #3 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pgevents")
|
||||
require("pginterventions")
|
||||
require("pgcommands")
|
||||
|
||||
function Definitions()
|
||||
Category = "Sandbox_Event_Planet_Ownership_Flip"
|
||||
|
||||
dialog = nil
|
||||
plot = nil
|
||||
event = nil
|
||||
|
||||
MinContrastScale = 0.0
|
||||
MaxContrastScale = 2.0
|
||||
TaskForce = {
|
||||
{
|
||||
"StructureForce"
|
||||
,"TaskForceRequired"
|
||||
,"DenyHeroAttach"
|
||||
,"E_Ground_Light_Vehicle_Factory | R_Ground_Light_Vehicle_Factory = 0,1"
|
||||
,"Power_Generator_R | Power_Generator_E = 0,1"
|
||||
,"E_Ground_Barracks | R_Ground_Barracks = 0,1"
|
||||
},
|
||||
{
|
||||
"UnitForce"
|
||||
,"TaskForceRequired"
|
||||
,"DenyHeroAttach"
|
||||
,"Fighter | Bomber | Corvette | Frigate | Capital = 0,5"
|
||||
,"Infantry | Vehicle | Air = 0,5"
|
||||
},
|
||||
}
|
||||
RequiredCategories = {
|
||||
"Air | Infantry | Vehicle | AntiStructure",
|
||||
"Fighter | Bomber | Corvette | Frigate | Capital"
|
||||
}
|
||||
AllowFreeStoreUnits = false
|
||||
MagicPlan = true
|
||||
MagicPlanStealing = false
|
||||
|
||||
end
|
||||
|
||||
function StructureForce_Thread()
|
||||
|
||||
StructureForce.Set_As_Goal_System_Removable(false)
|
||||
|
||||
if EvaluatePerception("Is_Sandbox_Event_Allowed", PlayerObject) == 0 then
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
--Note this script is run by the enemy of the player that receives the story dialog
|
||||
if PlayerObject.Get_Faction_Name() == "EMPIRE" then
|
||||
dialog = "Dialog_R_Sandbox_Event_Planet_Ownership_Flip"
|
||||
elseif PlayerObject.Get_Faction_Name() == "REBEL" then
|
||||
dialog = "Dialog_E_Sandbox_Event_Planet_Ownership_Flip"
|
||||
else
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
plot = Get_Story_Plot("Sandbox_Event_Planet_Ownership_Flip.xml")
|
||||
|
||||
event = plot.Get_Event("Planet_Ownership_Flip_00")
|
||||
event.Set_Reward_Parameter(0, Target)
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
|
||||
event = plot.Get_Event("Planet_Ownership_Flip_01")
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
|
||||
plot.Activate()
|
||||
|
||||
while not Check_Story_Flag(PlayerObject, "PLANET_OWNERSHIP_FLIP_NOTIFICATION_00", nil, true) do
|
||||
Sleep(1)
|
||||
end
|
||||
|
||||
BlockOnCommand(StructureForce.Produce_Force(Target))
|
||||
BlockOnCommand(UnitForce.Produce_Force(Target))
|
||||
|
||||
plot.Suspend()
|
||||
plot.Reset()
|
||||
|
||||
Sleep(300)
|
||||
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
function UnitForce_Thread()
|
||||
WaitForever()
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
function UnitForce_Original_Target_Owner_Changed(tf, old_player, new_player)
|
||||
end
|
||||
|
||||
function StructureForce_Original_Target_Owner_Changed(tf, old_player, new_player)
|
||||
end
|
||||
135
DATA/SCRIPTS/INTERVENTIONS/SANDBOX_EVENT_TRAP_GALACTIC.LUA
Normal file
135
DATA/SCRIPTS/INTERVENTIONS/SANDBOX_EVENT_TRAP_GALACTIC.LUA
Normal file
@@ -0,0 +1,135 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Sandbox_Event_Trap_Galactic.lua#4 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Sandbox_Event_Trap_Galactic.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: James_Yarrow $
|
||||
--
|
||||
-- $Change: 34302 $
|
||||
--
|
||||
-- $DateTime: 2005/12/05 18:27:40 $
|
||||
--
|
||||
-- $Revision: #4 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pgevents")
|
||||
require("pginterventions")
|
||||
|
||||
function Definitions()
|
||||
Category = "Sandbox_Event_Trap_Galactic"
|
||||
|
||||
dialog = nil
|
||||
plot = nil
|
||||
event = nil
|
||||
start_time = nil
|
||||
|
||||
TaskForce = {
|
||||
{
|
||||
"MainForce"
|
||||
,"TaskForceRequired"
|
||||
,"DenyHeroAttach"
|
||||
},
|
||||
}
|
||||
|
||||
end
|
||||
|
||||
function MainForce_Thread()
|
||||
|
||||
MainForce.Set_As_Goal_System_Removable(false)
|
||||
|
||||
if EvaluatePerception("Is_Sandbox_Event_Allowed", PlayerObject) == 0 then
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
--Note this script is run by the enemy of the player that receives the story dialog
|
||||
if PlayerObject.Get_Faction_Name() == "EMPIRE" then
|
||||
dialog = "Dialog_R_Sandbox_Event_Trap"
|
||||
elseif PlayerObject.Get_Faction_Name() == "REBEL" then
|
||||
dialog = "Dialog_E_Sandbox_Event_Trap"
|
||||
else
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
plot = Get_Story_Plot("Sandbox_Event_Trap_Galactic.xml")
|
||||
|
||||
event = plot.Get_Event("Trap_Galactic_00")
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
|
||||
event = plot.Get_Event("Trap_Galactic_01")
|
||||
event.Set_Dialog(dialog)
|
||||
event.Clear_Dialog_Text()
|
||||
event.Add_Dialog_Text("TEXT_INTERVENTION_LOCATION", Target)
|
||||
|
||||
event = plot.Get_Event("Trap_Galactic_02")
|
||||
event.Set_Event_Parameter(1, Target)
|
||||
|
||||
event = plot.Get_Event("Trap_Galactic_04")
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
event.Set_Reward_Parameter(2, Target)
|
||||
|
||||
event = plot.Get_Event("Trap_Galactic_05")
|
||||
event.Set_Reward_Parameter(1, PlayerObject.Get_Faction_Name())
|
||||
|
||||
plot.Activate()
|
||||
|
||||
start_time = GetCurrentTime()
|
||||
while true do
|
||||
if Check_Story_Flag(PlayerObject, "TRAP_GALACTIC_NOTIFICATION_01", nil, true) then
|
||||
|
||||
while not Check_Story_Flag(PlayerObject, "TRAP_GALACTIC_NOTIFICATION_02", nil, true) do
|
||||
Sleep(1)
|
||||
end
|
||||
|
||||
--Make sure the trap flag on the target is cleared
|
||||
Check_Story_Flag(PlayerObject, "TRAP_GALACTIC_NOTIFICATION_01", Target, true)
|
||||
|
||||
plot.Suspend()
|
||||
plot.Reset()
|
||||
Sleep(300)
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
if EvaluatePerception("Trigger_Trap_Galactic", PlayerObject, Target) == 0 then
|
||||
Story_Event("TRAP_GALACTIC_NOTIFICATION_00")
|
||||
plot.Suspend()
|
||||
plot.Reset()
|
||||
Sleep(300)
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
Sleep(1)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function MainForce_Original_Target_Owner_Changed(tf, old_player, new_player)
|
||||
end
|
||||
109
DATA/SCRIPTS/INTERVENTIONS/SANDBOX_EVENT_TRAP_LAND.LUA
Normal file
109
DATA/SCRIPTS/INTERVENTIONS/SANDBOX_EVENT_TRAP_LAND.LUA
Normal file
@@ -0,0 +1,109 @@
|
||||
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Sandbox_Event_Trap_Land.lua#4 $
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- (C) Petroglyph Games, Inc.
|
||||
--
|
||||
--
|
||||
-- ***** ** * *
|
||||
-- * ** * * *
|
||||
-- * * * * *
|
||||
-- * * * * * * * *
|
||||
-- * * *** ****** * ** **** *** * * * ***** * ***
|
||||
-- * ** * * * ** * ** ** * * * * ** ** ** *
|
||||
-- *** ***** * * * * * * * * ** * * * *
|
||||
-- * * * * * * * * * * * * * * *
|
||||
-- * * * * * * * * * * ** * * * *
|
||||
-- * ** * * ** * ** * * ** * * * *
|
||||
-- ** **** ** * **** ***** * ** *** * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * *
|
||||
-- * * * *
|
||||
-- **** * *
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
--
|
||||
-- $File: //depot/Projects/StarWars/Run/Data/Scripts/Interventions/Sandbox_Event_Trap_Land.lua $
|
||||
--
|
||||
-- Original Author: James Yarrow
|
||||
--
|
||||
-- $Author: James_Yarrow $
|
||||
--
|
||||
-- $Change: 34302 $
|
||||
--
|
||||
-- $DateTime: 2005/12/05 18:27:40 $
|
||||
--
|
||||
-- $Revision: #4 $
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pgevents")
|
||||
require("pginterventions")
|
||||
require("pgcommands")
|
||||
require("pgspawnunits")
|
||||
|
||||
function Definitions()
|
||||
Category = "Sandbox_Event_Trap_Land"
|
||||
|
||||
dialog = nil
|
||||
plot = nil
|
||||
event = nil
|
||||
|
||||
TaskForce = {
|
||||
{
|
||||
"MainForce"
|
||||
,"TaskForceRequired"
|
||||
,"DenyHeroAttach"
|
||||
},
|
||||
}
|
||||
|
||||
AllowFreeStoreUnits = false
|
||||
end
|
||||
|
||||
function MainForce_Thread()
|
||||
|
||||
MainForce.Set_As_Goal_System_Removable(false)
|
||||
|
||||
if GameRandom.Get_Float() < 0.75 then
|
||||
--Player got lucky, no trap after all
|
||||
WaitForever()
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
Sleep(20)
|
||||
|
||||
if PlayerObject.Get_Faction_Name() == "REBEL" then
|
||||
unit_list = { "Rebel_Light_Tank_Brigade",
|
||||
"Rebel_Light_Tank_Brigade",
|
||||
"Rebel_Light_Tank_Brigade",
|
||||
"Rebel_Infantry_Squad",
|
||||
"Rebel_Infantry_Squad",
|
||||
"Rebel_Infantry_Squad",
|
||||
"Rebel_Infantry_Squad", }
|
||||
objective_name = "TEXT_TAR_EVENT_TRAP_02"
|
||||
elseif PlayerObject.Get_Faction_Name() == "EMPIRE" then
|
||||
unit_list = { "Imperial_Heavy_Scout_Squad",
|
||||
"Imperial_Heavy_Scout_Squad",
|
||||
"Imperial_Armor_Group",
|
||||
"Imperial_Stormtrooper_Squad",
|
||||
"Imperial_Stormtrooper_Squad",
|
||||
"Imperial_Stormtrooper_Squad",
|
||||
"Imperial_Stormtrooper_Squad", }
|
||||
objective_name = "TEXT_MON_EVENT_TRAP_02"
|
||||
else
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
Game_Message("TEXT_ENCYCLOPEDIA_HOLOCRON_UPDATED")
|
||||
Add_Objective(objective_name, false)
|
||||
reinforce_point = FindTarget(MainForce, "Current_Enemy_Location", "Tactical_Location", 1.0)
|
||||
|
||||
ReinforceList(unit_list, reinforce_point, PlayerObject, true, false, true, nil)
|
||||
|
||||
WaitForever()
|
||||
|
||||
ScriptExit()
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user