[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 a sector.
<Var/Sector> = A sector or variable containing one.
<Var/Sector> = A sector or variable containing one.
Returns the next sector on the route from the as <Var/Sector> selected sector to another as <Var/Sector> selected sector.
Note that the route, that is used by the command to determine the next sector, is based on the shortest distance in meters and not in jumps. For example while the sectors 'Montalaar' and 'New Income' are only two jumps away from each other, the next sector from Montalaar to New Income returned by this command will be Rolk's Legacy.
If start and target sector are the same, the command will return 'null'.
Example:
$sector=get next sector on route from sector Montalaar to sector New Income
write to player logbook $sector
return null
This would get the next sector on the route from Montalaar to New Income (which is Rolk's Legacy) and writes it to the logbook.
Related Commands:
<RetVar/IF> get next gate on route from <Var/Sector> to <Var/Sector>
<RetVar/IF> get jumps from sector <Var/Sector> to sector <Var/Sector>
Command Location:
- »» Universe and Sector Commands
<RetVar/IF> get next sector on route from sector <Var/Sector> to sector <Var/Sector>