API SectorIDFromLocationStr

From Vendetta Lua
Revision as of 20:24, 4 June 2009 by Kihjin (talk | contribs) (provided example for one word name)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

SectorIDFromLocationStr

Definition: SectorIDFromLocationStr(string location) -> int sectorid
Description:
Convert a location string into a sectorid. For two word system names only first word must be specified, otherwise it doesn't work (e.g. Geira rather than Geira Rutilus).
Arguments:
location location string. output of API_Index#ShortLocationStr
Returns:
sectorid sectorid
Example:
<source lang="lua"> SectorIDFromLocationStr("Sedina H-9") -> 5000</source>