WhoCares357
2007-01-27 09:46:51
I was bored and decided to created this simple, little game for Scar fans.
All you have to do, is copy the code, paste it into scar, and press play.
The objective of the game is to maneuver the mouse to the randomized coordinates. The system will give you hints in the debug box, so watch that carefully.
Enjoy, and post your times here, :)
Edit: I have added on from my last script by incorporating ejjman1's ideas and script edits. I have re-edited his edits and will most likely edit it more if someone has further ideas. This is a community project now. If you have an idea for improvement, please post.
All you have to do, is copy the code, paste it into scar, and press play.
The objective of the game is to maneuver the mouse to the randomized coordinates. The system will give you hints in the debug box, so watch that carefully.
{.Script Info:
# ScriptName = CoordFinder
# Author(s) = WhoCares357 and ejjman1
# Description = Find coordinates in time
# Version = 1.67
# Date = 1/27/06
# Comments =Original by: WhoCares357; Edited by: Ejjman1; Edited by WhoCares357
/Script Info}
program CoordFinder;
var
cx, cy, x, y, I, WTime, TTime, Lvl: integer;
procedure Lvl1;
begin
I := 0;
WTime := 1;
TTime := 0;
Lvl := 1;
x := 0+random(75);
y := 0+random(50);
repeat
I := I + 3;
GetMousePos(cx, cy);
WriteLn('Current Mouse Position: ('+IntToStr(cx)+', '+IntToStr(cy)+')');
Wait(WTime);
if I >= 20000 then
begin
WriteLn('A hint..its near '+inttostr(x+random(2))+', '+inttostr(y+random(2))+'.');
WriteLn('I''ll give you 5 seconds to get that into your head...');
wait(5000);
TTime := TTime + I;
I := 0;
end;
until(cx = x) and (cy = y);
TTime := TTime + I;
end;
procedure Lvl2;
begin
I := 0;
cx := 0;
cy := 0;
WTime := 1;
TTime := 0;
Lvl := 2;
x := 0+random(150);
y := 0+random(100);
repeat
I := I + 3;
GetMousePos(cx, cy);
WriteLn('Current Mouse Position: ('+IntToStr(cx)+', '+IntToStr(cy)+')');
Wait(WTime);
if I >= 20000 then
begin
writeln('A hint..its near '+inttostr(x+random(2))+', '+inttostr(y+random(2))+'.');
writeln('I''ll give you 5 seconds to get that into your head...');
wait(5000);
TTime := TTime + I;
I := 0;
end;
until(cx = x) and (cy = y);
TTime := TTime + I;
end;
procedure Lvl3;
begin
I := 0;
cx := 0;
cy := 0;
WTime := 1;
TTime := 0;
Lvl := 3;
x := 0+random(225);
y := 0+random(150);
repeat
I := I + 3;
GetMousePos(cx, cy);
WriteLn('Current Mouse Position: ('+IntToStr(cx)+', '+IntToStr(cy)+')');
Wait(WTime);
if I >= 20000 then
begin
writeln('A hint..its near '+inttostr(x+random(2))+', '+inttostr(y+random(2))+'.');
writeln('I''ll give you 5 seconds to get that into your head...');
wait(5000);
TTime := TTime + I;
I := 0;
end;
until(cx = x) and (cy = y);
TTime := TTime + I;
end;
procedure Lvl4;
begin
I := 0;
cx := 0;
cy := 0;
WTime := 1;
TTime := 0;
Lvl := 4;
x := 0+random(312);
y := 0+random(215);
repeat
I := I + 3;
GetMousePos(cx, cy);
WriteLn('Current Mouse Position: ('+IntToStr(cx)+', '+IntToStr(cy)+')');
Wait(WTime);
if I >= 20000 then
begin
writeln('A hint..its near '+inttostr(x+random(2))+', '+inttostr(y+random(2))+'.');
writeln('I''ll give you 5 seconds to get that into your head...');
wait(5000);
TTime := TTime + I;
I := 0;
end;
until(cx = x) and (cy = y);
TTime := TTime + I;
end;
procedure Lvl5;
begin
I := 0;
cx := 0;
cy := 0;
WTime := 1;
TTime := 0;
Lvl := 5;
x := 0+random(375);
y := 0+random(343);
repeat
I := I + 3;
GetMousePos(cx, cy);
WriteLn('Current Mouse Position: ('+IntToStr(cx)+', '+IntToStr(cy)+')');
Wait(WTime);
if I >= 20000 then
begin
writeln('A hint..its near '+inttostr(x+random(2))+', '+inttostr(y+random(2))+'.');
writeln('I''ll give you 5 seconds to get that into your head...');
wait(5000);
TTime := TTime + I;
I := 0;
end;
until(cx = x) and (cy = y);
TTime := TTime + I;
end;
procedure Lvl6;
begin
I := 0;
cx := 0;
cy := 0;
WTime := 1;
TTime := 0;
Lvl := 6;
x := 0+random(490);
y := 0+random(390);
repeat
I := I + 3;
GetMousePos(cx, cy);
WriteLn('Current Mouse Position: ('+IntToStr(cx)+', '+IntToStr(cy)+')');
Wait(WTime);
if I >= 20000 then
begin
writeln('A hint..its near '+inttostr(x+random(2))+', '+inttostr(y+random(2))+'.');
writeln('I''ll give you 5 seconds to get that into your head...');
wait(5000);
TTime := TTime + I;
I := 0;
end;
until(cx = x) and (cy = y);
TTime := TTime + I;
end;
procedure Lvl7;
begin
I := 0;
cx := 0;
cy := 0;
WTime := 1;
TTime := 0;
Lvl := 7;
x := 0+random(590);
y := 0+random(430);
repeat
I := I + 3;
GetMousePos(cx, cy);
WriteLn('Current Mouse Position: ('+IntToStr(cx)+', '+IntToStr(cy)+')');
Wait(WTime);
if I >= 20000 then
begin
writeln('A hint..its near '+inttostr(x+random(2))+', '+inttostr(y+random(2))+'.');
writeln('I''ll give you 5 seconds to get that into your head...');
wait(5000);
TTime := TTime + I;
I := 0;
end;
until(cx = x) and (cy = y);
TTime := TTime + I;
end;
procedure Lvl8;
begin
I := 0;
cx := 0;
cy := 0;
WTime := 1;
TTime := 0;
Lvl := 8;
x := 0+random(655);
y := 0+random(480);
repeat
I := I + 3;
GetMousePos(cx, cy);
WriteLn('Current Mouse Position: ('+IntToStr(cx)+', '+IntToStr(cy)+')');
Wait(WTime);
if I >= 20000 then
begin
writeln('A hint..its near '+inttostr(x+random(2))+', '+inttostr(y+random(2))+'.');
writeln('I''ll give you 5 seconds to get that into your head...');
wait(5000);
TTime := TTime + I;
I := 0;
end;
until(cx = x) and (cy = y);
TTime := TTime + I;
end;
procedure Lvl9;
begin
I := 0;
cx := 0;
cy := 0;
WTime := 1;
TTime := 0;
Lvl := 9;
x := 0+random(723);
y := 0+random(550);
repeat
I := I + 3;
GetMousePos(cx, cy);
WriteLn('Current Mouse Position: ('+IntToStr(cx)+', '+IntToStr(cy)+')');
Wait(WTime);
if I >= 20000 then
begin
writeln('A hint..its near '+inttostr(x+random(2))+', '+inttostr(y+random(2))+'.');
writeln('I''ll give you 5 seconds to get that into your head...');
wait(5000);
TTime := TTime + I;
I := 0;
end;
until(cx = x) and (cy = y);
TTime := TTime + I;
end;
procedure Lvl10;
begin
I := 0;
cx := 0;
cy := 0;
WTime := 1;
TTime := 0;
Lvl := 10;
x := 0+random(799);
y := 0+random(599);
repeat
I := I + 3;
GetMousePos(cx, cy);
WriteLn('Current Mouse Position: ('+IntToStr(cx)+', '+IntToStr(cy)+')');
Wait(WTime);
if I >= 20000 then
begin
writeln('A hint..its near '+inttostr(x+random(2))+', '+inttostr(y+random(2))+'.');
writeln('I''ll give you 5 seconds to get that into your head...');
wait(5000);
TTime := TTime + I;
I := 0;
end;
until(cx = x) and (cy = y);
TTime := TTime + I;
end;
procedure Proggy;
begin
writeln('You have completed lvl '+inttostr(Lvl)+'.');
writeln('Completed in '+inttostr(TTime/1000)+' seconds.');
if Lvl <= 9 then writeln('Moving onto the next lvl.');
writeln('Prep Time of 5-10 seconds to cool down.');
wait(5000+random(5000));
end;
begin
Lvl1;
Proggy;
Lvl2;
Proggy;
Lvl3;
Proggy;
Lvl4;
Proggy;
Lvl5;
Proggy;
Lvl6;
Proggy;
Lvl7;
Proggy;
Lvl8;
Proggy;
Lvl9;
Proggy;
Lvl10;
Proggy;
end.Enjoy, and post your times here, :)
Edit: I have added on from my last script by incorporating ejjman1's ideas and script edits. I have re-edited his edits and will most likely edit it more if someone has further ideas. This is a community project now. If you have an idea for improvement, please post.