<RetVar> = create ship: type=<Var/Ship> owner=<Var/Race> addto=<Value> x=<Var/N

This forum serves as MSCI Reference at EGOSOFT. It's Read-Only for non MSCI Group members.

Moderators: Scripting / Modding Moderators, MSCI Moderators

Locked
Striker304
Posts: 915
Joined: Fri, 26. Mar 10, 21:15
x3tc

<RetVar> = create ship: type=<Var/Ship> owner=<Var/Race> addto=<Value> x=<Var/N

Post by Striker304 » Thu, 9. Sep 10, 16:42

<RetVar> = create ship: type=<Var/Ship> owner=<Var/Race> addto=<Value> x=<Var/Number> y=<Var/Number> z=<Var/Number>

<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>

User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 24960
Joined: Sun, 2. Apr 06, 16:38
x4

[TiP][49] 286552

Post by X2-Illuminatus » Tue, 28. Sep 10, 23:48

<RetVar> = create ship: type=<Var/Ship> owner=<Var/Race> addto=<Value> x=<Var/Number> y=<Var/Number> z=<Var/Number>

<RetVar> = Zusätzlich zur Erstellung des Schiffes wird es auch in dieser Variablen gespeichert.
<Var/Ship> = Der Schiffstyp, der erstellt wird. Beachte, dass dieser nicht das gleiche wie die Schiffsklasse ist.
<Var/Race> = Bestimmt die Rasse, der das erstellte Schiff gehört.
<Value> = Bestimmt den Ort, an dem das Schiff erstellt wird. Dies kann ein Sektor, eine Station oder ein anderes Schiff sein.
<Var/Number> = Eine Zahl oder eine numerische Variable für X, Y und Z Koordinaten. Dies hat keine Auswirkung, wenn das Schiff auf einer Station oder in einem anderem Schiff erstellt wird.

Dieser Befehl erstellt ein neues Schiff des Typs <Var/Ship>, fügt es dem in <Value> angegebenem Objekt oder Sektor hinzu, setzt seinen Besitzer auf <Var/Race> und seine Position auf die X, Y und Z Koordinaten.

Example:

$sector= get sector from universe index: x=1, y=5
$neuesschiff= create ship: type=Schwerer Zentaur owner=Argonen addto=$sector x=2700 y=5000 z=-3400
$tmp=$neuesschiff -> add 200 units of Energiezellen
$tmp=$neuesschiff -> install 3 units of 200 MJ Schild

Dies erstellt einen Schweren Zentaur im in $sector gespeichertem Sektor, welcher "Erzgürtel" ist. Das Schiff gehört den Argonen und es wird an der Position (2.7km|5km|-3.4km) erstellt. Anschließend werden 200 Energiezellen in den Frachtraum gelegt und drei 200 MJ Schilde installiert.


Zu finden unter:
  • »» 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>
Last edited by X2-Illuminatus on Sat, 1. Jan 11, 16:34, edited 1 time in total.

User avatar
Capux
Posts: 2456
Joined: Sat, 31. Oct 09, 21:17
x4

[39]286552

Post by Capux » Wed, 29. Sep 10, 18:37

<RetVar> = create ship: type=<Var/Ship> owner=<Var/Race> addto=<Value> x=<Var/Number> y=<Var/Number> z=<Var/Number>

<RetVar> = oltre a creare una nave, il comando la salva in questa variabile.
<Var/Ship> = Il tipo di nave che verrà creato, non è la classe della nave.
<Var/Race> = Imposta la razza a cui appartiene la nave creata.
<Value> = Imposta dove la nave sarà creata: può essere un settore, una stazione o un'altra nave.
<Var/Number> = Un numero o una variabile che indica le coordinate X,Y,Z della nuova nave creata (espresse in metri). Non vengono considerati se la nave viene generata in un'altra nave o in una stazione

Questo comando crea una nave del tipo <Var/Ship>, la aggiunge all'oggetto o al settore <Value>, imposta il porprietario su <Var/Race> e imposta le coordinate X, Y e Z.

Esempio:

$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

Questo creerà un Heavy centaur nel settore salvato in $sector, che è cintura di asteroidi. La nave apparterrà agli Argon e sarà creata nella posizione (2.7km|5km|-3.4km). Dopo di che, saranno aggiunte 200 Celle di Energia nella stiva e installati 3 Scudi da 200 MJ.


Posizione dell'istruzione nella lista:
  • »» 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>

Locked

Return to “MSCI Reference”