Skip to content
MMOMinion edited this page Oct 15, 2013 · 1 revision

MapObjects

  • The MapObject is a lua metatable and was made to hold all map related data. Right now it only holds the Fatelist but we are going to add more over time.

Accessing MapObjects

  • The MapObject FateList is accessed here as example:
local fl = MapObject:FateList()
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