Log in

View Full Version : using Includes in scripts



Trench Coat
05-03-2007, 02:11 AM
ok i have found like how to put them in scripts and other things
like this:
{.include SRL/SRL.scar}
{.include SRL/SRL/extended/xAntiRandoms.scar}

but say how would i use the include in the script

would i put the antirandom functions in the main loop or copy and paste then entire scripted cuse i am using it

Rune Hacker
05-03-2007, 02:13 AM
program New;
{.include SRL/SRL.scar}

Procedure Blah
begin
//all your procedures and stuff inbetween the beggining and main loop
end;

begin //main loop
SetupSRL; //this will set up srl
Blah;
end.

and for antirandoms, put FindNormalRandoms; in all your procedures

Esteban
05-03-2007, 02:19 AM
^^ what rune hacker said, do that and you'll be good.

alach11
05-03-2007, 03:08 AM
Including files basically lets you call procedures and functions from that script. You can call procedures from your own script too if they were listed before when you call them.

Trench Coat
05-03-2007, 03:14 AM
ok thankyou this help me

kensaurus
05-03-2007, 06:59 AM
i oso had the same problem :)