<RefObj> = The station you want to set its maximum trade jumps.
<Var/Number> = The number of jumps.
This commands sets the maximum number of trade jumps 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.
Example:
$factory.arr = $sector -> get factory array from sector
$size = size of array $factory.arr
while $size
|dec $size =
|$factory = $factory.arr[$size]
|$owner = $factory -> get owner race
|if $owner == Player
||$factory -> set max trade jumps: 9
|end
end
return null
Assuming $sector contains a sector, this will set the maximum trade jumps of every player's factory in $sector to 9.
Related Commands:
<RetVar/IF><RefObj> get max trade jumps
Command Location:
- »» Trade Commands
- »» for Stations
<RefObj> set max trade jumps <Var/Number>
- »» for Stations