[skip|else] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = (integer) Returns true volume of the ware used in the RefObj's cargo bay.
<RefObj> = (Ship) Ship to get the true volume of the ware in the cargo bay size from.
<Var/Ware> = (WareType) WareType to get the true volume of.
Returns the "true" amount of used cargo space on a given ship. i.e. The amount NOT including any installed weapons or shields.
Examples:
$volume = [PLAYERSHIP] -> get true volume of ware Energy Cells in cargo bay
Given that an energy cell has volume "1". The return will just be the exact number of energy cells "N" multiplied by "1".
N * 1 = N
$volume = [PLAYERSHIP] -> get true volume of ware Partical Accelerator Cannon in cargo bay
Assuming all the PAC's are installed in the player ship, the true volume would be 0. Otherwise, it will be Total number "N", minus the installed number "I", times volume "v".
= (N - I) * V
Unknown Outcomes:
- Invalid RefObj
- VarWare = Installed Missiles
- Invalid WareType
Command Location:
- »» Trade Commands
- »» for Ships
<RetVar/IF><RefObj> get true volume of ware <Var/Ware> in cargo bay
- »» for Ships