[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 the number of jumps.
<Var/Sector> = A sector or variable containing one.
<Var/Sector> = A sector or variable containing one.
Returns the number of jumps 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 jump distance, 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 command will return a number of '4' jumps.
If start and target sector are the same, the command will return '0'.
Example:
$jumps = get jumps from sector Montalaar to sector New Income
write to player logbook $jumps
return null
This will get the number of jumps from Montalaar to New Income ('4' as described above) and writes it to the logbook.
Related Commands:
<RetVar/IF> get next gate on route from <Var/Sector> to <Var/Sector>
<RetVar/IF> get next sector on route from sector <Var/Sector> to sector <Var/Sector>
Command Location:
- »» Universe and Sector Commands
<RetVar/IF> get jumps from sector <Var/Sector> to sector <Var/Sector>