03-10-2007, 03:37 PM
Is there a way to have custom music play in a specific area? Like, is it possible for me to put music into the game that will only play in Kedalin areas?
Quote:Originally posted by Razorwing
If you like you can check out the music activators beneath Reich Parkeep, which uses a script that makes their music track play continously in that cell. All you need to modify is the filename of the mp3 and the # of seconds. The # of seconds should be one second shorter than the track's length.
ScriptName StAxScriptStreamMusicST
; Created by Axen http://www.silgrad.com/wbb2/profile.php?userid=1094
Begin GameMode
If (GetInSameCell player == 1)
If STMusicTimer > 0
Set STMusicTimer to STMusicTimer - GetSecondsPassed
Else
Set STMusicPlaying to 0
Set STMusicTimer to -1
EndIf
If STMusicPlaying == 0
Set STMusicTimer to 176
StreamMusic "Data\Music\Silgrad\ST_Ob_Main_Theme.mp3"
Set STMusicPlaying to 1
EndIf
EndIf
End
ScriptName StScriptStreamMusicPublicDungeonST
Begin GameMode
If (GetInSameCell player == 1)
If STMusicTimer > 0
If player.IsInCombat == 0
Set STMusicTimer to ( STMusicTimer - GetSecondsPassed )
Set STMusicPlaying to 1
Else
Set STMusicPlaying to 0
Set STMusicTimer to -1
Endif
Else
Set STMusicPlaying to 0
Set STMusicTimer to -1
EndIf
If STMusicPlaying == 0
If player.IsInCombat == 0
Set STMusicTimer to [INSERT MUSIC LENGTH]
StreamMusic [INSERT MUSIC PATH]
Set STMusicPlaying to 1
Endif
EndIf
EndIf
End
Begin MenuMode
If (GetInSameCell player == 1)
If STMusicTimer > 0
If player.IsInCombat == 0
Set STMusicTimer to ( STMusicTimer - GetSecondsPassed )
Set STMusicPlaying to 1
Else
Set STMusicPlaying to 0
Set STMusicTimer to -1
Endif
Else
Set STMusicPlaying to 0
Set STMusicTimer to -1
EndIf
If STMusicPlaying == 0
If player.IsInCombat == 0
Set STMusicTimer to [INSERT MUSIC LENGTH]
StreamMusic [INSERT MUSIC PATH]
Set STMusicPlaying to 1
Endif
EndIf
EndIf
End
ScriptName StScriptStreamMusicDefaultST
Begin GameMode
StreamMusic [INSERT ANY MUSIC PATH]
If (GetInSameCell player == 1)
If STMusicTimer > 0
Set STMusicTimer to ( STMusicTimer - GetSecondsPassed )
Set STMusicPlaying to 1
Else
Set STMusicPlaying to 0
Set STMusicTimer to -1
EndIf
If STMusicPlaying == 0
Set STMusicTimer to [INSERT .WAV LENGTH]
PlaySound3D [INSERT CS SOUND NAME]
Set STMusicPlaying to 1
Endif
EndIf
End
Begin MenuMode
StreamMusic [INSERT ANY MUSIC PATH]
If (GetInSameCell player == 1)
If STMusicTimer > 0
Set STMusicTimer to ( STMusicTimer - GetSecondsPassed )
Set STMusicPlaying to 1
Else
Set STMusicPlaying to 0
Set STMusicTimer to -1
EndIf
If STMusicPlaying == 0
Set STMusicTimer to [INSERT .WAV LENGTH]
PlaySound3D [INSERT CS SOUND NAME]
Set STMusicPlaying to 1
Endif
EndIf
; (\_/)
;(='.'=)
;(")_(") This is Bunny. Copy and paste Bunny into your signature to help him gain world domination
End
Quote:Originally posted by A_flyboy
that reminds me, the ReichParcheepmaintheme song, it is familiar but I cant pin down where I heard it before. X( Where did we get it?