Is there a way to make simba repeat a function more than 1 time but less than infinity? There must be a way to do this, I don't want to make 5 - 6 different procedure's for clicking the same thing.
EX:Simba Code:repeat
function;
until ....
Is there a way to make simba repeat a function more than 1 time but less than infinity? There must be a way to do this, I don't want to make 5 - 6 different procedure's for clicking the same thing.
EX:Simba Code:repeat
function;
until ....
Simba Code:for i:=1 to 5 do //change the 5 if you want to repeat more times
begin
function1;
function2;
end;
Most basic is.
Simba Code:var
I :Integer;
begin
Repeat
WriteLn('Looped ' + IntToStr(I) + ' Times.');
Inc(I);
Until(I = 6);
end.
Then there is for to do loop and while loop.
Check those in tutorial Island.
~Home
Thanks! I'm still confused...
Simba Code:var i:Integer
begin
for i:= 0 to 2 do
setupSRL;
ClickOnRock;
MageBook;
end.
How can I make ClickRock; repeat 25 times, then move onto MageBook; and other functions? THEN repeat the entire thing AGAIN.
then use 2 loops, and why are you trying to repeat setupsrl?
Simba Code:Var
i: Integer; //semicolon
begin
setupSRL;
for i:=1 to 2 do
begin //need a begin if you are performing >1 action
for i:= 1 to 25 do
ClickOnRock;
MageBook;
end;
end.
There are currently 1 users browsing this thread. (0 members and 1 guests)