[skip|else] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = Use a variable, if the command should return information. If a variable is used, it will return the maximum amount of <Var/Ware> that can be stored in the <RefObj>.
<RefObj> = The station that stores <Var/Ware>.
<Var/Ware> = The ware you want to know its amount.
Returns the maximum amount of the as <Var/Ware> selected ware that can be stored in the as <RefObj> selected station. This will not consider the amount already stored in the station.
Example:
$target = get player tracking aim
$ware = $target -> get product ware
$amount = $target -> get max. store amount of ware $ware
write to player logbook: printf: fmt='The maximum amount of %s that can be stored in %s is %s.', $ware, $target, $amount, null, null
return null
Assuming the current player $target is a factory, this will get the maximum amount of its product (in case the factory has more than one product, it will be the first listed) that can be stored in that station and writes it with an appropriate message to the logbook.
Related Commands:
<RetVar/IF><RefObj> get best store amount of ware <Var/Ware>
Command Location:
- »» Trade Commands
- »» for Stations
<RetVar/IF><RefObj> get max. store amount of ware <Var/Ware>
- »» for Stations