<RetVar> = <Var/Warpgate> get gate id

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 id

Post by X2-Illuminatus » Tue, 2. Aug 11, 21:37

<RetVar> = <Var/Warpgate> get gate id


<RetVar> = A variable where the requested information is stored.
<Var/Warpgate> = A warpgate or a variable containing one.


Returns the gate id of the as <Var/Warpgate> selected warp gate.

Each sector in the X-Universe can have a maximum of 6 gates. Each gate in a sector has a specific id, whereby the ids 0-3 are usually reserved for north (0), south (1), west (2) and east (3) gate. The ids 4 and 5 are free to use for additional gates, for example in the HUB or the Aldrin sector (after the Aldrin Expansion plot). Note, that it's also possible to create gates with different ids - possible ids are still 0-5, but for example you could use '1' as north gate - using the create gate[/color]-command.


Example:

$gate = get next gate on route from Argon Prime to Herron's Nebula
$id = $gate get gate id
write to player logbook $id
return null

This writes the id of the next gate on the route from Argon Prime to Herron's Nebula to the logbook.


Related Commands:

[url=http://forum.egosoft.com/viewtopic.php?t=305211]<RetVar/IF><RefObj> get warp gate: id=<Var/Number>



Command Location:

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

[TiP][49] 305213

Post by X2-Illuminatus » Mon, 3. Oct 11, 22:14

<RetVar> = <Var/Warpgate> get gate id


<RetVar> = Eine Variable, in der die geforderte Information gespeichert wird.
<Var/Warpgate> = Ein Sprungtor oder eine Variable, die eins enthält.


Gibt die Tor ID des als <Var/Warpgate> ausgewählten Sprungtores zurück.

In jedem Sektor im X-Universum können maximal 6 Sprungtore stehen. Jedes Tor hat eine eigene Identifikationsnummer (kurz ID). Die IDs 0-3 sind dabei normalerweise für Nord (0), Süd (1), West (2) und Ost (3) Tor reserviert. Die IDs 4 und 5 können für zusätzliche Tore genutzt werden, wie zum Beispiel im HUB-Sektor oder in Aldrin (nach dem Aldrin Plot). Beachte, dass es möglich ist, Tore mit unterschiedlichen IDs mithilfe des create gate[/color]-Befehls zu erstellen - die möglichen Ids gehen zwar immernoch von 0-5, aber man könnte bspw. 1 als ID für ein Nordtor nehmen.


Beispiel:

$gate = get next gate on route from Argon Prime to Herron's Nebula
$id = $gate get gate id
write to player logbook $id
return null

Dies schreibt die ID des nächsten Tores auf der Route von Argon Prime nach Herrons Nebel ins Logbuch.


Verwandte Befehle:

[url=http://forum.egosoft.com/viewtopic.php?t=305211]<RetVar/IF><RefObj> get warp gate: id=<Var/Number>



Zu finden unter:

Locked

Return to “MSCI Reference”