Difference between revisions of "ConflictSystem"

From Legends of Aria Admin and Modding Wiki
Jump to: navigation, search
(GetConflictTable)
(GetConflictTable)
Line 5: Line 5:
 
=== GetConflictTable ===
 
=== GetConflictTable ===
 
''
 
''
--- Get the conflict table for a mobile
+
  Get the conflict table for a mobile
-- @param mobile(mobileObj)
+
  @param mobile(mobileObj)
-- @return luaTable containing all conflicts for this mobile
+
  @return luaTable containing all conflicts for this mobile
function GetConflictTable(mobile)
+
 
 +
  function GetConflictTable(mobile)
 
     if ( mobile == nil or not mobile ) then
 
     if ( mobile == nil or not mobile ) then
 
         LuaDebugCallStack("[Conflict] Invalid mobile provided.")
 
         LuaDebugCallStack("[Conflict] Invalid mobile provided.")
Line 14: Line 15:
 
     end
 
     end
 
     return mobile:GetObjVar("Conflicts") or {}
 
     return mobile:GetObjVar("Conflicts") or {}
end
+
  end
 
''
 
''
  

Revision as of 07:45, 27 January 2018

welcome this will discuss the contents of the globals\helpers\conflict.lua

ConflictRelations Table

Conflict Functions

GetConflictTable

 Get the conflict table for a mobile
 @param mobile(mobileObj)
 @return luaTable containing all conflicts for this mobile
 function GetConflictTable(mobile)
   if ( mobile == nil or not mobile ) then
       LuaDebugCallStack("[Conflict] Invalid mobile provided.")
       return {}
   end
   return mobile:GetObjVar("Conflicts") or {}
 end

ClearConflictTable

SetConflictTable

FreezeConflictTable

GetConflictRelation

ValidConflictRelationTable

UpdateConflictRelation

ConflictEquals

AdvanceConflictRelation

ForeachAggressor

IsAggressor

IsMobTaggedBy

TagMob

InheritAggressivePlayerConflicts

GetNearbyTaggedMobiles

InitializeClientConflicts