[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 1 on success and null on failure.
<RefObj> = The station you want to know, if only player own ship can trade with.
This command checks, if only player own ships can trade with the as <RefObj> selected station. If this is the case, it will return 1 else null.
Only player own stations can be adjusted to only trade with player owned ships.
Example:
$trade.station.arr = array alloc: size=0
$station.arr = get station array: of race Player class/type=null
$size = size of array $station.arr
while $size
|dec $size =
|$station = $station.arr[$size]
|if $station -> only player own ships can trade with
||append $station to array $trade.station.arr
|end
end
return null
This will get all player own stations that only trade with player own ships in the array $trade.station.arr.
Command Location:
- »» Trade Commands
- »» for Stations
<RetVar/IF><RefObj> only player own ships can trade with
- »» for Stations