Input & Loop Question

Discussion in 'Scar/Simba Help' started by dfurball, Feb 24, 2008.

Input & Loop Question
  1. Unread #1 - Feb 24, 2008 at 10:32 PM
  2. dfurball
    Referrals:
    0

    dfurball Guest

    Input & Loop Question

    What's the input text command?
    How do I loop?
     
  3. Unread #2 - Feb 27, 2008 at 4:13 AM
  4. StarScreamer
    Referrals:
    0

    StarScreamer Guest

    Input & Loop Question

    Code:
    What's the input text command? 
    please expand on this?

    Looping is very easy depending on what you want to do.

    e.g
    Code:
    program New;
    begin
      repeat
        writeLn('this in an infinate loop!');
      until(false);
    end.
    Is an infinate loop, you could change "False" to an integer and add counters etc to make it end after certain things are obtained, say after 20 clicks, or if it finds a certain color.
     
  5. Unread #3 - Feb 27, 2008 at 7:52 AM
  6. cazax
    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0

    cazax Forum Addict

    Input & Loop Question

    e.g
    Code:
    Program New;
    var
      C,x,y : Integer;
    begin
      repeat
        if FindObjCustom(x,y,['hop,'down'],[16516,156155],20) then
        begin
          Writeln('FOund tree');
          C := +1;
        end;
      until ( C = 10 )
    end.
    
    Thats an example
     
< Why doesn't anyone help with unknown identifier? | PLEASE HELP, have error with EVERY script >

Users viewing this thread
1 guest


 
 
Adblock breaks this site