[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 contain the product ware of the <RefObj>.
<RefObj> = The factory you want to know its product ware.
This command returns the ware that is sold at the as <RefObj> selected factory as product.
However, this only returns one product of the factory - the one that is listed at first position in the station details. So if a factory produces more than one ware, it is better to use the command <RetVar/IF><RefObj> get products.
Example:
$factory = get player tracking aim
$ware = $factory -> get product ware
write to player logbook: printf: fmt='%s produces %s.', $factory, $ware, null, null, null
return null
This will write the product of the as target by the player selected factory into the logbook.
Related Commands:
<RetVar/IF><RefObj> get products
Command Location:
- »» Trade Commands
- »» for Stations
<RetVar/IF><RefObj> get product ware
- »» for Stations