<RetVar/IF> get next sector on route from sector <Var/Sector> to sector <Var/Sector>

This forum serves as MSCI Reference at EGOSOFT. It's Read-Only for non MSCI Group members.

Moderators: Scripting / Modding Moderators, MSCI Moderators

User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 24969
Joined: Sun, 2. Apr 06, 16:38
x4

<RetVar/IF> get next sector on route from sector <Var/Sector> to sector <Var/Sector>

Post by X2-Illuminatus » Mon, 1. Aug 11, 12:59

[skip|else] if [not]|while [not]| <RetVar/IF> get next sector on route from sector <Var/Sector> to sector <Var/Sector>


[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:

User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 24969
Joined: Sun, 2. Apr 06, 16:38
x4

[TiP][49] 305123

Post by X2-Illuminatus » Sun, 2. Oct 11, 22:41

[skip|else] if [not]|while [not]| <RetVar/IF> get next sector on route from sector <Var/Sector> to sector <Var/Sector>


[skip|else] if [not]|while [not]| = Die möglichen bedingten Anweisungen, die mit diesem Befehl genutzt werden können.
<RetVar/IF> = Nutze eine Variable, wenn der Befehl eine Information zurückgeben soll. Wenn eine Variable genutzt wird, wird sie einen Sektor enthalten.
<Var/Sector> = Ein Sektor oder eine Variable, die einen enthält.
<Var/Sector> = Ein Sektor oder eine Variable, die einen enthält.


Gibt den nächsten Sektor auf der Route von dem als <Var/Sector> ausgewählten Sektor zu einem anderen als <Var/Sector> ausgewählten Sektor zurück.
Beachte, dass die Route, die von dem Befehl benutzt wird, um den nächsten Sektor zu ermitteln, auf der geringsten Entfernung in Metern und nicht in Sprüngen basiert. Zum Beispiel befinden sich die Sektoren "Montalaar" und "Neuer Verdienst" nur zwei Sprünge voneinander entfernt. Dennoch wird dieser Befehl Rolks Vermächtnis als nächsten Sektor zurückgeben.
Wenn Start- und Zielsektor gleich sind, wird 'null' zurückgegeben.


Beispiel:

$sector=get next sector on route from sector Montalaar to sector Neuer Verdienst
write to player logbook $sector
return null

Dies würde den nächsten Sektor auf der Route von Montalaar nach Neuer Verdienst zurückgeben (was Rolks Vermächtnis ist) und ihn ins Logbuch schreiben.


Verwandte Befehle:

<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>


Zu finden unter:

Return to “MSCI Reference”