<RetVar/IF><RefObj> get destination

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

Moderators: Scripting / Modding Moderators, MSCI Moderators

Locked
mark_a_condren
Posts: 1468
Joined: Wed, 3. Aug 05, 05:05
x3tc

<RetVar/IF><RefObj> get destination

Post by mark_a_condren » Wed, 15. Dec 10, 07:18

[skip|else] if [not]|while [not]| <RetVar/IF> = <RefObj> -> get destination


[skip|else] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = If the command is to 'return' information it will store the information here.
<RefObj> = The ship you wish to get the destination of.



Returns the destination of a ship as set by the set destination instruction.

It has no function other than to change the text displayed on the ship's information screen or in a menu.


Example:

$ship.destination = $ship -> get destination

$ship.destination will be the ship's destination if one has been set by a 'set destination' command. The information in $ship.destination will be stored as a string.


Related Commands:

<RefObj> -> set destination to <Value>


Command Location:

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

[TiP][49] 293215

Post by X2-Illuminatus » Tue, 10. May 11, 18:17

[skip|else] if [not]|while [not]| <RetVar/IF> = <RefObj> -> get destination


[skip|else] if [not]|while [not]| = Die möglichen bedingten Anweisungen, die mit diesem Befehl genutzt werden können.
<RetVar/IF> = Falls der Befehl eine Information zurückgeben soll, wird sie hier gespeichert.
<RefObj> = Das Schiff, dessen Ziel du herausfinden möchtest.



Gibt das Ziel zurück, das mit dem set destination Befehl gesetzt wurde. Dieses Ziel ist nur kosmetischer Natur und hat nichts mit dem eigentlichen Ziel des Schiffes zu tun.


Beispiel:

$ship.destination = $ship -> get destination

Nach Ausführung dieses Beispiels wird $ship.destination das Ziel des Schiffes $ship enthalten, wenn eins mit dem 'set destination'-Befehl gesetzt wurde. Die Information in $ship.destination wird als Zeichenkette gespeichert.


Verwandte Befehle:

<RefObj> -> set destination to <Value>


Zu finden unter:

Locked

Return to “MSCI Reference”