Initial commit

This commit is contained in:
2026-02-28 14:00:45 -06:00
commit 16d3170787
1134 changed files with 589134 additions and 0 deletions

View File

@@ -0,0 +1,62 @@
-- $Id: //depot/Projects/StarWars_Steam/FOC/Run/Data/Scripts/Evaluators/AnyBaseStructuresThreatened.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_Steam/FOC/Run/Data/Scripts/Evaluators/AnyBaseStructuresThreatened.lua $
--
-- Original Author: Steve_Copeland
--
-- $Author: Brian_Hayes $
--
-- $Change: 637819 $
--
-- $DateTime: 2017/03/22 10:16:16 $
--
-- $Revision: #1 $
--
--/////////////////////////////////////////////////////////////////////////////////////////////////
require("PGBaseDefinitions")
function Clean_Up()
-- any temporary object pointers need to be set to nil in this function.
-- ie: Target = nil
end
function Evaluate()
if FindTarget.Reachable_Target(PlayerObject, "Need_To_Defend_Structure", "Friendly_Structure", "Any_Threat", 1.0) then
return 1.0
else
return 0.0
end
end

View File

@@ -0,0 +1,61 @@
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Evaluators/AnyCurrentThreats.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/Evaluators/AnyCurrentThreats.lua $
--
-- Original Author: Steve_Copeland
--
-- $Author: Brian_Hayes $
--
-- $Change: 25932 $
--
-- $DateTime: 2005/09/05 11:53:29 $
--
-- $Revision: #3 $
--
--/////////////////////////////////////////////////////////////////////////////////////////////////
require("PGBaseDefinitions")
function Clean_Up()
-- any temporary object pointers need to be set to nil in this function.
-- ie: Target = nil
end
function Evaluate()
if FindTarget.Reachable_Target(PlayerObject, "Is_Target_A_Current_Threat", "Enemy", "Any_Threat", 1.0) then
return 1.0
else
return 0.0
end
end

View File

@@ -0,0 +1,56 @@
-- $Id: //depot/Projects/StarWars_Steam/FOC/Run/Data/Scripts/Evaluators/AnyFreeLandSlots.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_Steam/FOC/Run/Data/Scripts/Evaluators/AnyFreeLandSlots.lua $
--
-- Original Author: James Yarrow
--
-- $Author: Brian_Hayes $
--
-- $Change: 637819 $
--
-- $DateTime: 2017/03/22 10:16:16 $
--
-- $Revision: #1 $
--
--/////////////////////////////////////////////////////////////////////////////////////////////////
require("PGBaseDefinitions")
function Clean_Up()
-- any temporary object pointers need to be set to nil in this function.
-- ie: Target = nil
end
function Evaluate()
if FindTarget.Reachable_Target(PlayerObject, "Can_Park_Ground_Unit", "Friendly", "Any", 1.0) then
return 1.0
else
return 0.0
end
end

View File

@@ -0,0 +1,77 @@
-- $Id: //depot/Projects/StarWars_Steam/FOC/Run/Data/Scripts/Evaluators/EvaluateInGalacticContext.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_Steam/FOC/Run/Data/Scripts/Evaluators/EvaluateInGalacticContext.lua $
--
-- Original Author: Steve_Copeland
--
-- $Author: Brian_Hayes $
--
-- $Change: 637819 $
--
-- $DateTime: 2017/03/22 10:16:16 $
--
-- $Revision: #1 $
--
--/////////////////////////////////////////////////////////////////////////////////////////////////
require("PGBaseDefinitions")
-- Evaluate galactic perceptions from a tactical context.
-- Note that galactic perceptions won't update while in tactical mode.
-- XML usage example: Script_EvaluateInGalacticContext.Evaluate{Parameter_Script_String = "GenericPlanetValue"}
function Clean_Up()
-- any temporary object pointers need to be set to nil in this function.
-- ie: Target = nil
ret_value = nil
end
function Evaluate(perception_name)
-- Galactic perceptions have no context in skirmish mode
if EvaluatePerception("Is_Skirmish_Mode", PlayerObject) == 0 then
ret_value = Evaluate_In_Galactic_Context(perception_name, PlayerObject)
else
ret_value = nil
end
-- handle the case where no value is found
if not ret_value then
DebugMessage("%s -- Error, unable to evaluate perception %s.", tostring(Script), perception_name)
ret_value = 0.0
end
--DebugMessage("%s -- Evaluated in galactic context: %s: %.3f.", tostring(Script), perception_name, ret_value)
return ret_value
end

View File

