SRL Archive - OSR Help

Procedure SCAR calls when terminating?


mickaliscious

2008-01-06 03:58:16

I remember reading that SCAR calls a procedure/function when terminating, but I searched and can't find the thread where this was said.

I'm working on making a script save to a text file anytime it terminates. I have everything working fine except I can't remember the procedure name.

Does anyone have this random knowledge?

Hobbit

2008-01-06 04:03:01

TerminateScript;
;)

mickaliscious

2008-01-06 04:17:50

From: Hobbit
TerminateScript;
;)


No… not the procedure to terminate the script. There is another "empty" procedure called within the TerminateScript procedure. If I could remember the name I would be able to make a procedure with the same title so that anytime the script stops the procedure is run.

Nice try though…

Rikje

2008-01-06 04:45:37


procedure ScriptTerminate;

;)

mickaliscious

2008-01-06 05:27:39

From: rikjess

procedure ScriptTerminate;

;)



Santa_Clause

2008-01-06 05:32:13

Yes, really :)

Rikje

2008-01-06 05:54:35

no wai!


procedure theShit;
begin
WriteLn('o rly?');
WriteLn('yea Rly!');
WriteLn('no wai!');
WriteLn('yea wai');
WriteLn('no shit!');
WriteLn('STFU!');
end;

procedure ScriptTerminate;
begin
Wait(1000);
WriteLn(' ');
WriteLn('bbq!');
end;

begin
TheShit;
end.

mickaliscious

2008-01-06 17:23:26

Sweetness. Thanks again.