<RetVar> = get max price of ware <Var/Ware> as secondary resource

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> = get max price of ware <Var/Ware> as secondary resource

Post by mark_a_condren » Wed, 8. Dec 10, 13:47

<RetVar> = get max price of ware <Var/Ware> as secondary resource


<RetVar> = The command return will be stored in this variable.
<Var/Ware> = The ware that you want the maximum price of as a stations secondary resource.


Returns the maximum price for <Var/Ware>. When a ware is a station's secondary resource, it has a different Min and Max price. This command was created to cater for this situation.


Example:

$max.sec.price = get max price of ware Crystals as secondary resource

This will return the Maximum price of Crystals as a stations secondary resource.


Command Location:

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

[TiP][49] 292823

Post by X2-Illuminatus » Thu, 16. Dec 10, 23:41

<RetVar> = get max price of ware <Var/Ware> as secondary resource


<RetVar> = Der Rückgabewert des Befehls wird in dieser Variable gespeichert.
<Var/Ware> = Die Ware, deren Höchstpreis als sekundäre Ressource einer Station du ermitteln möchtest.


Gibt den Höchstpreis von <Var/Ware> zurück. Wenn eine Ware eine sekundäre Ressource ist, hat sie unterschiedliche Höchst- und Mindestpreise als als primäre Ressource. Dieser Befehl wurde geschaffen, um auf diesen Umstand reagieren zu können.


Beispiel:

$max.sec.price = get max price of ware Kristalle as secondary resource

Dies gibt den Höchstpreis für Kristalle als sekundäre Ressource zurück.


Zu finden unter:

Return to “MSCI Reference”