Results 1 to 30 of 116

Thread: An Intermediate Guide to Scripting

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #22
    Arbeit macht fleisch Member ScionTheWorm's Avatar
    Join Date
    May 2005
    Location
    Norwegen
    Posts
    778

    Default Re: An Intermediate Guide to Scripting

    is it possible to have nested loops, if-statements and so on? could be a time saver in-game

    pseudo-code:
    Code:
    if 1
    if 2
    [do something]
    end if ; 2
    if 3
    [do something]
    end if ; 3
    while [something]
    [do something]
    end while
    end if ; 1
    edit: I just realized it is

    another thing, for it to be a background script you have to add
    Code:
    while I_CompareCounter loop = 0
    end_while
    won't it go faster if you have
    Code:
    while I_CompareCounter loop = 0
    campaign_wait 1
    end_while
    ?
    Last edited by ScionTheWorm; 12-31-2005 at 03:23.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO