Hey, I want a procedure that allows me to wait and check for randoms at the same time, so far i have...
SCAR Code:procedure MyWait(t);
lol, not much but i am relearning scar after doing alot of AS2.
***Edit
Deleted other thread, made by accident.
Hey, I want a procedure that allows me to wait and check for randoms at the same time, so far i have...
SCAR Code:procedure MyWait(t);
lol, not much but i am relearning scar after doing alot of AS2.
***Edit
Deleted other thread, made by accident.
You could use a lot of different methods to do that. One way is using timers:
SCAR Code:procedure MyWait(Time: Integer);
var
Marker: Integer;
begin
MarkTime(Marker);
while (TimeFromMark(Marker) < Time) do
begin
Wait(50);
FindNormalRandoms;
end;
end;
You can change the wait time inside the loop, but the rest should work fine for you.
:-)
ah okay, thanks alot!
I am doing this for my default save as
I dont even know what script i will be making first.
SCAR Code:procedure MyWait(Time : Integer);
var
StartTime : Integer;
begin
MarkTime(StartTime);
while (TimeFromMark(StartTime) < Time) do
begin
Wait(100);
FindNormalRandoms;
if FindFight then RunAway('N', False, 1, 5000+random(1000));
end;
end;
I think that will work??
EDIT: omg Method beat me... i went to the bathroom...
Edit2: fixed thnx senrath!
Edit3: fixed for reals this time
This might also be useful.procedure FTWait(Time: Integer);
By: WT-Fakawi
Description:
Performs Wait and FindTalk. Time is multiple of 250 msec, so FTWait(4)
waits approx 1 sec and performs 4 FindTalks;
There are currently 1 users browsing this thread. (0 members and 1 guests)