<RetVar> = A variable containing the requested information.
<Var/Race> = A race or 'null'.
<Value> = An object class or 'null'.
Returns an array of ship types by the as <Var/Race> selected race from the as <Value> selected class. Entering 'null' in as race / class value will get the shiptypes of all races / classes.
Example:
$sector=[PLAYERSHIP] -> get sector
$position.arr=[PLAYERSHIP] -> get position as array
$x=$position.arr[0]
$y=$position.arr[1]
$z=$position.arr[2]
$type.arr= get ship type array: maker race=Split class=M3
$size= size of array $type.arr
while $size
|dec $size=
|$type=$type.arr[$size]
|$ship= create ship: type=$type owner=Player addto=$sector x=$x y=$y z=$z
|$ship -> add default items to ship
end
return null
This will get all Split M3-class shiptypes and create these ships next to the player's position with the player as owner.
Related Commands:
<RetVar> = get ship array: of race <Var/Race> class/type=<Value>
Command Location:
- »» Universe and Sector Commands
<RetVar> = get ship type array: maker race=<Var/Race> class=<Value>