inc <RetVar> =

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

inc <RetVar> =

Post by mark_a_condren » Tue, 7. Sep 10, 14:18

inc <RetVar> =


<RetVar> = The Variable to be altered, this must be an integer.

Inclines the Variable upwards, eg: changes 1 to 2.

Functionally identical to:
  • <RetVar> = <RetVar> + 1
Example:
  • $Loop = 0
    while $Loop < 10
    @ = wait randomly from 100 to 200 ms
    | inc $Loop =
    end

Command Location:

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

[TiP][49] 286374

Post by X2-Illuminatus » Mon, 20. Sep 10, 19:26

inc <RetVar> =


<RetVar> = Die Variable, die verändert werden soll. Dabei muss es sich um eine ganze Zahl handeln.

Erhöht die Variable, z.B. ändert 1 zu 2.

Funktioniert genau wie:
  • <RetVar> = <RetVar> + 1
Beispiel:
  • $Schleife = 0
    while $Schleife < 10
    @ = wait randomly from 100 to 200 ms
    | inc $Schleife =
    end
Zu finden unter:

Locked

Return to “MSCI Reference”