<RetVar/IF><RefObj> get product ware

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

<RetVar/IF><RefObj> get product ware

Post by X2-Illuminatus » Sat, 2. Apr 11, 13:20

[skip|else] if [not]|while [not]|<RetVar/IF><RefObj> get product ware


[skip|else] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = Use a variable, if the command should return information. If a variable is used, it will contain the product ware of the <RefObj>.
<RefObj> = The factory you want to know its product ware.


This command returns the ware that is sold at the as <RefObj> selected factory as product.
However, this only returns one product of the factory - the one that is listed at first position in the station details. So if a factory produces more than one ware, it is better to use the command <RetVar/IF><RefObj> get products.


Example:

$factory = get player tracking aim
$ware = $factory -> get product ware
write to player logbook: printf: fmt='%s produces %s.', $factory, $ware, null, null, null
return null

This will write the product of the as target by the player selected factory into the logbook.


Related Commands:

<RetVar/IF><RefObj> get products


Command Location:

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

[TiP][49] 299228

Post by X2-Illuminatus » Mon, 2. May 11, 20:16

[skip|else] if [not]|while [not]|<RetVar/IF><RefObj> get product ware


[skip|else] if [not]|while [not]| = Die möglichen bedingten Anweisungen, die mit diesem Befehl genutzt werden können.
<RetVar/IF> = Nutze eine Variable, wenn der Befehl eine Information zurückgeben soll. Wenn eine Variable genutzt wird, wird sie das Produkt vom <RefObj> enthalten.
<RefObj> = Die Fabrik, deren Produkt du wissen möchtest.


Dieser Befehl gibt die Ware zurück, die von der als <RefObj> ausgewählten Fabrik als Produkt verkauft wird.
Jedoch gibt dieser Befehl immer nur ein Produkt zurück - das welches an erster Stelle in den Stationdetails gelistet ist. Für den Fall das eine Farbik mehr als eine Ware produziert, empfiehlt es sich den Befehl <RetVar/IF><RefObj> get products zu nutzen.


Beispiel:

$factory = get player tracking aim
$ware = $factory -> get product ware
write to player logbook: printf: fmt='%s produziert %s.', $factory, $ware, null, null, null
return null

Dies schreibt das Produkt der vom Spieler als Ziel erfassten Fabrik ins Spielerlogbuch.


Verwandte Befehle:

<RetVar/IF><RefObj> get products


Zu finden unter:

Locked

Return to “MSCI Reference”