Functions Documentation
View Function Edit Function
Name sysSetData
Syntax (sysSetData [string] string expression)
Argument List string: The optional name of the system node. If not there uses the current system.
string: The name of the data.
expression: The data you want to store.
Returns condition: True if successful, Nil otherwise.
Category system, data
Description Sets the named data in the given system to the expression.
(sysSetData "power" 9001)

Stores the number 9001 in the power data for the current system.
Comment Useful for getting/storing information about a system such as how many times the player has visited the system.