<RetVar> = In addition to creating the ship, it will also be saved at this variable.
<Var/Ship> = The ship type that will be created. Note that this is not the same as a ship class.
<Var/Race> = Sets the race the created ship will belong to.
<Value> = Sets where the new ship will be placed. This can be a sector, a station or another ship.
<Var/Number> = A number or a numeric variable for the X,Y and Z coordinates. This doesn´t have any effect when creating the ship into a station or another ship.
This command creates a new ship of type <Var/Ship>, adds it to the Object or Sector at <Value>, sets its owner to <Var/Race> and sets its position to the X,Y and Z coordinates.
Example:
$sector= get sector from universe index: x=1, y=5
$newship= create ship: type=Heavy Centaur owner=Argon addto=$sector x=2700 y=5000 z=-3400
$tmp=$newship -> add 200 units of Energy Cells
$tmp=$newship -> install 3 units of 200 MJ Shield
This will create a Heavy Centaur in the sector saved in $sector, which is 'Ore Belt'. The ship will belong to the argons and it will be created at position (2.7km|5km|-3.4km). After that, 200 Energy Cells will be put into it´s cargo bay and three 200 MJ shields will be installed.
Command Location:
- »» General Object Commands
- »» Create Objects
<RetVar> = create ship: type=<Var/Ship> owner=<Var/Race> addto=<Value> x=<Var/Number> y=<Var/Number> z=<Var/Number>
- »» Create Objects