[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 of all planets in the selected sector
<RefObj> = A variable containing a sector.
Returns an array containing all planets in the as <RefObj> selected sector. Note that small planets and moons are classified as planets, as well.
Example:
$sector=[PLAYERSHIP] -> get sector
$planet.arr=$sector -> get planet array
return null
This will save all planets in the current player sector in the array $planet.arr.
Command Location:
- »» Universe and Sector Commands
<RetVar/IF><RefObj> get planet array