[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 number of primary resources used by the <RefObj>.
<RefObj> = The factory you want to know its number of primary resources of.
Returns the number of primary resources the <RefObj> uses. Primary resources are those that are needed to start the production cycle of a factory. A detailed explanation of primary and secondary resources can be found in this FAQ-article.
Example:
$factory = get player tracking aim
$number = $factory -> get number of primary resources
write to player logbook: printf: fmt='%s has %s primary resources.', $factory, $number, null, null, null
return null
This writes the amount of primary ressources of the as target by the player selected factory with a message to the logbook.
Related Commands:
<RetVar/IF><RefObj> get number of resources
<RetVar/IF><RefObj> get number of secondary resources
Command Location:
- »» Trade Commands
- »» for Stations
<RetVar/IF><RefObj> get number of primary resources
- »» for Stations