[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 resources used by the <RefObj>.
<RefObj> = The factory you want to know its number of resources of.
Returns the number of resources the <RefObj> uses. The number is the sum of primary and secondary resources. The differences between both types of resources are explained in this FAQ-article.
Example:
$factory = get player tracking aim
$number = $factory -> get number of resources
write to player logbook: printf: fmt='%s has %s resources.', $factory, $number, null, null, null
return null
This writes the number of resources of the as target by the player selected factory with a message to the logbook.
Related Commands:
<RetVar/IF><RefObj> get number of primary resources
<RetVar/IF><RefObj> get number of secondary resources
Command Location:
- »» Trade Commands
- »» for Stations
<RetVar/IF><RefObj> get number of resources
- »» for Stations