[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 find wares that are 'Installed' on a ship, eg: guns or shields.
Example:
$target = get tracking aim
If $target is of class ship
| skip if not = $target get amount of ware Jumpdrive in cargo bay
|| display subtitle text: text='Jumpdrive Installed' duration=5000 ms
end
This will get the players tracking aim and if it is a ship it will check to see if a jumpdrive is aboard. If a jumpdrive is found it will display the subtitle 'Jumpdrive Installed' for 5 seconds.
Command Location:
- »» Trade Commands
- »» for Ships and Stations
<RetVar/IF><RefObj> get amount of ware <Var/Ware> in cargo bay
- »» for Ships and Stations