[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 an array of ships owned by the <RefObj>.
<RefObj> = A variable containing a race, ship or station.
<Value> = A ship class / type or 'null'
This command returns an array of existing ships owned by the <RefObj> of the as <Value> selected class. Entering 'null' as "class / type"-value will return all ships of the <RefObj>. If the <RefObj> is a race, the command will return all existing ships of that race. If the <RefObj> is a ship or station, it will return all ships homebased with it.
Example:
$homebase=$ship -> get homebase
$ship.arr=$homebase -> get owned ships: class/type=null
return null
Assuming the variable $ship contains a ship, this will save all ships that have the same homebase as $ship in the array $ship.arr.
Related Commands:
<RetVar> = <RefObj> get player owned ship array from sector
<RetVar> = get ship array: of race <Var/Race> class/type=<Value>
Command Location:
- »» Universe and Sector Commands
<RetVar/IF><RefObj> get owned ships: class/type=<Value>