Functions Documentation
View Function Edit Function
Name sysGetData
Syntax (sysGetData [nodeID] attrib) -> data
Argument List [nodeID]: The optional name of the system node. If not given it uses the current system.
attrib: The attribute you want to retrieve the data of.
Returns data: Whatever is stored in the attribute in the given node or Nil if no system node exists by that name or the attribute has no data.
Category data, system
Description Returns the named data for the given system.
(sysGetData "power")

Returns the currents systems data named by power. If there is no data (like in a unmodded game) by that name returns Nil.
Comment Useful for getting/storing information about a system such as how many times the player has visited the system.