[skip|else] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = Use a variable, if the command should return information. If a variable is used, it will contain an array filled with the sectors within the specified jump range.
<RefObj> = A variable containing a sector.
<Var/Number> = A positive number or a variable containing it.
<Var/Number> = A TRUE or FALSE value or its representing number 1 or 0.
This command returns an array containg the sectors that can be reached by the as <Var/Number> selected (or less) number of jumps starting from the as <RefObj> selected sector. If the "Only known sectors"-value is set to TRUE, only sectors that are already visible on the universe map will be returned.
Example:
$sector= get sector from universe index: x=1, y=3
$sector.arr=$sector -> find all sectors within 1 jumps: Only known sectors=[FALSE]
write to player logbook $sector.arr
return null
This will save all sectors that are no or one jump away from Argon Prime in the array $sector.arr and writes it to the logbook. In the unmodifed game the output will be: ARRAY ( Home of Light, Ringo Moon, Argon Prime, The Wall, Herron's Nebula )
Command Location:
- »» Universe and Sector Commands
<RetVar/IF><RefObj> find all sectors within <Var/Number> jumps: Only known sectors=<Var/Number>