<RetVar/IF><RefObj> find station: resource <Var/Ware> with min. jumps: min.price=<Var

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

Moderators: Scripting / Modding Moderators, MSCI Moderators

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

<RetVar/IF><RefObj> find station: resource <Var/Ware> with min. jumps: min.price=<Var

Post by mark_a_condren » Sun, 2. Jan 11, 07:50

[skip|else] if [not]|while [not]|<RetVar/IF> = <RefObj> -> find station: resource <Var/Ware> with min jumps: min.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 higher.
<Var/Number> = The minimum amount of the ware that the station needs to be able to take.
<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 buy wares. The "min jumps" will prefer distance over price.

Finding a resource looks for stations buying a ware it requires - “min jumps” in this case means closest and “min price” means down to this price.
It will also check the station has the required space for 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: resource <Var/Ware> with min. jumps: min.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] 294350

Post by Alex Vanderbilt » Fri, 7. Jan 11, 15:24

[skip|else] if [not]|while [not]|<RetVar/IF> = <RefObj> -> find station: resource <Var/Ware> with min jumps: min.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 ausgeben soll. Wird diese Variable benutzt, gibt sie die Station zurück.
<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 teurer anbieten.
<Var/Number> = Mindestmenge freien Laderaums für eine Ware in einer Station.
<Var/Number> = Maximale Sprungreichweite zwischen dem Startsektor und der Station, die die Ware anbietet.
<Var/Sector> = Beginnt 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 vorher in einem Array zusammengefasst werden, welches hier genannt wird.


Dieses Kommando lässt ein <RefObj> nach Stationen suchen, die Waren kaufen. Der Bereich "min jumps" bevorzugt dabei geringe Entfernung vor dem Preis.

Dieses Kommando sucht nach Stationen, die Waren kaufen, die sie als Ressource benötigen. "min jumps" bezieht sich auf die kürzeste Entfernung und "min price" auf die Untergrenze für den Verkaufspreis.
Es wird mit amount =<Var/Number> außerdem überprüft, ob eine Station über genügend freien Laderaum für eine Ware verfügt.
Die maximale Sprungreichweite kann mit max.jumps =<Var/Number> festgelegt werden. Diese wird vom Startsektor =<Var/Sector> aus bestimmt.

Stationen können mit exclude array =<Value> auch von der Suche ausgenommen werden. Dazu müssen sie vorher in ein Array zusammengefasst werden und dieses als <Value> genannt sein.


Beispiel:
  • Zur Zeit ist noch kein Beispiel verfügbar.

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

Locked

Return to “MSCI Reference”