23 lines
573 B
Plaintext
23 lines
573 B
Plaintext
|
void main()
|
||
|
{
|
||
|
object oMe=OBJECT_SELF;
|
||
|
int nSong=GetLocalInt(oMe,"nSong");
|
||
|
object oArea=GetArea(oMe);
|
||
|
int bIsDay=GetIsDay();
|
||
|
nSong++;
|
||
|
SetLocalInt(oMe,"nSong",nSong);
|
||
|
AssignCommand(oMe,SpeakString("** Song:"+IntToString(nSong)+" **"));
|
||
|
if (bIsDay)
|
||
|
{ // day
|
||
|
MusicBackgroundStop(oArea);
|
||
|
MusicBackgroundChangeDay(oArea,nSong);
|
||
|
MusicBackgroundPlay(oArea);
|
||
|
} // day
|
||
|
else
|
||
|
{ // night
|
||
|
MusicBackgroundStop(oArea);
|
||
|
MusicBackgroundChangeNight(oArea,nSong);
|
||
|
MusicBackgroundPlay(oArea);
|
||
|
} // night
|
||
|
}
|