Results 1 to 5 of 5

Thread: How Do I Make The Script Repeat Itself?

  1. #1
    Join Date
    Nov 2007
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How Do I Make The Script Repeat Itself?

    I have almost finished the MOST NOOBY WILLOW SCRIPT EVER.
    All I need to know to finish it is how to make a script reapeat. Thx
    Yes, I do expect to get some " 's"

  2. #2
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    var
      C: Integer;

    begin
      repeat
        C := C + 1;    
        WriteLn('yeaj');
      until( c >= 5); {not logged in //etc}
    end.

    just a basic repeat loop.

  3. #3
    Join Date
    Nov 2007
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks!!

  4. #4
    Join Date
    Aug 2007
    Posts
    328
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You can try
    SCAR Code:
    var
      C: Integer;
     
    begin
      repeat
        C := C + 1;    
        WriteLn('yeaj');
      until(false); {not logged in //etc}
    end.
    But its never ending so its dangerous

  5. #5
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    To add a repeat into your script, you'll need to add repeat above whatever you want to keep repeating. Then, put an Until part after when you want it to stop repeating. But you have to put brackets after the Until. If i just want it to keep repeating no matter what i would put a False inside of the brackets.

    Example:
    SCAR Code:
    begin
    repeat
      ClearDebug;
      Writeln('This is repeating forever. It cannot be ended until i close SCAR');
      Writeln('  Or Terminate the script via a Hot Key or via the button.');
    Until(False);
    end.
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. how do u make something repeat 28 times?
    By gore in forum OSR Help
    Replies: 11
    Last Post: 05-27-2008, 10:43 AM
  2. how can i make repeat somthing until done?
    By takeout in forum OSR Help
    Replies: 5
    Last Post: 09-11-2007, 11:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •