<Var/Array>[<Var/Number>] = <Var/Array>[<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: 1385
Joined: Wed, 3. Aug 05, 05:05
x3tc

<Var/Array>[<Var/Number>] = <Var/Array>[<Var/Number>]

Post by mark_a_condren » Tue, 14. Sep 10, 16:58

<Var/Array> [ <Var/Number> ] = <Var/Array> [ <Var/Number> ]


<Var/Array> = The Target array, this must already exsist or have been created prior to using this command.
<Var/Number> = The index for the value to be inserted at.
<Var/Array> = The source array.
<Var/Number> = The index in the source array that you want to copy the value of.

This command copies the value from one array to another. The index in the source and target arrays are defined by the <Var/Number> entries.


Example:

$target.array [ 5 ] = $source.array [ 7 ]

This will copy the value in the source array $source.array at index 7 into the target array $target.array at index 5.


Command Location:

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

[TiP][49] 286902

Post by X2-Illuminatus » Sat, 9. Oct 10, 22:28

<Var/Array> [ <Var/Number> ] = <Var/Array> [ <Var/Number> ]


<Var/Array> = Das Ziel-Array, dieses muss bereits existieren oder vorher erstellt worden sein, um diesen Befehl nutzen zu können.
<Var/Number> = Die Stelle, an der der Wert eingegeben werden soll.
<Var/Array> = Das Quell-Array.
<Var/Number> = Die Stelle im Quell-Array, deren Wert kopiert werden soll.

Dieser Befehl kopiert den Wert von einem Array zu einem anderen. Die Stellen im Quell- und Zielarray werden definiert durch die <Var/Number> Einträge.


Beispiel:

$target.array [ 5 ] = $source.array [ 7 ]

Dies kopiert den Wert vom Quell-Array $source.array an der Stelle 7 in das Ziel-Array $target.array an der Stelle 5.


Zu finden unter:

Locked

Return to “MSCI Reference”