[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 [TRUE] or [FALSE].
<RefObj> = The object you wish to check the known status of.
Objects become known if they have come within scanner range of any of the players assets.
Example:
$sector = [THIS] -> get user input: type= Sector, title='Choose a sector'
$station.array = $sector -> get station array from sector
$display.array = array alloc size: 0
$station.array.count = size of array: $station.array
$counter = 0
while $counter < $station.array.count
| $station = $station.array [$counter]
| skip if not $station -> is known
| | append $station to array: $display.array
| inc $counter
end
$ret = open custom menu: title= 'Known Stations in Sector' description= null option array= $display.array
This will get the stations from a selected $sector, and if they are known to the player they will be appended to the array that is to be displayed, then that array will be displayed in the opened menu.
Command Location:
- »» General Object Commands
<RetVar/IF><RefObj> is known