@@ -0,0 +1,65 @@
-- $Id: //depot/Projects/StarWars_Steam/FOC/Run/Data/Scripts/Evaluators/GetDistanceToNearestSpaceField.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_Steam/FOC/Run/Data/Scripts/Evaluators/GetDistanceToNearestSpaceField.lua $
--
-- Original Author: Steve_Copeland
--
-- $Author: Brian_Hayes $
--
-- $Change: 637819 $
--
-- $DateTime: 2017/03/22 10:16:16 $
--
-- $Revision: #1 $
--
--/////////////////////////////////////////////////////////////////////////////////////////////////
require("PGBaseDefinitions")
function Clean_Up()
-- any temporary object pointers need to be set to nil in this function.
-- ie: Target = nil
nearest_obj = nil
end
-- Receives:
-- String which is a space field category mask for the space fields to consider
function Evaluate(space_fields)
nearest_obj = Find_Nearest_Space_Field(Target, space_fields)
if TestValid(nearest_obj) then
return Target.Get_Distance(nearest_obj)
else
return BIG_FLOAT
end
end

View File

@@ -0,0 +1,72 @@
-- $Id: //depot/Projects/StarWars_Steam/FOC/Run/Data/Scripts/Evaluators/GetDistanceToNearestWithProperty.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_Steam/FOC/Run/Data/Scripts/Evaluators/GetDistanceToNearestWithProperty.lua $
--
-- Original Author: Steve_Copeland
--
-- $Author: Brian_Hayes $
--
-- $Change: 637819 $
--
-- $DateTime: 2017/03/22 10:16:16 $
--
-- $Revision: #1 $
--
--/////////////////////////////////////////////////////////////////////////////////////////////////
require("PGBaseDefinitions")
function Clean_Up()
-- any temporary object pointers need to be set to nil in this function.
-- ie: Target = nil
nearest_obj = nil
end
-- Receives:
-- property_flag_name as defined in GameObjectPropertiesType.xml
-- affiliation_type is optional qualifier of "enemy" or "friendly"
function Evaluate(property_flag_name, affiliation_type)
if affiliation_type == "ENEMY" then
nearest_obj = Find_Nearest(Target, property_flag_name, PlayerObject, false)
elseif affiliation_type == "FRIENDLY" then
nearest_obj = Find_Nearest(Target, property_flag_name, PlayerObject, true)
else
nearest_obj = Find_Nearest(Target, property_flag_name)
end
if TestValid(nearest_obj) then
return Target.Get_Distance(nearest_obj)
else
return BIG_FLOAT
end
end

View File

@@ -0,0 +1,66 @@
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Evaluators/GetValue.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/Evaluators/GetValue.lua $
--
-- Original Author: Steve_Copeland
--
-- $Author: Brian_Hayes $
--
-- $Change: 25932 $
--
-- $DateTime: 2005/09/05 11:53:29 $
--
-- $Revision: #3 $
--
--/////////////////////////////////////////////////////////////////////////////////////////////////
require("PGBaseDefinitions")
function Clean_Up()
-- any temporary object pointers need to be set to nil in this function.
-- ie: Target = nil
lookup_string = nil
ret_value = nil
end
function Evaluate(requested_value)
lookup_string = PlayerSpecificName(PlayerObject, requested_value)
DebugMessage("%s -- Accessing global script registry value %s.", tostring(Script), lookup_string)
ret_value = GlobalValue.Get(PlayerSpecificName(PlayerObject, requested_value))
-- handle the case where no value is found
if not ret_value then
DebugMessage("%s -- script registry lookup string %s not found.", tostring(Script), lookup_string)
return 0.0
end
return ret_value
end

View File

