SystemNames: Difference between revisions
New page: === SystemNames === '''Description:'''<br> Table to translate systemid's into system names and back. Note that the "ID to name" translation returns names with capital letters, but the "nam... |
No edit summary |
||
(8 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
'''Description:'''<br> | '''Description:'''<br> | ||
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. | 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. | ||
<br>Numerical Order: (1 to 30) | |||
<source lang="text"> | |||
[1] Sol II | |||
[2] Betheshee | |||
[3] Geira Rutilus | |||
[4] Deneb | |||
[5] Eo | |||
[6] Cantus | |||
[7] Metana | |||
[8] Setalli Shinas | |||
[9] Itan | |||
[10] Pherona | |||
[11] Artana Aquilus | |||
[12] Divinia | |||
[13] Jallik | |||
[14] Edras | |||
[15] Verasi | |||
[16] Pelatus | |||
[17] Bractus | |||
[18] Nyrius | |||
[19] Dau | |||
[20] Sedina | |||
[21] Azek | |||
[22] Odia | |||
[23] Latos | |||
[24] Arta Caelestis | |||
[25] Ukari | |||
[26] Helios | |||
[27] Initros | |||
[28] Pyronis | |||
[29] Rhamus | |||
[30] Dantia | |||
</source> | |||
'''Example''' | '''Example''' | ||
<source lang="lua"> | <source lang="lua"> | ||
print(SystemNames[16]) -- Prints the name of the system with ID | print(SystemNames[16]) -- Prints the name of the system with ID 16, "Pelatus" | ||
print(SystemNames["pelatus"]) -- Prints 16 | print(SystemNames["pelatus"]) -- Prints 16 | ||
print(SystemNames["Pelatus"]) -- Prints "nil" (note the capital P) | print(SystemNames["Pelatus"]) -- Prints "nil" (note the capital P) | ||
</source> | </source> | ||
[[Category:Tables]] |
Latest revision as of 00:51, 10 February 2014
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.
Numerical Order: (1 to 30)
<source lang="text">
[1] Sol II
[2] Betheshee
[3] Geira Rutilus
[4] Deneb
[5] Eo
[6] Cantus
[7] Metana
[8] Setalli Shinas
[9] Itan
[10] Pherona
[11] Artana Aquilus
[12] Divinia
[13] Jallik
[14] Edras
[15] Verasi
[16] Pelatus
[17] Bractus
[18] Nyrius
[19] Dau
[20] Sedina
[21] Azek
[22] Odia
[23] Latos
[24] Arta Caelestis
[25] Ukari
[26] Helios
[27] Initros
[28] Pyronis
[29] Rhamus
[30] Dantia
</source>
Example <source lang="lua"> 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) </source>