<RetVar> = <RefObj> get name

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

Moderators: Scripting / Modding Moderators, MSCI Moderators

Locked
Striker304
Posts: 890
Joined: Fri, 26. Mar 10, 22:15
x3tc

<RetVar> = <RefObj> get name

Post by Striker304 » Wed, 20. Oct 10, 10:41

[skip] if [not]|while [not]| <RetVar> = <RefObj> get name


[skip] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar> = The Variable where the requested name is put
<RefObj> = The object you want to get the name of

This command returns the name of <RefObj>.

Example:

$sector=get sector from universe index: x=1, y=5
$name = $sector -> get name

This will return in vanilla game the string 'Ore Belt'.


Command Location:

Striker304
Posts: 890
Joined: Fri, 26. Mar 10, 22:15
x3tc

[TiP][49]3426449

Post by Striker304 » Wed, 20. Oct 10, 10:48

[skip] if [not]|while [not]| <RetVar> = <RefObj> get name


[skip] if [not]|while [not]| = Eine mögliche Bedingung die mit diesem Befehl verwendet werden kann.
<RetVar> = Die Variable in der die angeforderte Information gespeichert wird
<RefObj> = Das Objekt, dessen Name herausgefunden werden soll

Dieser Befehl gibt den Namen des <RefObj> zurück.

Beispiel:

$sektor=get sector from universe index: x=1, y=5
$name = $sektor -> get name

Im unmodifizerten Spiel wird hier der String 'Erzgürtel' zurückgegeben.


Command Location:

Locked

Return to “MSCI Reference”