[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
- »» for Ships and Stations