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

dec <RetVar> =

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

dec <RetVar> =


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

Declines the Variable downwards, eg: changes 2 to 1

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

Command Location:
Last edited by mark_a_condren on Tue, 28. Sep 10, 15:15, edited 1 time in total.

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

[TiP][49] 286375

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

dec <RetVar> =


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

Verringert die Variable, z.B. ändert 2 zu 1.

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

Locked

Return to “MSCI Reference”