<RetVar> = <RefObj> get maintype

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

Moderators: Scripting / Modding Moderators, MSCI Moderators

Locked
mark_a_condren
Posts: 1468
Joined: Wed, 3. Aug 05, 05:05
x3tc

<RetVar> = <RefObj> get maintype

Post by mark_a_condren » Fri, 3. Dec 10, 12:44

<RetVar> = <RefObj> get maintype


<RetVar> = The command return will be stored in this variable.
<RefObj> = The object you wish to get the 'maintype' of.


Each ware or object belongs to a main and sub-category called maintype and subtype.
This instruction returns the 'maintype' of a particular object as entered in the command.


Example:

$target = get player tracking aim

skip if not $target
| $maintype = $target get maintype

This will return the 'maintype' of the current player target, if something is targeted.


Additional Information:

A list of Maintypes and their Subtypes can be found here.


Command Location:

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

[TiP][49] 292553

Post by X2-Illuminatus » Fri, 10. Dec 10, 20:14

<RetVar> = <RefObj> get maintype


<RetVar> = Der Rückgabewert des Befehls wird in dieser Variable gespeichert.
<RefObj> = Das Objekt, dessen Maintype du ermitteln möchtest.


Jede Ware und jedes Objekt gehören zu einer Haupt- und einer Unterkategorie, die "Maintype" und "Subtype" genannt werden.
Dieser Befehl gibt den Maintype des gewählten Objekts zurück.


Beispiel:

$target = get player tracking aim

skip if not $target
| $maintype = $target get maintype

Dies gibt den 'Maintype' des aktuellen Spielerziels zurück, wenn etwas als Ziel ausgewählt ist.


Zusätzliche Information:

Eine Liste der Maintypes und Subtypes findet sich hier.


Zu finden unter:

Locked

Return to “MSCI Reference”