<RetVar/IF><RefObj> get free volume of ware <Var/Ware> in cargo bay

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> get free volume of ware <Var/Ware> in cargo bay

Post by mark_a_condren » Fri, 5. Nov 10, 13:51

[skip|else] if [not]|while [not]| <RetVar/IF> = <RefObj> get free volume of ware <Var/Ware> in cargo bay


[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.
<RefObj> = The 'Object' that the command is to be run on. This object can only be a 'Ship' or 'Station'.
<Var/Ware> = (WareType) The ware to be checked for available space.


This command will check the <RefObj> for how much of the selected <Var/Ware> can fit into the current free cargo space. The returned amount will be rounded down to the max amount of whole units that can fit into the cargo bay.

For Ships;
If a ship is being checked it will check the available free cargo space. It will also take into account ware transport size, if the ship can not transport that size ware it will return '0' (Zero) free space.

For Stations;
If a Station is being checked it will allow for the 'Defined' amount of ware that station can hold of that particular ware and report on only the space available for that ware.


Example:

$max.amount = $ship get free volume of ware Energy Cells in cargo bay

This will return the maximum amount of Energy Cells that will fit into the cargo bay of $ship. It will automatically allow for any space already taken up in the cargo bay by other items.


Command Location:
  • »» Trade Commands
    • »» for Ships and Stations
      <RetVar/IF><RefObj> get free volume of ware <Var/Ware> in cargo bay

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

[TiP][49] 290685

Post by X2-Illuminatus » Sat, 6. Nov 10, 17:16

[skip|else] if [not]|while [not]| <RetVar/IF> = <RefObj> get free volume of ware <Var/Ware> in cargo bay


[skip|else] if [not]|while [not]| = Die möglichen bedingten Anweisungen, die mit diesem Befehl genutzt werden können.
<RetVar/IF> = Variable, in der die geforderte Information gespeichert wird.
<RefObj> = Das 'Objekt', auf dem der Befehl ausgeführt werden soll. Dieses Objekt kann nur ein 'Schiff' oder eine 'Station' sein.
<Var/Ware> = (WareType) Die Ware, für die der verfügbare Laderaum überprüft werden soll.


Dieser Befehl überprüft, wie viel der Ware <Var/Ware> in den zurzeit freien Laderaum des <RefObj> passt. Die zurückgegebene Anzahl wird auf eine ganze Zahl abgerundet.

Für Schiffe:
Wenn ein Schiff überprüft wird, wird der freie Laderaum überprüft. Der Befehl wird zudem die Transportklasse der Ware berücksichtigen. Wenn das Schiff, die Transportklasse der Ware nicht laden kann, wird '0' (null) zurückgegeben.

Für Stationen:
Wenn eine Station überprüft wird, wird die 'definierte' Anzahl der Ware auf der Station berücksichtigt. Der Befehl wird nur den für die Ware festgelegten Frachtraum berücksichtigen.


Beispiel:

$max.amount = $ship get free volume of ware Energiezellen in cargo bay

Dies wird die maximale Anzahl von Energiezellen, die in den Laderaum von $ship passen, zurückgeben. Es wird automatisch den bereits von anderen Waren belegten Frachtraum berücksichtigen.


Den Befehl findet man unter:
  • »» Trade Commands
    • »» for Ships and Stations
      <RetVar/IF><RefObj> get free volume of ware <Var/Ware> in cargo bay

Locked

Return to “MSCI Reference”