[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 gate.
<Var/Sector> = A sector or variable containing one.
<Var/Sector> = A sector or variable containing one.
Returns the next gate 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 gate, 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 (so the next gate would be east gate to the Unknown sector), the next gate from Montalaar to New Income returned by this command will be the south gate to Rolk's Legacy.
If start and target sector are the same, the command will return 'null'.
Example:
$gate=get next gate on route from Montalaar to New Income
write to player logbook $gate
return null
This will return the next gate on the route from Montalaar to New Income and writes it to the logbook.
Related Commands:
<RetVar/IF> get jumps from sector <Var/Sector> to sector <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 next gate on route from <Var/Sector> to <Var/Sector>