[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 maximum trade jumps of the <RefObj>.
<RefObj> = A station you want to know its maximum trade jumps of.
This command returns the maximum trade jumps set in the station parameters of the as <RefObj> selected station.
The maximum jump range determines, how far (how many sector jumps away) from the station a ship with that station as homebase and running a "wares buy/sell"-command will fly to execute its job.
The standard jump range is 9 jumps. Which is also the standard return value you get, if you select a NPC-factory as <RefObj>. Next to adjusting the jump range in your own stations you can also set the jump range of any station using the command <RefObj> set max trade jumps <Var/Number>.
Example:
$factory = get player tracking aim
$number = $factory -> get max trade jumps
write to player logbook: printf: fmt='The maximum trade jumps of %s are %s.', $factory, $number, null, null, null
return null
This will return the maximum trade jumps of the by the player as target selected factory.
Related Commands:
<RefObj> set max trade jumps <Var/Number>
Command Location:
- »» Trade Commands
- »» for Stations
<RetVar/IF><RefObj> get max trade jumps
- »» for Stations