@@ -0,0 +1,73 @@
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Evaluators/OpeningMovesRelevant.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/Evaluators/OpeningMovesRelevant.lua $
--
-- Original Author: Steve_Copeland
--
-- $Author: Brian_Hayes $
--
-- $Change: 25932 $
--
-- $DateTime: 2005/09/05 11:53:29 $
--
-- $Revision: #6 $
--
--/////////////////////////////////////////////////////////////////////////////////////////////////
require("PGBaseDefinitions")
function Clean_Up()
-- any temporary object pointers need to be set to nil in this function.
-- ie: Target = nil
end
function Evaluate()
-- DebugMessage("%s -- Evaluating.", tostring(Script))
-- This can't be done by an XML perception because it's a global perception that
-- needs to examine targets in a generic/portable way.
-- Using the Reachable_Target function not because we care about reachability, but
-- because it's a FindTarget variant that doesn't require a task force parameter (which we don't have).
-- If there is not an enemy presence on one of the opening moves planets
if not FindTarget.Reachable_Target(PlayerObject, "Opponent_Present_On_Rush_System", "Friendly | Enemy | Neutral", "Any_Threat", 1.0) then
-- DebugMessage("%s -- No enemy presence at a rush system.", tostring(Script))
-- And if there is at least one rush system which we don't own
if FindTarget.Reachable_Target(PlayerObject, "Unowned_Rush_System", "Enemy | Neutral", "Any_Threat", 1.0) then
DebugMessage("%s -- At least one rush system unowned by us.", tostring(Script))
GlobalValue.Set(PlayerSpecificName(PlayerObject, "OPENING_MOVES_UNDERWAY"), 1.0)
return 1.0
end
end
GlobalValue.Set(PlayerSpecificName(PlayerObject, "OPENING_MOVES_UNDERWAY"), 0.0)
return 0.0
end

View File

@@ -0,0 +1,65 @@
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Evaluators/PersistentNegativeIncome.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/Evaluators/PersistentNegativeIncome.lua $
--
-- Original Author: James Yarrow
--
-- $Author: Brian_Hayes $
--
-- $Change: 25932 $
--
-- $DateTime: 2005/09/05 11:53:29 $
--
-- $Revision: #3 $
--
--/////////////////////////////////////////////////////////////////////////////////////////////////
require("PGBaseDefinitions")
function Clean_Up()
-- any temporary object pointers need to be set to nil in this function.
-- ie: Target = nil
end
function Evaluate(time_limit)
current_credits = PlayerObject.Get_Credits()
if not last_credits or current_credits >= last_credits then
last_positive_income_time = GetCurrentTime()
end
last_credits = current_credits
if (GetCurrentTime() - last_positive_income_time) > time_limit then
return 1.0
else
return 0.0
end
end

View File

@@ -0,0 +1,67 @@
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Evaluators/ProgressiveRandom.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/Evaluators/ProgressiveRandom.lua $
--
-- Original Author: James Yarrow
--
-- $Author: Brian_Hayes $
--
-- $Change: 25932 $
--
-- $DateTime: 2005/09/05 11:53:29 $
--
-- $Revision: #3 $
--
--/////////////////////////////////////////////////////////////////////////////////////////////////
require("PGBaseDefinitions")
function Clean_Up()
-- any temporary object pointers need to be set to nil in this function.
-- ie: Target = nil
end
function Evaluate(low, high)
increment = 0.01
if not threshold then
threshold = 0.0
end
roll = GameRandom.Get_Float(low, high)
if roll < threshold then
threshold = 0.0
return 1.0
else
threshold = increment + threshold
return 0.0
end
end

View File

@@ -0,0 +1,63 @@
-- $Id: //depot/Projects/StarWars/Run/Data/Scripts/Evaluators/SimpleEvaluatorScript.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/Evaluators/SimpleEvaluatorScript.lua $
--
-- Original Author: James Yarrow
--
-- $Author: Brian_Hayes $
--
-- $Change: 25932 $
--
-- $DateTime: 2005/09/05 11:53:29 $
--
-- $Revision: #6 $
--
--/////////////////////////////////////////////////////////////////////////////////////////////////
require("PGBaseDefinitions")
function Clean_Up()
-- any temporary object pointers need to be set to nil in this function.
-- ie: Target = nil
Result = nil
Planet = nil
end
function Evaluate()
if PlayerObject.Is_Evil() then
Planet = FindPlanet("Byss")
else
Planet = FindPlanet("Alderaan")
end
Result = EvaluatePerception("Has_Level_1_Star_Base", PlayerObject, Planet)
return Result
end

View File

@@ -0,0 +1,66 @@
-- $Id: //depot/Projects/StarWars_Steam/FOC/Run/Data/Scripts/Evaluators/TargetHasProperty.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_Steam/FOC/Run/Data/Scripts/Evaluators/TargetHasProperty.lua $
--
-- Original Author: Steve_Copeland
--
-- $Author: Brian_Hayes $
--
-- $Change: 637819 $
--
-- $DateTime: 2017/03/22 10:16:16 $
--
-- $Revision: #1 $
--
--/////////////////////////////////////////////////////////////////////////////////////////////////
require("PGBaseDefinitions")
function Clean_Up()
-- any temporary object pointers need to be set to nil in this function.
-- ie: Target = nil
nearest_obj = nil
end
-- Receives:
-- property_flag_name as defined in GameObjectPropertiesType.xml
function Evaluate(property_flag_name)
object = Target.Get_Game_Object()
if TestValid(object) and object.Has_Property(property_flag_name) then
return 1.0
else
return 0.0
end
end