<RetVar/IF> get jumps 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

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

<RetVar/IF> get jumps from sector <Var/Sector> to sector <Var/Sector>

Post by X2-Illuminatus » Mon, 1. Aug 11, 15:07

[skip|else] if [not]|while [not]| <RetVar/IF> get jumps 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 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:

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

[TiP][49] 305130

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

[skip|else] if [not]|while [not]| <RetVar/IF> get jumps 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 die Anzahl an Sprüngen enthalten.
<Var/Sector> = Ein Sektor oder eine Variable, die einen enthält.
<Var/Sector> = Ein Sektor oder eine Variable, die einen enthält.


Gibt die Anzahl an Sprüngen 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 die nötige Anzahl an Sprüngen zu ermitteln, auf der geringsten Entfernung in Metern und nicht in Sprüngen basiert. Obwohl "Montalaar" und "Neuer Verdienst" nur 2 Sprünge voneinander entfernt sind, wird der Rückgabewert für diese beiden Sektoren 4 sein.
Wenn Start- und Zielsektor gleich sind, wird 0 zurückgegeben.


Beispiel:

$jumps = get jumps from sector Montalaar to sector Neuer Verdienst
write to player logbook $jumps
return null

Dies ermittelt die Anzahl an Sprüngen von Montalaar nach Neuer Verdienst (4 wie oben beschrieben) and schreibt sie ins Logbuch.


Verwandte Befehle:

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


Zu finden unter:

Locked

Return to “MSCI Reference”