SRL Archive - First Scripts

Simple AutoTalker


Bliss

2007-10-08 09:20:21

This is absolutely my first script, so be nice!

program AutoTalker;
{.include SRL/SRL.scar}
type
texts = record
str: string;
end;

var
Say: array[0..19] of texts;
numOfLines, i, k, loops: Integer;
waitForLoop: boolean;
procedure setup;
begin
k := 0;
{///////////Setup\\\\\\\\\\\\\}
Say[0].str := 'text1'; //line #1
Say[1].str := 'text2'; //line #2
Say[2].str := 'text3'; //line #3
//Copy & Paste the above lines to create more line
//but change the [1] to [2],[3], and so on.

waitForLoop := true; //If true, it will wait 1000msecs (1sec) before looping the lines
numOfLines := 3; //change to the number of lines you have
loops := 3; //change to number of times you want to say the lines (0 for infinite)
{///////////End of setup//////}

numofLines := numOfLines - 1;
end;
procedure talk;

begin

for i := 0 to numOfLines do
begin
Wait(1000+Random(Random(100)));
TypeSend(Say[i].str);
end;
end;

begin
setup;
repeat
talk;
if (waitForLoop = true) then
wait(1000+Random(500));

k := k + 1;
until (k = loops)
end.

IronTeapot

2007-10-08 11:03:36

Nice use of arrays, don't see many uses of those in peoples first script auto talkers. :)

Bliss

2007-10-08 11:15:48

Thanks, I'm an experienced programmer, but this was my first attempt at SCAR.

dlastking

2007-10-10 15:20:43

From: Bliss
Thanks, I'm an experienced programmer, but this was my first attempt at SCAR.


I'm glad you are using your experience to improve srl forums, and thnx for the script it works like butter lol

skatemore40

2007-12-17 11:47:10

u guys i need help i cant put up a scrip everytime i try to put a script from somebody that made it i put run and than an error comes up like this.

include file c:\\program files\ scar 3.12\ includes\srl\srl.scar does not exist.
failed when compiling.

thats wat it says plzz u guys help me !!!!

Mushroomhead4lyfe

2007-12-17 12:06:01

From: skatemore40
u guys i need help i cant put up a scrip everytime i try to put a script from somebody that made it i put run and than an error comes up like this.

include file c:\\program files\ scar 3.12\ includes\srl\srl.scar does not exist.
failed when compiling.

thats wat it says plzz u guys help me !!!!


You have to download the includes and SRL

go into SCAR go to file then down to Download includes and then SRL

lalahaf

2007-12-17 16:57:47

Thanks , now i can sell those yew logs with ease :p

blingbling

2007-12-23 12:48:37

nice no i can buy alot of glorys with this:(h):