<RetVar/IF><RefObj> find station sells: resource <Var/Ware> with best price: max.pric

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

Moderators: Scripting / Modding Moderators, MSCI Moderators

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

<RetVar/IF><RefObj> find station sells: resource <Var/Ware> with best price: max.pric

Post by mark_a_condren »

[skip|else] if [not]|while [not]|<RetVar/IF> = <RefObj> -> find station sells: resource <Var/Ware> with best price: max.price = <Var/Number>, amount = <Var/Number>, max.jumps = <Var/Number>, startsector = <Var/Sector>, trader = <Var/String>, exclude array = <Value>


[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. If a variable is used, this command will return the station here.
<RefObj> = The object you wish to run the command on.
<Var/Ware> = The ware you are looking for.
<Var/Number> = Only station the have the ware for this price or lower.
<Var/Number> = The minimum amount of the ware that the station needs to have.
<Var/Number> = The maximum jump between the 'start' sector and the sector the station is in.
<Var/Sector> = Start the search from this sector.
<Var/String> = The trader involved (further investigation required for this variable)
<Value> = Any stations you don't want to include should be put into an array and put here.


This instruction is used to get a <RefObj> to find stations that sell wares. The "best price" will prefer price over distance.

Finding a resource looks for stations selling a ware it requires as a resource – “best price” in this case means lowest and “max price” means up to this price.
It will also check the station has the required amount of the ware, with amount =<Var/Number>.
The distance to search can also be set with, max.jumps =<Var/Number>, this will be determined from the, startsector =<Var/Sector>.

Stations can be excluded from the search using the, exclude array =<Value>. Stations need to be entered into an array, and the array set as this <Value>.


Example:
  • No example available at this time.

Command Location:
  • »» Trade Commands
    <RetVar/IF><RefObj> find station sells: resource <Var/Ware> with best price: max.price=<Var/Number>, amount=<Var/Number>, max.jumps=<Var/Number>, startsector=<Var/Sector>, trader=<Var/String>, exclude array=<Value>
Alex Vanderbilt
Winner X3 Sektorquest
Posts: 2127
Joined: Thu, 4. May 06, 12:07
x3tc

[TiP][49] 294353

Post by Alex Vanderbilt »

[skip|else] if [not]|while [not]|<RetVar/IF> = <RefObj> -> find station sells: resource <Var/Ware> with best price: max.price = <Var/Number>, amount = <Var/Number>, max.jumps = <Var/Number>, startsector = <Var/Sector>, trader = <Var/String>, exclude array = <Value>


[skip|else] if [not]|while [not]| = Mögliche Bedingung, die mit diesem Kommando verwendet werden kann.
<RetVar/IF> =
Verwendet, sofern das Kommando Informationen zurückgeben soll. Wenn verwendet, wird hier die Station zurückgegeben.
<RefObj> = Das Objekt, auf dem das Kommando ausgeführt werden soll.
<Var/Ware> = Die gesuchte Ware.
<Var/Number> = Stationen, die die Ware zum genannten Preis oder niedriger anbieten.
<Var/Number> = Der minimal vorausgesetzte Lagerbestand in der Station.
<Var/Number> = Die maximale Sprungreichweite zwischen dem Startsektor und dem Sektor, in dem sich die Station befindet.
<Var/Sector> = Beginnt die Suche von diesem Sektor.
<Var/String> = Beteiligter Händler (Weitere Untersuchung dieser Variable erforderlich)
<Value> = Stationen, die von der Suche ausgenommen sein sollen. Sie müssen in einem Array gespeichert sein und dieses hier genannt werden.


Dieses Kommando dient dazu, ein <RefObj> nach einer Station suchen zu lassen, die Waren verkauft. Der Bereich "best price" bevorzugt dabei den günstigsten Preis vor der Entfernung.

Dieses Kommando sucht nach Stationen, die Waren verkaufen, die es als Ressource benötigt. "best price" bezieht sich hier auf den günstigsten Einkaufspreis und "max price" legt die Obergrenze für den Einkaufspreis fest.
Es wird mit amount =<Var/Number> außerdem überprüft, ob eine Station über einen erforderlichen Mindestlagerbestand verfügt.
Die maximale Sprungreichweite wird mit max.jumps =<Var/Number> festgelegt. startsector =<Var/Sector> definiert dabei den Startsektor.

Stationen können mit array =<Value> auch von der Suche ausgenommen werden. Dazu müssen diese in ein Array zusammengefasst werden. Dieses muss dann als <Value> genannt werden.


Beispiel:

  • Zur Zeit ist kein Beispiel verfügbar.

Zu finden unter:

  • »» Trade Commands
    <RetVar/IF><RefObj> find station sells: resource <Var/Ware> with best price: max.price=<Var/Number>, amount=<Var/Number>, max.jumps=<Var/Number>, startsector=<Var/Sector>, trader=<Var/String>, exclude array=<Value>

Return to “MSCI Reference”