<RetVar/IF> = is inventory: ware=<Var/Ware>

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> = is inventory: ware=<Var/Ware>

Post by mark_a_condren » Mon, 3. Jan 11, 14:58

[skip|else] if [not]|while [not]| <RetVar/IF> = is inventory: ware= <Var/Ware>


[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' a variable. If a variable is used, this command will return TRUE or FALSE.
<Var/Ware> = The ware you wish to check.


Some wares are inventory and some are not. This command will let you check if it is of the type 'inventory' on the player ship or not.

Inventory can only be on the player ship.


Example:

$ware = Unfocussed Jumpdrive
IF = is inventory: ware=$ware
| install 1 units of ware: $ware
else
| add 1 units of ware: $ware
end

With this you can install the ware if it is an inventory, or add it to the cargo bay if it is not.


Additional Information:
  • Some of the Inventory wares available:
    • Salvage Insurance
    • Data Disc
    • Unfocussed Jumpdrive
Inventory wares all belong to maintype 16.


Command Location:

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

[TiP][49] 294432

Post by X2-Illuminatus » Wed, 5. Jan 11, 17:39

[skip|else] if [not]|while [not]| <RetVar/IF> = is inventory: ware= <Var/Ware>


[skip|else] if [not]|while [not]| = Die möglichen bedingten Anweisungen, die mit diesem Befehl genutzt werden können.
<RetVar/IF> = Wird benötigt, wenn der Befehl eine Information zurückgeben soll. Wenn eine Variable genutzt wird, wird dieser Befehl im Erfolgsfall TRUE (wahr), im Fehlerfall FALSE (falsch) zurückgeben.
<Var/Ware> = Die Ware, die überprüft werden soll.


Einige Waren gehörem zum Inventar, andere nicht. Dieser Befehl überprüft, ob eine Ware zum Inventar gehört oder nicht.

Waren, die zum Inventar gehören, können sich nur auf dem Spielerschiff befinden.


Beispiel:

$ware = Unfokussierter Sprungantrieb
IF = is inventory: ware=$ware
| install 1 units of ware: $ware
else
| add 1 units of ware: $ware
end

Hiermit kannst du die Ware installieren, wenn sie zum Inventar gehört oder dem Frachtraum hinzufügen wenn nicht.


Zusätzliche Information:
  • Einige der der verfügbaren Waren, die zum Inventar gehören, sind:
    • Bergungsversicherung
    • Datenspeicher
    • Unfokussierter Sprungantrieb
Alle Inventar-Waren gehören zum Maintype 16.


Zu finden unter:

Locked

Return to “MSCI Reference”