<RetVar> = A variable containing the requested information in an array.
<Var/Race> = A race or a variable containing it.
<Value> = A ship class / type or 'null'.
This will return all existing ships by the as <Var/Race> selected race of the as <Value> selected class / type. Entering 'null' as class / type value will return all ships of the selected race.
Example:
$sector.arr= array alloc: size=0
$ship.arr= get ship array: of race Argon class/type=Colossus
$size= size of array $ship.arr
while $size
|dec $size=
|$ship=$ship.arr[$size]
|$sector=$ship -> get sector
|append $sector to array $sector.arr
end
return null
This gets all Argon Colossus and save their current sector in the array $sector.arr.
Related Commands:
<RetVar/IF><RefObj> get owned ships: class/type=<Value>
<RetVar> = get ship type array: maker race=<Var/Race> class=<Value>
Command Location:
- »» Universe and Sector Commands
<RetVar> = get ship array: of race <Var/Race> class/type=<Value>