<RetVar> = <Var/Warpgate> get gate destination: return sector=<Var/number>

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: 24949
Joined: Sun, 2. Apr 06, 16:38
x4

<RetVar> = <Var/Warpgate> get gate destination: return sector=<Var/number>

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

<RetVar> = <Var/Warpgate> get gate destination: return sector=<Var/number>


<RetVar> = A variable where the requested information is stored.
<Var/Warpgate> = A warpgate or a variable containing one.
<Var/number> = A TRUE or FALSE value or its representing number 1 or 0.


Returns the destination sector of the as <Var/Warpgate> selected gate, if the "return sector"-value is set to TRUE, or the destination gate, if the "return sector"-value is set to FALSE.


Example:

$start.sector = Montalaar
$target.sector = New Income
$gate = get next gate on route from $start.sector to $target.sector
$destination = $gate get gate destination: return sector=[TRUE]
write to player logbook $destination
return null

This will get the next gate on the route from Montalaar to New Income and writes its destination sector ('Rolk's Legacy') to the logbook.


Command Location:

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

[TiP][49] 305133

Post by X2-Illuminatus » Sun, 2. Oct 11, 23:04

<RetVar> = <Var/Warpgate> get gate destination: return sector=<Var/number>


<RetVar> = Eine Variable, in der die geforderte Information gespeichert wird.
<Var/Warpgate> = Ein Sprungtor oder eine Variable, die eins enthält.
<Var/number> = Ein TRUE (wahr) oder FALSE (falsch) Wert oder seine entsprechende Ziffer 1 oder 0.


Gibt den Zielsektor des als <Var/Warpgate> ausgewählten Sprungtors zurück, wenn der "return sector"-Wert auf TRUE gesetzt ist, oder das Zieltor, wenn der "return sector"-Wert auf FALSE gesetzt ist.


Beispiel:

$start.sector = Montalaar
$target.sector = Neuer Verdienst
$gate = get next gate on route from $start.sector to $target.sector
$destination = $gate get gate destination: return sector=[TRUE]
write to player logbook $destination
return null

Dies ermittelt das nächste Sprungtor auf der Route von Montalaar nach Neuer Verdienst und schreibt seinen Zielsektor (Rolks Vermächtnis) ins Logbuch.


Zu finden unter:

Locked

Return to “MSCI Reference”