Difference between revisions of "SystemNames"

From Vendetta Lua
Jump to: navigation, search
m (Added to category.)
Line 8: Line 8:
 
print(SystemNames["Pelatus"]) -- Prints "nil" (note the capital P)
 
print(SystemNames["Pelatus"]) -- Prints "nil" (note the capital P)
 
</source>
 
</source>
 +
 +
[[Category:Tables]]

Revision as of 22:47, 16 June 2009

Description:
Table to translate systemid's into system names and back. Note that the "ID to name" translation returns names with capital letters, but the "name to ID" translation only works with all lower-case names.

Example

print(SystemNames[16]) -- Prints the name of the system with ID 16, "Pelatus"
print(SystemNames["pelatus"]) -- Prints 16
print(SystemNames["Pelatus"]) -- Prints "nil" (note the capital P)