SRL Archive - OSR Help

Song


Death12652

2010-05-16 15:24:29

How do you get scar to play a song after a certain point in the script? Rather a sound then a song. Also if like in the constants you have…


const
PlaySound = true;

Then I would like it to not play the sound. Help is appreciated.

THANKS

Quickmarch

2010-05-16 15:25:11

PlaySound(PATHTOFILE); ?

Death12652

2010-05-16 15:50:54

so what about making it equal true?

Frement

2010-05-16 15:58:41

From: death12652
so what about making it equal true?


Explain? Like:
program New;

const PlayAlert = True;

begin
if not (PlayAlert) then begin
Writeln('Alert? :P');
end else begin
PlaySound(ScriptPath+'/alert.wav');
end;
end.

Death12652

2010-05-16 16:00:59

Like This


program Notify;
var Alert : boolean;
begin
Alert := True
If Alert Then
begin
PlaySound(ScriptPath + 'nudge.wav');
end else
Writeln('Alert Is Off');
end.

But I need the Alert := True at the top of the script for other peoples use.

Wanted

2010-05-16 16:17:05

const
UseAlertSounds = True;

procedure AlertSound;
begin
if (not (UseAlertSounds)) then
Exit;
PlaySound('C:\Windows\Media\Tada.wav');
end;

begin
AlertSound;
end.