<RetVar> = A variable where the requested information is stored.
<RefObj> = A variable containing a sector.
Returns the x-coordinate of the sector in the universe map.
The sectors on the universe map are arranged in a coordinate system. The point of origin is Kingdom End with the coordinates x = 0, y = 0, short form: (0|0). Starting from Kingdom End the x-coordinates go rightwards and the y-coordinates downwards. So each sector has own coordinates.
Example:
$x = $sector -> get universe x index
$y = $sector -> get universe y index
$name = get sector from universe index: x=$x, y=$y
write to player logbook $name
return null
Assuming the variable $sector contains a sector, this will find out its x- and y-coordinate and based on that the name of the sector. Afterwards the name will be written to the logbook.
Related Commands:
<RetVar/IF> get sector from universe index: x=<Var/Number>, y=<Var/Number>
<RetVar> = <RefObj> get universe y index
Command Location:
- »» Universe and Sector Commands
<RetVar> = <RefObj> get universe x index