EnglishGermanFrenchRussianPolishItalianSpanish
Log inRegister
 
<RetVar> = <RefObj> get south warp gate
Post new topic This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic
Author Message
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)

MEDALMEDALMEDAL

Joined: 02 Apr 2006
Posts: 20260 on topic

Thank you for registering your game
PostPosted: Tue, 2. Aug 11, 20:39    Post subject: <RetVar> = <RefObj> get south warp gate Reply with quote Print

<RetVar> = <RefObj> get south warp gate


<RetVar> = A variable where the requested information is stored.
<RefObj> = A variable containing a sector.


Returns the south gate of the as <RefObj> selected sector.

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 '0' as south gate - using the [url=]create gate[/color]-command.
However, this command will always return the gate with the id = 1. If a sector has no gate with this id, the command will return 'null'.

Example:

$sector = [PLAYERSHIP] -> get sector
$gate = $sector -> get south warp gate
$destination = $gate get gate destination: return sector=[TRUE]
write to player logbook $destination
return null

Assuming the current player sector contains a south gate ( with id=1 ), this writes its destination to the logbook.


Related Commands:

<RetVar> = <RefObj> get north warp gate
<RetVar> = <RefObj> get east warp gate
<RetVar> = <RefObj> get west warp gate


Command Location:


Back to top
View user's profile Send private message Visit poster's website
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)

MEDALMEDALMEDAL

Joined: 02 Apr 2006
Posts: 20260 on topic

Thank you for registering your game
PostPosted: Mon, 3. Oct 11, 21:50    Post subject: [TiP][49] 305208 Reply with quote Print

<RetVar> = <RefObj> get south warp gate


<RetVar> = Eine Variable, in der die geforderte Information gespeichert wird.
<RefObj> = Eine Variable, die einen Sektor enthält.


Gibt das Südtor des als <RefObj> ausgewählten Sektors 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 [url=]create gate[/color]-Befehls zu erstellen - die möglichen Ids gehen zwar immernoch von 0-5, aber man könnte bspw. 0 als ID für ein Südtor nehmen.
Jedoch wird dieser Befehl immer das Tor mit der ID = 1 zurückgeben. Wenn ein Sektor kein Tor mit dieser ID hat, so wird der Rückgabewert "null" sein.


Beispiel:

$sector = [PLAYERSHIP] -> get sector
$gate = $sector -> get south warp gate
$destination = $gate get gate destination: return sector=[TRUE]
write to player logbook $destination
return null

Vorausgesetzt der aktuelle Spielersektor enthält ein Südtor ( id=1 ), wird dieses Beispiel das Ziel dieses Südtores ins Spielerlogbuch schreiben.


Verwandte Befehle:

<RetVar> = <RefObj> get north warp gate
<RetVar> = <RefObj> get east warp gate
<RetVar> = <RefObj> get west warp gate


Zu finden unter:


Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic This topic is locked: you cannot edit posts or make replies.
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Wed, 20. Sep 17, 16:33

All times are GMT + 2 Hours


Board Security

Copyright © EGOSOFT 1989-2017
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.28423 seconds, sql queries = 16