<RetVar/IF><RefObj> get true amount 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

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

<RetVar/IF><RefObj> get true amount of ware <Var/Ware> in cargo bay

Post by mark_a_condren » Wed, 10. Nov 10, 15:38

[skip|else] if [not]|while [not]| <RetVar/IF> = <RefObj> get true amount 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> = RetVar is if you want to save the quantity to a variable. IF will check to see if the ware exists in the cargobay and return True / False.
<RefObj> = The 'Object' (Ship/Station) that the command is to be run on.
<Var/Ware> = What you want to know how much there is of.


Use this command to check how much of an item is present in the cargobay or if it present at all. This command will NOT find wares that are 'Installed' on a ship, eg: guns or shields or items that are standard 'Built In' components for a particular ship type, eg: 'Trade Command Software Mk1' on freighters.


Example:

$target = get tracking aim
If $target is of class ship
| skip if not = $target get true amount of ware 5 MJ Shield in cargo bay
|| display subtitle text: text='Spare 5 MJ Shields Onboard' duration=5000 ms
end

This will get the players tracking aim and if it is a ship it will check to see if spare 5 MJ Shields are aboard. If spare 5 MJ Shields (not installed) are found it will display the subtitle 'Spare 5 MJ Shields Onboard' for 5 seconds.


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

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

[TiP][49] 291037

Post by X2-Illuminatus » Fri, 26. Nov 10, 22:15

[skip|else] if [not]|while [not]| <RetVar/IF> = <RefObj> get true amount 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> = Nutze RetVar, wenn du die Anzahl in einer Variable speichern möchtest. IF hingegen wird überprüfen, ob eine Ware im Frachtraum existiert und TRUE / FALSE (wahr / falsch) zurückgeben.
<RefObj> = Das 'Objekt' (Schiff / Station), auf dem der Befehl ausgeführt werden soll.
<Var/Ware> = Die Ware, von der du die im Frachtraum vorhandene Anzahl ermitteln möchtest.


Nutze diesen Befehl, um zu überprüfen, wie viel von einer Ware im Frachtraum vorhanden oder ob sie überhaupt vorhanden ist. Dieser Befehl wird KEINE Waren finden, die im Schiff installiert sind, bspw. Waffen und Schilde, oder Waren, die standardmäßig eingebaut sind, wie z.B. die Handelssoftware Mk1 in Frachtern.


Beispiel:

$target = get tracking aim
If $target is of class ship
| skip if not = $target get true amount of ware 5 MJ Shield in cargo bay
|| display subtitle text: text='5 MJ Schilde an Bord' duration=5000 ms
end

Dies wird überprüfen, ob das Ziel des Spielers (wenn es ein Schiff ist) 5 MJ Schilde an Bord hat. Wenn 5 MJ Schilde (nicht installiert) gefunden werden, wird der Untertitel '5 MJ Schilde an Bord' für 5 Sekunden angezeigt.


Zu finden unter:
  • »» Trade Commands
    • »» for Ships and Stations
      <RetVar/IF><RefObj> get true amount of ware <Var/Ware> in cargo bay

Return to “MSCI Reference”