-
Notifications
You must be signed in to change notification settings - Fork 52
Fatelist
aceRage edited this page Jun 17, 2014
·
4 revisions
- The Fatelist can be accessed through the MapObject
- It holds a list with all Fates and all Fate-related data and information.
- 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
- 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).