SRL Archive - General

resetting to default caption after Disguise


zildjohn01

2008-05-09 14:05:04

If I call Disguise('blah'), is there any way to reset Scar back to its default caption (mainly for upon script termination)? Disguise('') doesn't work.

that is, besides Disguise(Copy(ScriptPath, LastPos(ScriptPath, '\'), Length(ScriptPath) - LastPos(ScriptPath, '\')) + ' - SCAR Divi ' + IntToStr(GetSCARVersion / 100) + '.' + IntToStr(GetScarVersion mod 100) + ' by Freddy1990'); :rolleyes:

MylesMadness

2008-05-10 10:55:50

Nope, no way besides the way you posted

Killerdou

2008-05-10 10:57:55

AVariable := Getself.caption;
<script>
Disguise(AVariable);
well… something like that:)

zildjohn01

2008-05-11 21:50:55

From: Killerdou
AVariable := Getself.caption;
<script>
Disguise(AVariable);
well… something like that:)


:duh: I'm an idiot, I knew that lol. Thanks.

Harry

2008-05-11 21:55:32

Or make a procedure called "ScriptTerminate" and in it put what Killerdou said - when you terminate the script, it is back to its default caption :)