Skip to content
aceRage edited this page Jun 17, 2014 · 4 revisions

Fatelist

  • The Fatelist can be accessed through the MapObject
  • It holds a list with all Fates and all Fate-related data and information.

Accessing the FateList

  • Example:
local fl = MapObject:GetFateList()
if ( fl ) then
   local i,fate = next(fl)
   while (i~=nil and fate ~=nil) do
      -- the 'd' command is a global command for printing out information into the console
      d("FateID: ".. tostring(fate.ID).. " FateName: "..tostring(fate.name))  
      local i,fate = next(fl,i)  
   end  
end

Fate Object Attributes

id
Returns an ID of the fate (number).
name
Returns fate name (string).
description
Returns fate description (string).
status
Returns the FATESTATUS of the fate (number).
completion
Returns how far the fate is completed already (number).
level
Returns the fate level (number).
maxlevel
Returns the fate maxlevel (number).
x
Returns fate x position (number).
y
Returns fate y position (number).
z
Returns fate z position (number).
radius
Returns the fate radius (number).
duration
Returns the remaining fate duration (number).
Clone this wiki locally