<RetVar/IF><RefObj> get products

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

Moderators: Scripting / Modding Moderators, MSCI Moderators

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

<RetVar/IF><RefObj> get products

Post by X2-Illuminatus » Fri, 1. Apr 11, 16:49

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


[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, the command will return the prodcts of the <RefObj> as an array.
<RefObj> = The station you want to know its products of.


This will return the products of the as <RefObj> selected stations. Products are all wares that are sold by the station.


Example:

$station = get player tracking aim
$ware.arr = $station -> get products
write to player logbook $ware.arr
return null

This will get the products of the current player target and writes them as an array to the player logbook.


Related Commands:

<RetVar/IF><RefObj> uses ware <Var/Ware> as product


Command Location:

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

[TiP][49] 299177

Post by X2-Illuminatus » Mon, 2. May 11, 19:04

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


[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 die Produkte des <RefObj> als Array enthalten.
<RefObj> = Die Station, deren Produkte du wissen möchtest.


Dies gibt die Produkte der als <RefObj> ausgewählten Station zurück. Produkte sind alle Waren, die von der Station verkauft werden.


Beispiel:

$station = get player tracking aim
$ware.arr = $station -> get products
write to player logbook $ware.arr
return null

Dies gibt die Produkte des atuellen Spielerziels zurück und schreibt sie als Array ins Spielerlogbuch.


Verwandte Befehle:

<RetVar/IF><RefObj> uses ware <Var/Ware> as product


Zu finden unter:

Return to “MSCI Reference”