<RetVar> = get station array: resource=<Var/Ware> include empty=<Var/Boolean>

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

<RetVar> = get station array: resource=<Var/Ware> include empty=<Var/Boolean>

Post by X2-Illuminatus » Thu, 28. Jul 11, 19:10

<RetVar> = get station array: resource=<Var/Ware> include empty=<Var/Boolean>


<RetVar> = A variable where the requested information is stored in an array.
<Var/Ware> = A ware that is used as resource.
<Var/Boolean> = A TRUE or FALSE value or its representing number 1 or 0.


This command returns an array of all stations that use the as <Var/Ware> selected ware as primary or secondary resource ( in case of factories ) or sell it ( in case of docks ). Setting the "include empty"-value to TRUE will return all stations using that ware, even if they haven't it currently in stock.


Example:

$station.arr= get station array: resource=Nividium include empty=[TRUE]
write to player logbook $station.arr
return null

This gets all stations using Nividium as resource in an array and writes it to the player logbook.


Related Commands:

<RetVar> = get station array: product=<Var/Ware> include empty=<Var/Boolean>
<RetVar> = get station array: of race <Var/Race> class/type=<Value>


Command Location:

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

[TiP][49] 304922

Post by X2-Illuminatus » Sat, 1. Oct 11, 15:41

<RetVar> = get station array: resource=<Var/Ware> include empty=<Var/Boolean>


<RetVar> = Eine Variable, in der die geforderte Information in Form eines Arrays gespeichert wird.
<Var/Ware> = Eine Ware, die als Ressource genutzt wird.
<Var/Boolean> = Ein TRUE (wahr) oder FALSE (falsch) Wert oder seine entsprechende Ziffer 1 oder 0.


Dieser Befehl gibt ein Array derjenigen Stationen zurück, die die als <Var/Ware> gewählte Ware als primäre Ressource nutzen ( Fabriken ) oder diese verkaufen ( Docks ). Setzt man den "include empty"-Wert auf TRUE (wahr) werden auch Stationen zurückgegeben, die diese Ware nutzen, aber sie zur Zeit nicht auf Lager haben.


Beispiel:

$station.arr= get station array: resource=Nividium include empty=[TRUE]
write to player logbook $station.arr
return null

Dies findet alle Stationen, die Nividium als Ressource nutzen, speichert sie in einem Array und schreibt dieses in das Spielerlogbuch.


Verwandte Befehle:

<RetVar> = get station array: product=<Var/Ware> include empty=<Var/Boolean>
<RetVar> = get station array: of race <Var/Race> class/type=<Value>


Zu finden unter:

Locked

Return to “MSCI Reference”