<RetVar> = get number of subtypes of maintype <Var/Number>

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> = get number of subtypes of maintype <Var/Number>

Post by mark_a_condren » Fri, 3. Dec 10, 11:18

<RetVar> = get number of subtypes of maintype <Var/Number>


<RetVar> = The command return will be stored in this variable.
<Var/Number> = The 'maintype' number you wish to get the number of 'subtypes' of.


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


Example:

$subtype.count = get number of subtypes of maintype 8

This will return the number of subtypes for maintype 8 (Lasers). Each players game may be different dependant on 'scripts' and 'mods' installed that may add wares to a 'maintype', thus increasing the 'subtype' count.


Additional Information:

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


Command Location:

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

[TiP][49] 292547

Post by X2-Illuminatus » Thu, 16. Dec 10, 23:17

<RetVar> = get number of subtypes of maintype <Var/Number>


<RetVar> = Der Rückgabewert des Befehls wird in dieser Variable gespeichert.
<Var/Number> = Die Nummer des Maintypes, von dem du die Anzahl der Subtypes 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 die Anzahl an Subtypes eines gewählten Maintypes zurück.


Beispiel:

$subtype.count = get number of subtypes of maintype 8

Dies gibt die Anzahl an Suptypes des Maintypes 8 (Laser) zurück. Spiele von unterschiedlichen Spielern können durch installierte Scripte und Mods, die Waren zu einem Maintype hinzufügen, unterschiedliche viele Subtypes aufweisen.


Zusätzliche Information:

Eine Liste der Maintypes und Subtypes findet sich hier.


Zu finden unter:

Locked

Return to “MSCI Reference”